I'm getting an odd error with window.open() in IE. Works fine in FF. From everything I've read, the 2nd parameter that becomes the window title just can't contain spaces, which it doesn't. Can I not set it programmatically?
It's being dynamically generated from php. Here's an exact value for $client that I echo'd out right before the link below is generated. I put the single quotes in to see where any white space might be.
hmm. well looks like everything is ok with the client variable and it appears your passing it correctly to the function. I'm going to take a shot in the dark, and say maybe it's "target" that has the issue. FF and IE seem to handle urls a bit differently, meaning
Code:
target="myPage.php?"+querystring;
may be fine for some browsers but others may want it as
( forgive my lack of technical terms, I'm not a pro(yet))
Code:
target="/myPage.php?"+querystring;
- also what's the error? perhaps that will shed some light until someone more experienced takes a look at this for you
( also ignore my previously deleted post, your doing it right. I just make a point never to use window.open so I'm not intimately familiar with it's use)
Bookmarks