This is a discussion on "[SOLVED] popup and document.write problem in IE" within the JavaScript Forum section. This forum, and the thread "[SOLVED] popup and document.write problem in IE are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
[SOLVED] popup and document.write problem in IE
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
i would like to popup a window and document.write with javaScript.
The following works fine on FF, Safari, NS, both on Mac and PC, but fails in IE (6 and 7 as far as i know). it opens a new window in IE, but it doesn't write anything. not even my title. any suggestion? parameters are Pic = 'pic1.jpg' wVal = 500 hVal = 500 Name= 'nw_one' pTitle= 'picture 1' (new window opens in 500 x500 with title showing my xml address) (this is written in xsl, i don't think it matters. )
thanx or your help. Last edited by deluxmilkman; Sep 26th, 2007 at 15:58. Reason: mistake |
|
|
|
||||
|
Re: popup and document.write problem in IE
Hi Milkman, seems I missed this post last week.
I have just used the exact same code listed there and it works (title and all) in IE 6 & 7.. How are you calling the function?
Last Blog Entry: The wannabe juggler's quest (Oct 27th, 2007)
|
|
|||
|
Re: popup and document.write problem in IE
yeah,it's working on mine now. it might have been some security problem.
thanks anyway. |
|
|||
|
Re: popup and document.write problem in IE
Oh, I think it does!
document.write cannot be used on pages that the browser processes as XML (source). You should use the DOM instead. This is a good idea anyway; once you get used to them, DOM methods are much more powerful than document.write.
Last edited by MikeHopley; Oct 3rd, 2007 at 11:35. |
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [SOLVED] document.getElementsByTagName | djeyewater | JavaScript Forum | 2 | Jan 22nd, 2008 22:04 |
| [SOLVED] do you write | quicker | Hosting & Domains | 8 | Dec 12th, 2007 05:13 |
| [SOLVED] How do I write IE conditional comment | Lchad | Web Page Design | 23 | Oct 17th, 2007 01:29 |
| new problem. document.getElementById().width returning unassigned. why? | sanchopansa | JavaScript Forum | 2 | Jul 22nd, 2006 20:23 |
| Need help with document.write command | MojoP | JavaScript Forum | 0 | Aug 15th, 2005 18:15 |