Popup window question

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
User avatar
fredlongworthhighschool
Mega Advanced
Mega Advanced
Posts: 362
Joined: Fri Jun 27, 2003 11:34 am
Location: Manchester, England.
Contact:

Popup window question

Post by fredlongworthhighschool »

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: Select all

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

Code: Select all

aI("text=Why do I have to 'log on'?;url=javascript:alert(mytext)");
Where and how can I define the string called 'mytext'?
Andy Davis
Web Designer & Smartboard Manager

Fred Longworth High School, Manchester, England.
User avatar
fredlongworthhighschool
Mega Advanced
Mega Advanced
Posts: 362
Joined: Fri Jun 27, 2003 11:34 am
Location: Manchester, England.
Contact:

Post by fredlongworthhighschool »

Figured it out myself!!!!

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

Code: Select all

sometext="Its a Java popup menu";

aI("text=What is this?;url=javascript:alert(sometext)");
Andy Davis
Web Designer & Smartboard Manager

Fred Longworth High School, Manchester, England.
Post Reply