vbscript window.open type mismatch error

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • munkee
    Contributor
    • Feb 2010
    • 374

    #1

    vbscript window.open type mismatch error

    Hi again,

    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,sc rollbars 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?
Working...