|
-
Mar 25th, 2004, 04:14 PM
#1
Thread Starter
Lively Member
problem with javascript in an asp.net page???
Code:
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>"
-
Mar 28th, 2004, 06:18 PM
#2
I wonder how many charact
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();"
-
Mar 29th, 2004, 03:20 PM
#3
Frenzied Member
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:
PHP Code:
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>"
Last edited by wey97; Mar 30th, 2004 at 07:54 AM.
-
Mar 30th, 2004, 09:38 AM
#4
Thread Starter
Lively Member
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...
-
Mar 30th, 2004, 09:41 AM
#5
Frenzied Member
You'll have to post your code...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|