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.
|
|
|
|
|
![]() |
||
Problem opening page in dynamically generated iframe
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
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? |
|
|
|
||||
|
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...
|
|
|||
|
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.
|
|
|||
|
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. |
![]() |
| Tags |
| problem, opening, page, dynamically, generated, iframe |
| Thread Tools | |
|
|
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 |