Board index » Web Programming » elementary problem in ASP programming involving IIS+VBScript
|
pyarram
|
elementary problem in ASP programming involving IIS+VBScript
Web Programming129
I don't have, and haven't found, a decent VBScript for ASP programming reference. Please consider this fundtion: function ShowProduct(inVal) { location.href = 'ProductInfo.asp?ProductID=' + inVal; } I need to change it so that instead of displaying the page due to the hyperlink in the current window, it is displayed in a new window (of which there can only be one non-modal instance. I believe I need something like: dim win = window.open(url,'theProductWindow', ...); win.focus(); where url would be given the value assigned in the function to location.href But it has been such a long time, I don't remember the details. And, while the way they're used suggests to me that location and window are system objects, defined by default, I have not yet found any documentation for them. Can anyone a) given me an url that points to a decent VBScript manual, and/or b) show me some sample VBScript code that opens a new window that displays the page pointed to by a hyperlink, and for which there is only ever one instance and which is non-modal? Thanks, Ted - |
