First, thank you for this tutorial, very helpful.
You forgot to put one key world in your javascript code : handler So this code : Code:
function My_AJAX_Reciever() Code:
function My_AJAX_Reciever() |
I did the code above but it didn't work at first.
I changed the $_POST to $_GET then I passed test.php?do=ajax&pagevar=rrr in the address bar and it worked. But using $_GET is insecure. Can someone make a small working example like a simple chat? |
look at vbshout
its like a simple chat |
the missing .handler. should really added to the first posts example ;)
|
this was very useful, thanks
|
yes ;) it's great start to integrate own ajax things.. I used rico.js but looks like it creates problems with some vb javascript so I change everything to vb-ajax now :)
|
For the JavaScript written in post 7 by " LiveWire " how can we add auto refresh so every 5 min it will check certain variables in a PHP file if its exist then small popup will shown if no nothing will happen and all of this will happen without the manually refresh.
|
so for the:
PHP Code:
PHP Code:
|
Yes.
|
PHP Code:
What should i use for onclick?: eg <a href='#' onclick='return Who knows'>Refresh</a> DOES ANYONE HAVE A WORKING EXAMPLE OF THIS? |
All times are GMT. The time now is 06:53 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|