vBulletin Modifications

Simple Ajax Refresh

Welcome to vBHackers.com! - vBHackers Updates:

Go Back   vBulletin Modifications > General vBulletin Section > General vBulletin Support

Reply
 
LinkBack Thread Tools
Old 07-02-2006, 11:23 AM   #1
vBulletin Guru
Nick R's Avatar
Join Date: May 2006
Real Name: Nick
Location: Cyberspace, UK
Nick R is on a distinguished road

Default Simple Ajax Refresh

Can anyone tell me how do just do a simple ajax refresh of a bit of a page. eg. a table?




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Old 07-02-2006, 12:16 PM   #2
Coder
Code Monkey's Avatar
Join Date: May 2006
Code Monkey is on a distinguished road

Default

You will need to have a trigger mechanism to start the javascript remote fetching process (link to click for example). Then you will need to learn the DOM (Document Object Model) so you can re-write the table data with the returned data using more javascript. Then you need to go to the store and buy some of those press on nails so you won't bite your own nails off when trying to make it work in every browser.

Within the table make sure you give everything that needs a data swap a unique id value. This will make it easy to find it and swap it's value. AJAX can get fairly complex even for a simple table. I would suggest you read up on it. Once you get the concept, it's not too hard.




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 07-02-2006, 12:19 PM   #3
vBulletin Guru
Nick R's Avatar
Join Date: May 2006
Real Name: Nick
Location: Cyberspace, UK
Nick R is on a distinguished road

Default

all i basically want is just to refresh three variables xD. I was looking at this: http://www.vbulletin.org/forum/showthread.php?t=93249




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 07-02-2006, 01:45 PM   #4
vBulletin Guru
Nick R's Avatar
Join Date: May 2006
Real Name: Nick
Location: Cyberspace, UK
Nick R is on a distinguished road

Default

Ok, i am totally stuck i just want to refresh 3 variables and run a bit of code when a someone clicks on a link. How can i do this?




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Ajax Nick R General vBulletin Support 0 06-20-2006 03:27 PM
ajax problem Maxx General vBulletin Support 0 12-22-2005 09:32 AM
Simple Roster page Thanatos vBulletin Modification Requests 2 02-10-2005 06:34 PM
Really simple, a simple forums counter... Infamouz Nex vBulletin Modification Requests 31 06-21-2004 02:43 AM


All times are GMT -3. The time now is 10:11 PM.


SEO by vBSEO 3.2.0 RC8 ©2008, Crawlability, Inc. (Patent Pending)