Author |
Topic  |
|
paulnoe
Starting Member
USA
48 Posts |
Posted - 18 August 2003 : 16:24:32
|
I know I've probably been staring at this for too long. I'm hoping someone with fresh eyes may see my problem. This line is part of a loop that generates a list of records. This particular button loads a new window with more order detail. My problem comes in when calling the window.open method. The error I'm getting is "unterminated string constant". Any help would be appreciated. Paul
Response.Write("<TR><TD ALIGN=RIGHT><INPUT type='button' value='View Details' onClick=window.open('EasyTrackDetail.asp?OrderNo=" & RSEasyTrack("OrderNo").Value & "','newwin','height=450,weight=250')></TD></TR>") |
Paul Noe paul@thenoes.com |
|
Classicmotorcycling
Development Team Leader
    
Australia
2085 Posts |
Posted - 18 August 2003 : 16:51:57
|
Paul,
I have sent you an email asking for some details. I should be able to help with it.
|
Cheers, David Greening |
 |
|
paulnoe
Starting Member
USA
48 Posts |
Posted - 19 August 2003 : 10:12:42
|
I discovered my problem this morning (in case this may help anyone else who runs into a similar problem). The correct code is:
Response.Write("<TR><TD ALIGN=RIGHT><INPUT type=button value='View Details' onClick=window.open('EasyTrackDetail.asp?OrderNo=" & CInt(RSEasyTrack("OrderNo").Value) & "','newwin','height=450,weight=250,directories=no,location=no,menubar=no,resizable=yes,scrollbars=yes,toolbar=no')></TD></TR>")
I had to use the CInt function to make sure that the order number passed was an integer. For some reason, it was passing part of the field as an empty string (due to the data type & size in my SQL stored procedure). I could probably have used a RTrim as well, but now it works swimmingly. Thanks to David Greening for taking a shot at it last night. |
Paul Noe paul@thenoes.com |
 |
|
|
Topic  |
|
|
|