infanteronald
Junior Member
Posts: 4
Registered: 2/9/2005
Member Is Offline
|
| posted on 2/9/2005 at 07:53 PM |
|
|
Window.open event problem
i have a problem with a window.open event, when i try to open a window with an http address, the browser shows an error (The page cannot be
displayed), the code i'm writing is this:
['To Hotmail', "Javascript:nw('http://www.hotmail.com');"],
I already read the comentary made in the forum about opening pop ups, i tried copying the code as shown in the forum but it didn´t work either,
this is the function nw
<script language="javascript">
function nw(url) {
window.open(url,'_blank','HEIGHT=200,WIDTH=200,TOP=200,LEFT=200,scrollbars=yes');}
</script>
Note: i´m not using the pro version of tigra menu, is that the cause??? i'm using the standard version
i´m not specifying any target for the link.
i've read almost the whole forum trying to find out why my popup doesn't open, please help me
|
|
|
infanteronald
Junior Member
Posts: 4
Registered: 2/9/2005
Member Is Offline
|
| posted on 2/9/2005 at 07:54 PM |
|
|
my function
the function is called from tree.js, i read that in a reply from an administrator
|
|
|
olga
Administrator
Posts: 84
Registered: 11/22/2004
Member Is Offline
|
| posted on 2/15/2005 at 06:55 PM |
|
|
Do you use Tigra menu or Tigra Tree menu?
|
|
|
infanteronald
Junior Member
Posts: 4
Registered: 2/9/2005
Member Is Offline
|
| posted on 2/15/2005 at 06:59 PM |
|
|
I Use Tigra Tree menu
can you help me to solve my problem?????
|
|
|
olga
Administrator
Posts: 84
Registered: 11/22/2004
Member Is Offline
|
| posted on 2/15/2005 at 07:00 PM |
|
|
For Tigra Tree Menu:
This function is called from the TREE_ITEMS variable:
var TREE_ITEMS = [
['Home', "javascript:popup_window('http://www.softcomplex.com')",
[ ... ]
function popup_window (urlname) {
window.open(urlname,
'_blank','toolbar=no, width=500,height=400,left=50,top=50,status=no, scrollbars=no,resizable=no');
}
And be sure that parameter 'target' of the tree_tpl variable
(tree_tpl.js file) set to '_self'.
If this will not help, please submit the trouble ticket :
http://www.softcomplex.com/support/
|
|
|
infanteronald
Junior Member
Posts: 4
Registered: 2/9/2005
Member Is Offline
|
| posted on 2/15/2005 at 07:09 PM |
|
|
Thanks Olga!
'frameset' was my target, maybe that's the reason that doesn't let me open my popups....
Hey olga, thanks for helping me, I always knew that some of u would reply...
|
|
|