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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Mesage Box 1

Status
Not open for further replies.

Albano

Instructor
Dec 11, 2000
221
PT
How can make a massage box, like the alert box in java script.

Tanks,

Albano
 
eg:

MsgBox "message" , 48, "title"




br
Gerard
(-:

Better a known bug then a new release.
 
Hi Albano.

This is my solution I did once.


dim sAlertWindow

if <SomethingHappen> then
sAlertWindow = &quot;onload=&quot;&quot;{window.alert('alerttext');}&quot;&quot;&quot;
else
sAlertWindow = &quot;&quot;
end if

<BODY <%=sAlertWindow%>


I hope it will help.

Erik









&quot;{window.alert('Eén of meerdere velden [boven in het &quot; & _
&quot;scherm in rood aangegeven] hebben een overschrijding van de veldlengte. &quot; & _
&quot;Maak de betreffende teksten korter en druk opnieuw op opslaan. &quot; & _
&quot;Op dit moment zijn de ingevoerde gegevens nog NIET opgeslagen !');}&quot;&quot;&quot;
 
Syntax for a javascript alert is (simplified version of ErikL's post):

alert('alertText');


and if you want a line break somewhere in the middle of the message, just just the \n to make it break there... that character sequence works like the <br> does in html.

good luck! :)
Paul Prewett
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top