window.open type mismatch error vbscript (1 Viewer)

munkee

Registered User.
Local time
Today, 13:29
Joined
Jun 24, 2010
Messages
17
I am using the following code to open up a new window within my data access page:

Code:
Dim vServerfilter 
Dim vLocation 
vLocation = "CorrectiveAction.htm?serverfilter=" 
vServerfilter = chr(34) & "CorrectiveID=" & MSODSC.CurrentSection.HTMLContainer.children("NCC_ID").value & chr(34) 
vLocation = vLocation & vServerfilter 
window.open(vLocation)

However I am using this method because I want to be able to set the window.open properties such as height,width,scrollbars etc.

I assumed I would just have to use something like the following:

Code:
window.open vLocation,, "height=380,width=585,status=yes,toolbar=no,menubar=no,location=no"

But I get a type mismatch error on char 1 of the above code. Any ideas?
 

Users who are viewing this thread

Top Bottom