Using javascript to open fixed-sized new window...

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
aquaverse
Advanced
Advanced
Posts: 22
Joined: Fri Feb 11, 2005 9:40 pm

Using javascript to open fixed-sized new window...

Post by aquaverse »

I need to open a fixed-sized window using javascript urgently. Can anyone give me the proper syntax for this using the Milonic menus? Any examples out there?

Thanks in advance
aquaverse
Advanced
Advanced
Posts: 22
Joined: Fri Feb 11, 2005 9:40 pm

Re: Using javascript to open fixed-sized new window...

Post by aquaverse »

aquaverse wrote:I need to open a fixed-sized window using javascript urgently. Can anyone give me the proper syntax for this using the Milonic menus? Any examples out there?

Thanks in advance
I figured it out from another post after all. Nevermind.
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

A check of the samples on the main site would have shown you this (plus a lot more!).
John
willemk
Beginner
Beginner
Posts: 5
Joined: Wed Feb 09, 2005 10:46 am
Location: Amsterdam

This is maybe what he´s looking for

Post by willemk »

Code: Select all

	  $memmenu .= "aI(\"text=$lang[banu2u];clickfunction=Popup('u2u.php', 'Window', 700, 450);\");\n";
The clickfunction allows you to use seperate javascripting. The Popup function is mine but I call it via the clickfunction of milonic.

Popup function

Code: Select all

function Popup(url, window_name, window_width, window_height) {
    settings=
    "toolbar=no,location=no,directories=no,"+
    "status=no,menubar=no,scrollbars=yes,"+
    "resizable=yes,width="+window_width+",height="+window_height;


    NewWindow=window.open(url,window_name,settings);
}

Cheers[/code]
Post Reply