CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2003
    Posts
    1

    Unhappy I'm Crazy Lost. Plllleeeessseeeee help.

    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
    Attached Files Attached Files

  2. #2
    Join Date
    Jan 2003
    Location
    North Carolina
    Posts
    309
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured