By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,364 Members | 1,343 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,364 IT Pros & Developers. It's quick & easy.

iFrame issue

P: n/a
I was trying to dynamically generate iFrame. There are 3 href and when
you click on the first href, iFrame is populated in new Tab. And i
made respective changes to href i opened. Now i tried to open 2nd
href, and suprisingly the first href is also reloaded with the second
one.

Could anybody help me out in this issue,

document.getElementById("tabContent").innerHTML += "<div id =
'frmContainer" + tabCounter + "'><iframe onload = " + frameOnload + "
name = 'frame" + tabCounter + "' src = '" + this.url + "' width =
'100%' height = '2000' scrolling = 'no'></iframe></div>" ;

Thanks,
Chaitanya
Nov 5 '08 #1
Share this Question
Share on Google+
3 Replies


P: n/a
On Nov 5, 4:01*pm, chaitanyadot...@gmail.com wrote:
I was trying to dynamically generate iFrame. There are 3 href and when
you click on the first href, iFrame is populated in new Tab. And i
made respective changes to href i opened. Now i tried to open 2nd
href, and suprisingly the first href is also reloaded with the second
one.
This should not have been a surprise.
>
Could anybody help me out in this issue,

document.getElementById("tabContent").innerHTML += "<div id =
^
[snip]

And where did you find such code? Delete the bookmark and add some to
MSDN, Mozilla's documentation, etc. Then you won't be so surprised
when things go awry.
Nov 5 '08 #2

P: n/a
On Nov 5, 4:58*pm, David Mark <dmark.cins...@gmail.comwrote:
On Nov 5, 4:01*pm, chaitanyadot...@gmail.com wrote:
I was trying to dynamically generate iFrame. There are 3 href and when
you click on the first href, iFrame is populated in new Tab. And i
made respective changes to href i opened. Now i tried to open 2nd
href, and suprisingly the first href is also reloaded with the second
one.

This should not have been a surprise.
Could anybody help me out in this issue,
document.getElementById("tabContent").innerHTML += "<div id =

* * * * * * * * * * * * * * * * * * * * * * * * * ^
[snip]

And where did you find such code? *Delete the bookmark and add some to
MSDN, Mozilla's documentation, etc. *Then you won't be so surprised
when things go awry.
if i try to remove that + sign then the previous opened tab will be
diabled (i.e, will not work or we cannot even close it).
Nov 5 '08 #3

P: n/a
On Nov 5, 5:11*pm, chaitanyadot...@gmail.com wrote:
On Nov 5, 4:58*pm, David Mark <dmark.cins...@gmail.comwrote:
On Nov 5, 4:01*pm, chaitanyadot...@gmail.com wrote:
I was trying to dynamically generate iFrame. There are 3 href and when
you click on the first href, iFrame is populated in new Tab. And i
made respective changes to href i opened. Now i tried to open 2nd
href, and suprisingly the first href is also reloaded with the second
one.
This should not have been a surprise.
Could anybody help me out in this issue,
document.getElementById("tabContent").innerHTML += "<div id =
* * * * * * * * * * * * * * * * * ** * * * * * * ^
[snip]
And where did you find such code? *Delete the bookmark and add some to
MSDN, Mozilla's documentation, etc. *Then you won't be so surprised
when things go awry.

if i try to remove that + sign then the previous opened tab will be
diabled (i.e, will not work or we cannot even close it).
How about implementing this site in HTML first? Post a link to a
working example and indicate how you would like to enhance it with
script. At the moment, script is just a liability for your users.
Nov 5 '08 #4

This discussion thread is closed

Replies have been disabled for this discussion.