Click to See Complete Forum and Search --> : I'm Crazy Lost. Plllleeeessseeeee help.


azucker1
February 26th, 2003, 01:49 PM
I have an .asp file that isn't working correctly and I can't figure out why. I've believe I narrowed it down to a javascript error, and I was hoping someone can lend a hand.

Here's what's going on:
The page in question is a login page. When I login, I recieve the following error: "Error during login: A string literal was expected, but no opening quote character was found."

This error occurs on submit regardless of whether any information is submitted. (eg: user name, password)

In the attached file login.txt (renamed from login.asp) on line 108 it has the code: "alert("Error during login: " + xmlResponse.parseError.reason)" which I believe is where the problem culminates.

I have no idea what's going on as I'm new to javascript. If someone could PLEASE lend some advice as to what's going on I would be more than appreciative.

-AZ

antares686
February 27th, 2003, 05:15 AM
First try some of the other options besides reason to see if you can get a better understanding of what is going on.


From MSND Library

XMLDOMParseError Properties, Methods, and Events
Properties

errorCode = Contains the error code of the last parse error. Read-only.
filepos = Contains the absolute file position where the error occurred. Read-only.
line = Specifies the line number that contains the error. Read-only.
linepos = Contains the character position within the line where the error occurred. Read-only.
reason = Explains the reason for the error. Read-only.
srcText Returns the full text of the line containing the error. Read-only.
url = Contains the URL of the XML document containing the last error. Read-only.

Methods

None.

Events

None.

See Also
XMLDOMParseError Object


I am thinking try line, linepos and srcText to see if they can help pinpoint the issue.

Post the output of those and it may help us to help you.