The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
||||
|
||||
I guess a 1 minute time out for the data reload wouldn't be too harsh, aslong as the page requested minimal queries, like the session, other requirements and then the data itself.
Depends really how active your site is, a site with 100+ users on most of the time would really need to put the time out higher, say 3/4 minutes, but the content would still remain intact. But things like getting last x posts would only take 1 query, you could even use the XML output as a feed for your main site - Zero Tolerance |
#12
|
|||
|
|||
Great tutorial... For anyone that has no idea on what it is and such just check your Gmail account... Gmail is based on AJAX.
|
#13
|
||||
|
||||
Quote:
ZT your the king of refreshing hacks...... I know you could do this. Have it in the admin control panel where the admin could have it refresh everything and then at what rate (time) OR could just have it refresh certain aspects at inputted rate. You know how much this would save bandwidth and site speed wise? Members wouldnt have to refresh ( which would be calling everything) just to get up to date info on just post or ect. Yeah, im likeing this AJAX now. |
#14
|
||||
|
||||
Check this one out, http://blog.joshuaeichorn.com/archiv...d-with-jpspan/
Quote:
Found out what the readyState codes are: Code:
readyState Status Codes: 0 = uninitialized 1 = loading 2 = loaded 3 = interactive 4 = complete |
#15
|
|||
|
|||
This may seem like an obvious question, but I'm trying to clear this up in my mind.
Scenario : Client A sends data to server. Server applies rules checking to data. Client B requests the data from Client A from the server. OK, so if I get this right Client B "polls" the server for new data, which is similar to refreshing, but the big difference is that only the data is refreshed, not the whole page. Client side scripting takes care of rendering the page with the new data. So if I'm right, you have to set your script up with a timer that checks the server for new data on a regular basis, i.e. it's not "event" based with the server triggering a client side function. Did I get this right or have I just talked in circles? So you have to set your timers to a realistic "refresh rate" depending on the size of data/server load these AJAX requests trigger. How is the best way to determine this refresh rate? |
#16
|
|||
|
|||
Anybody?
|
#17
|
||||
|
||||
HTML Code:
function doTheTask() { do_box = new vB_AJAX_Handler(true) do_box.onreadystatechange(do_box_Done) do_box.send('url','&var1=1&var2=2') do_button = new vB_AJAX_Handler(true) do_button.onreadystatechange(do_button_Done) do_button.send('url') } function do_box_Done() { if (do_box.handler.readyState == 4 && do_box.handler.status == 200) { .... } } function do_button_Done() { if (do_button.handler.readyState == 4 && do_button.handler.status == 200) { .... } } Quote:
Quote:
|
#18
|
|||
|
|||
its just now i understand part of it thanks to Zero Tolerance's tutorial
|
#19
|
||||
|
||||
Does anyone can make some very simple demo script? I think that's better for beginners
Thank you so much |
#20
|
|||
|
|||
There are plenty of examples around in both the Articles section and in existing modifications.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|