I have an issue with using <object>
.
I need it to show different external pages, but it's not really working for me. It is like, after the first time I set Data, changing it does nothing.
Do I need to refresh it, somehow?
This is my jQuery code to change the data:
$("#content").attr('data', urls[urlIdx]);
And my object:
<div id="Main" style="width:100%;height:100%;">
<object id="content" style="width:100%;height:100%;"/>
</div>
Simple stuff.
urls
is an array of urls, and urlIdx
is a counter that I increment.
Edit:
I have made this jsfiddle:
http://jsfiddle.net/fJQm6/
Basically, the first time the tick executes, the object's data is set, but the subsequent ticks changes nothing.