SOLVED: iFrame loading via jQuery.
Posted: Mon Jun 14, 2010 3:18 pm
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.
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.
Code: Select all
$(document).ready(function(){
$("a#infmedoc").click(function(){
$("iframe#iframe").load();
});edit
Solved, http://www.neowin.net/forum/topic/79543 ... frame-src/
All I had to do was changed the frame's source, I guess.