![]() |
Need a very simple example AJAX script in vbb
Hi all, I am learning AJAX but I need some example, ex. for loading a text from another php file
I read articles but they are not enough yet. Thank you |
Have you tried doing a search in the modifications forums for mods with the word "ajax" in the title and then downloading them and taking a look at the code?
|
AJAX in general, or AJAX in vBulletin?
|
Quote:
Quote:
|
ajax is basically javascript, so if you have an understanding of javascript, you can probably just go from there.
Did you check out the Articles forums? [Tutorial] Developers Introduction To AJAX Technology Intergrating AJAX Technology Into Your Modifications |
yes i know a bit of javascript, but ajax, i need step to write it. thanks
|
I don't think there are any up-to-date tutorials on AJAX in vBulletin (after it switched to using YUI).
|
<a href="http://developer.yahoo.com/yui/connection/" target="_blank">http://developer.yahoo.com/yui/connection/</a>
|
thanks all for helping me. I have the function how to call back script with a form (I mean something like
HTML Code:
<a href="#" onclick="myfunction(1,true)"> my text id 1 </a> But I need from a link, I mean http://mysite.com/myscript.php?#,1 => Where 1 is my text id and call to the script without by click a form. I hope that you understand, my english is too bad. Thank you again :) |
You need to call your PHP script via AJAX in "myfunction()".
|
After a quick look yesterday, I found the vbulletin_reputation.js file probably the simplest one to understand. You may be better off investigating that.
I doesn't look like an easy task though! :D |
The only thing you (really) need to know for AJAX apart from coding the PHP response and basic Javascript is this little piece of code:
Code:
YAHOO.util.Connect.asyncRequest('POST', scriptpath + '?do=ajax', { |
Its too difficult for me now :D
Can you Ops or Dis make a demo for me? I know that it takes too much time :) Thank you so much :) |
My suggestion is to look at someone else's code - but you don't really need to as I've given you the Javascript for AJAX calls already.
|
Hi, I have looked at some codes but I dont know how to :((
I saw someone else's code that they use onLoad on body tag. Can I use that tag? Or please Dismounted could you write a code for me? Thank you so much |
I have written the code for you...
|
Thanks, but I cant use the code :( I have seen that hack (https://vborg.vbsupport.ru/showthrea...ighlight=forum), it has function what I need. Can you help me again?
|
All times are GMT. The time now is 01:35 AM. |
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:
|