Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Popup Message

Status
Not open for further replies.
Dec 24, 2001
857
GB
What command do you put on a button to make a popup message appear. I don't mean a popup window, rather one of those like for example when you fill out a form. If you miss a field, it pops up telling you it has to be filled in.

Everywhere I've looked on the internet is for popup windows but this has to be for the message box.

Thanks
 
That may just be a "popup" movie clip, invisible but already on stage, that "popups" (made visible!) if some condition is met or not! Could be the same as a tooltip in fact, just that it appears is some condition is met or not, rather than a rollover or whatever else.


Regards,

cubalibre2.gif

[bigcheeks] I'm Bill Watson's biggest fan!
[bigcheeks]
 
if something is missing from a field then do the common thing dont pop anything up

just place an asterisk beside the field and display a message in the box (red?) saying 'must be completed'

that way its nothing new and all users will know how to deal with it
 
Oh! Guess it's like not using punctuation! Is that it Bill?
Most readers nowadays would know how to deal with that also, right?

And another question... Why is it that most of the time, you can't answer in line with the question asked, and arrogantly impose your way of doing things like if it was the one and only solution?



Regards,

cubalibre2.gif

[bigcheeks] I'm Bill Watson's biggest fan!
[bigcheeks]
 
If you're after a standard message box you can get it like this:

getURL("javascript:alert('Please fill in all fields')");

...just swap the message out for whatever you want, or you can make the whole thing a function and pass the message in as a parameter if there are several different messages that you want to display.
 
wangbar - thats the sort of thing I want but is there any way to have the message box pop up without having a browser open? This is going to be ran as a stand alone movie i.e. .exe.

Just so you all know, its not being used for filling in fields - that was just an example of where the popup message box is used.

Thanks for your help.
 
If you're running the movie as an .exe then the standard javascript stuff won't work as it needs to be running in a browser.

 
In that case, is there a way to embed the SWF into an HTML file? At least that way I would be able to just use one file.

Thanks
 
why not just use the messagebox component

i posted a copy on another thread close to this subject other day or so
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top