Connecting Tech Pros Worldwide Help | Site Map

Using AJAX to reload an iFrame!

Newbie
 
Join Date: Sep 2009
Posts: 5
#1: Sep 4 '09
Hi there
I'm using an iFrame in my site and I just wonder it's possible the iFrame is refreshed every x seconds without reloading the entire page?! I know it's simply possible with JS but unfortunately browser progress bar will also be shown in each process with using JS and it's really annoying, No?!
I googled and just find this but I don't know how can I use it?!
http://quicksketch.org/node/263
Would you help me please?
Thanks
Dormilich's Avatar
Moderator
 
Join Date: Aug 2008
Location: Leipzig, Germany
Posts: 3,629
#2: Sep 4 '09

re: Using AJAX to reload an iFrame!


correct me when I’m wrong, but isn’t the goal of frames that you have separate sections, which hardly interact? so, why do you need ajax to refresh one of them?
Newbie
 
Join Date: Sep 2009
Posts: 5
#3: Sep 4 '09

re: Using AJAX to reload an iFrame!


Thanks for the response Dormilich, here is my forum: http://tennistalk.ir , I'm using iFrame to show the latest posts of the forum, now I'd like the frame reload each certain seconds but without refreshing the parent page or effect on the browser progress bar like when we use Java scripts.
Newbie
 
Join Date: Sep 2009
Posts: 5
#4: Sep 5 '09

re: Using AJAX to reload an iFrame!


Bump!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Newbie
 
Join Date: Sep 2009
Posts: 5
#5: Sep 6 '09

re: Using AJAX to reload an iFrame!


Bump!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
acoder's Avatar
Site Moderator
 
Join Date: Nov 2006
Location: UK
Posts: 14,581
#6: Sep 6 '09

re: Using AJAX to reload an iFrame!


If that's the case, then get rid of the iframe and load the content within the parent page (in a container) using Ajax.
Newbie
 
Join Date: Sep 2009
Posts: 5
#7: Sep 7 '09

re: Using AJAX to reload an iFrame!


Would you be more precise? I'm totally noob!! Can I use vBulletin AJAX system to handle that?
acoder's Avatar
Site Moderator
 
Join Date: Nov 2006
Location: UK
Posts: 14,581
#8: Sep 8 '09

re: Using AJAX to reload an iFrame!


I've never used vbulletin Ajax code, so I wouldn't be sure. However, for the link you posted, you only need to include the jQuery library to be able to use jquery code. If you want to learn Ajax, check the links in the Offsite Links sticky.
Reply