![]() |
ajax question
how i use ajax in vbulletin?
what the function of the request and i use it? thx for help. |
<a href="https://vborg.vbsupport.ru/search.php?searchid=12914337" target="_blank">https://vborg.vbsupport.ru/searc...rchid=12914337</a>
|
Very simple to initiate an AJAX request. vBulletin uses the YUI JavaScript framework.
Code:
YAHOO.util.Connect.asyncRequest('POST', scriptpath + '?do=ajax', { |
I've posted yesterday tutorial i called "[How-To] AJAX in your Mods - In 5 simple steps" - describing this in a very simple & easy to understand way.
Just follow my sig link and then click "tutorials" section on top tab. |
Quote:
You shouldn't use the vb ajax handler anymore, instead the developers should use the method yui is providing! Look at the code, the vb devs have commented it.... ;) |
HTML Code:
<script type="text/javascript"> thx. |
What are you actually trying to achieve with AJAX?
|
i try to save the content of the posts that users write when they quit in mistake.
i mean that i do "<body onunload="savept(($editorid}_textarea)">" and i do ajax function.. but this dont work.. i try to add to textarea that his name is "message" action "onkeyup" ad do alert and it is dont work too. why it is dont work? thx. |
someone?
|
The browser does not initiate any JavaScript events when a user decides to close the page. The browser just closes...
|
All times are GMT. The time now is 11:39 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|