Log in

View Full Version : Forcing a refresh after an AJAX QR.


Link14716
06-18-2005, 10:42 PM
If a certain condition is met, I set a variable (something like $vbulletin->bashrun['forcereload']) inside of the newpost function. I need to find a way to, after the post is made, refresh the showthread page. I have tried this, and either my attempts didn't work at all, or they made the post twice.

Any ideas?

Marco van Herwaarden
06-19-2005, 06:14 AM
That would defeat the use of AJAX in my opinion.

untold4you
06-19-2005, 09:13 AM
If a certain condition is met, I set a variable (something like $vbulletin->bashrun['forcereload']) inside of the newpost function. I need to find a way to, after the post is made, refresh the showthread page. I have tried this, and either my attempts didn't work at all, or they made the post twice.

Any ideas?

Why is a refresh needed? 1 Thing i learned about the Microsoft.XMLHTTP ActiveX, When it's called it caches the output, XMLHttpRequest does not do that. Solution is to send a header with the output. Maybe this way your refresh won't be needed ?

Link14716
06-19-2005, 07:42 PM
That would defeat the use of AJAX in my opinion.
Not when the condition is only met once in a blue moon.

HakkieDEV
10-22-2005, 11:21 AM
Have you already found a way to do this?

If so, could you post it, since I am looking for this as well.