>
>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 )
If it's not broken, fix it until it is.
My Blog