Click to See Complete Forum and Search --> : problem with javascript in an asp.net page???
cooldudeattitud
Mar 25th, 2004, 03:14 PM
NoRecord &= "PlanID="
NoRecord &= PlanID
NoRecord &= "&MinSize="
NoRecord &= MinSize
NewUrl = "http://www.sample.com?" & NoRecord
winfeatures= "',height=800;width=320;left=100;top=100;locatio=no;menubar=no;resizable=yes;scrollbar=yes;status=no; '"
NewScript &= "<script language=javascript>"
NewScript &= "window.open('"& NewUrl "',"," & winfeatures );"
NewScript &= "</script>"
nemaroller
Mar 28th, 2004, 05:18 PM
What exactly is your problem?
I did notice your location=no is missing an 'n', (locatio=no), other than that, are you attempting to open this on form load?
Then you add an attribute "onLoad=myscript();"
wey97
Mar 29th, 2004, 02:20 PM
Several problems:
You should use commas instead of semicolons for the parameters.
You have to pass a null for the second parameter of window.open()
Your string concatenation is messed up in window.open()
Your fixed code should look like this:
NoRecord &= "PlanID="
NoRecord &= PlanID
NoRecord &= "&MinSize="
NoRecord &= MinSize
NewUrl = "http://www.sample.com?" & NoRecord
winfeatures = "height=800,width=320,left=100,top=100,location=no,menubar=no,resizable=yes,scrollbar=yes,status=no"
NewScript &= "<script language=javascript>"
NewScript &= "window.open('" & NewUrl & "', null, '" & winfeatures & "');"
NewScript &= "</script>"
cooldudeattitud
Mar 30th, 2004, 08:38 AM
hi nemaroller and wey97 thanks for ur reply guyz...the problem is it says string constants must be closed with double quotes.I tried wey97's code but still it says the same error...
wey97
Mar 30th, 2004, 08:41 AM
You'll have to post your code...
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.