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!

return val from modaldialog box 1

Status
Not open for further replies.

RichS

Programmer
Apr 24, 2000
380
US
How do you get the return value from a modal dialog box in vbScript? I have the following code in an ASP page:


RetVal = window.showModalDialog "authtest_2.asp", "", "dialogWidth:300px;status:no;dialogHeight:200px;scroll:no;resizable:no"


the authtest.asp processes a couple of <input>'s and I want to return a value to the calling function in the main ASP page.
 
try this
RetVal=&quot;authtest_2.asp&quot;

RetFeatures = &quot;dialogWidth:300px;status:no;dialogHeight:200px;scroll:no;resizable:no&quot;

x = window.showModalDialog (CStr(RetVal),,CStr(RetFeatures))
[bomb]
I may not get it the 1st or 2nd time,
but how sweet that 15th time can be.
admin@onpntwebdesigns.com
 
Thanks onpnt,
That worked. The online documentation did not seem to me to be anything like your code. Much appreciated.
 
I know what you mean about the online doc's
not always that clear!

glad to help [bomb]
I may not get it the 1st or 2nd time,
but how sweet that 15th time can be.
admin@onpntwebdesigns.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top