Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

Back To Start Of Archive
Taken From The Forum: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:23

Popup window question


Poster: fredlongworthhighschool
Dated: Wednesday July 30 2003 - 15:47:07 BST

One thing I like about V5 is the option to click on a sub-menu and have a pop-up window appear. This is very useful for me as it means I don't have to have a HTML page to display a short bit of text, like with a FAQ.

However, is it possible to store the text elsewhere, either in the .JS file or externally and give it a name, like so:

Current way of doing pop-up
Code:
aI("text=Why do I have to 'log on'?;url=javascript:alert('dont know')");


Remote pop-up text
Code:
aI("text=Why do I have to 'log on'?;url=javascript:alert(mytext)");


Where and how can I define the string called 'mytext'?


Poster: fredlongworthhighschool
Dated: Wednesday July 30 2003 - 15:51:47 BST

Figured it out myself!!!!

The answer, for anyone who is as stupid as me is:

Code:
sometext="Its a Java popup menu";

aI("text=What is this?;url=javascript:alert(sometext)");