Problem opening page in dynamically generated iframe

This is a discussion on "Problem opening page in dynamically generated iframe" within the JavaScript Forum section. This forum, and the thread "Problem opening page in dynamically generated iframe are both part of the Program Your Website category.



Go Back   Webforumz.com > Main Forums > Program Your Website > JavaScript Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Jun 19th, 2005, 19:29
New Member
Join Date: Apr 2005
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Problem opening page in dynamically generated iframe

Hello, I have been having some trouble with this one, so I decided to strip it down to its simplest form. I think I found the root of the problem, but I don't know how to solve it.

I need a link in one iframe to open a page in a different iframe. I can do this normally:

http://www.jonesmfgmusic.com/test/test1/

But, when the iframes are dynamically generated (created via a javascript function), the target id does not seem to be recognized, and the content is opened in a new window:

http://www.jonesmfgmusic.com/test/test2/

I need to get the second page working like the first one. Can anyone tell me what I'm doing wrong?
Reply With Quote

  #2 (permalink)  
Old Jun 19th, 2005, 21:41
benbacardi's Avatar
Highly Reputable Member
Join Date: Feb 2004
Location: United Kingdom
Age: 20
Posts: 611
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to benbacardi Send a message via Skype™ to benbacardi
i think you may have the links the wrong way round... the first link opens in a new window and the second opens in another iframe...
Reply With Quote
  #3 (permalink)  
Old Jun 19th, 2005, 22:17
New Member
Join Date: Apr 2005
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Well yay for Firefox. The broken one works fine in Mozilla, while the one that works is worse off than the broken one was in IE.
Reply With Quote
  #4 (permalink)  
Old Jun 20th, 2005, 20:38
Most Reputable Member
Join Date: Jul 2003
Posts: 1,856
Thanks: 0
Thanked 0 Times in 0 Posts
I played around with this for a while, and looked into it in some tech docs. No luck.

Not knowing the whole story, my usual way of writing pages dynamically is doing it with server-side scripting (ASP,PHP,etc) rather than client-side jscript like this. If you're open to do it that way you'll save yourself a lot of headaches.
Reply With Quote
Reply

Tags
problem, opening, page, dynamically, generated, iframe

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
problem with main page when opening new window Ice JavaScript Forum 20 Feb 13th, 2008 22:17
Are there SEO problems with a db generated page? masonbarge Search Engine Optimization (SEO) 4 Jun 5th, 2007 18:00
problem with opening IE uddin Web Page Design 5 Mar 29th, 2007 15:26
by clicking on a dynamically generated button how can i delete a dynamictext box forjavascript JavaScript Forum 1 Nov 20th, 2006 21:02
Dynamically changing iframe position sadanandam JavaScript Forum 0 Jul 24th, 2006 12:50


All times are GMT. The time now is 04:19.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43