dch31969
10-15-2007, 03:44 AM
The following code is crapping out giving me a 'Unterminated String Constant' error when the page loads. When I debug, the offending line is further down the HTML. I have tracked it down to the presence of the spaces in the string. Taking out the spaces eliminates the error. Any ideas?
test = "C:\Documents and Settings"
document.write("<li style='list-style-image:url(xls.ico);'><span onClick=openFile('" & test & "')>Exhibitor Services Schedule</span></li>")
test = "C:\Documents and Settings"
document.write("<li style='list-style-image:url(xls.ico);'><span onClick=openFile('" & test & "')>Exhibitor Services Schedule</span></li>")