dilgerr
Newbie
Posts: 1
Registered: 1/7/2004
Member Is Offline
|
| posted on 1/7/2004 at 05:13 PM |
|
|
Using menu item to create popup window
I have tried using the following code to pop up a new window when a menu item is clicked on:
["Chat", "javascript:window.open('URL ', 'NAME', 'OPTIONS')"]
Of course the URL, NAME, and FEATURES are replaced by their actual values (left out for security reasons).
The new window is created when clicking on the menu item. However, the page on which the menu was displayed goes blank with on the following text:
[object]
Can someone please explain what's going wrong here? Thanks.
|
|
|
tigra
Administrator
Posts: 1976
Registered: 6/17/2002
Location: US, CO
Member Is Offline
|
| posted on 1/8/2004 at 08:16 AM |
|
|
put window.open statement into function and call it from menu items structure. window.open returns window object that browser tries to display.
|
|
|
PerPlexxen
Newbie
Posts: 1
Registered: 1/29/2004
Member Is Offline
|
| posted on 1/29/2004 at 01:02 PM |
|
|
I tried this, but
['blabla', 'PopUpAV();', null, null], does not work.
IE starts thinking but the page does not pop up.
when place a button on the page and use this onClick="PopUpAV();" it works ok...
what am I doing wrong here?
|
|
|
ddevlin
Newbie
Posts: 1
Registered: 2/4/2004
Member Is Offline
|
| posted on 2/4/2004 at 02:30 PM |
|
|
Focus people...
I had a menu itme that popped up a window and what I was seeing is this:
The window would popup, but the Tigra would take focus again to draw the onClick / onMouse out event.
As soon as this happens the popup window goes behind the opriginal browser window.
Check to see if the window is indeed opening, but getting put behind the browser.
I found no way around this. I simply changed my site layout to not use a popup window for this particualr link.
|
|
|
tigra
Administrator
Posts: 1976
Registered: 6/17/2002
Location: US, CO
Member Is Offline
|
| posted on 12/2/2004 at 07:29 PM |
|
|
http://www.softcomplex.com/forum/viewthread_1954/
|
|
|