Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Alert function
Message
De
12/03/2003 10:25:34
 
 
Information générale
Forum:
Internet
Catégorie:
Javascript
Titre:
Divers
Thread ID:
00764480
Message ID:
00764787
Vues:
26
>>
>>function myalert( AlertTxt, AlertTitle )
>>{
>>var DspHtml="about:<head><title>"+AlertTitle+"</title></head>"
>>DspHtml=DspHtml+"<body><center>"+AlertText+"<br><button onclick='window.close()'>OK</button></center></body>"
>>showModalDialog( DspHtml, "", "dialogWidth:200px;dialogHeight:50px;status:0;help:0;resizable:no;scroll:no" )
>>}
>>
>>
>Doesn't work or I can not make it to work :( Can you show a sample of usage? If I leave alert(msg); it works, but if I put MyAlert(msg,myTitle) it doesn't execute the script and goes to the next page...
>
>What should I do?
>
>http://twg-dev-dq.thewarrengroup.com/creditrecords/FormResult.asp (click on Add to Cart without making selections).
>
>You have to create an HTML first, it seems:
>final public Variant showModalDialog( String dialogUrl, Variant dialogArgs, DhDialogInfo di )

I've had a quick look at the source code of your page, the padding of the title should be with &nbsp;  rather than real spaces, it's treated as HTML & compacted down to a single space.
Len Speed
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform