SOLVED: iFrame loading via jQuery.

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
Vael Victus
Forum Newbie
Posts: 24
Joined: Wed Jun 03, 2009 9:29 am

SOLVED: iFrame loading via jQuery.

Post by Vael Victus »

I load my iframe, it shows the contents that I want to. Great. Then I want to click a button to make it load the contents again, but it doesn't do that.

Code: Select all

$(document).ready(function(){
   $("a#infmedoc").click(function(){
     $("iframe#iframe").load();
 });
That's the code. I can't seem to get a straight answer anywhere - it seems that it's incredibly simple, and that should be working, but no new content is loading inside. I basically just want to refresh the iframe on click.

edit
Solved, http://www.neowin.net/forum/topic/79543 ... frame-src/

All I had to do was changed the frame's source, I guess.
Post Reply