Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Dec 2011
    Thanked 0 Times in 0 Posts

    Error: identifier starts immediately after numeric literal

    I am facing identifier starts immediately after numeric literal error in firefox

    onclick="document.location.href='<%= themeDisplay.getPathMain() %>/portal/ext/asite/assignOrg'"/>

    can any 1 solve this??

  • #2
    Senior Coder xelawho's Avatar
    Join Date
    Nov 2010
    Thanked 568 Times in 565 Posts
    it looks to me like it should be
    onclick="document.location.href='<%= themeDisplay.getPathMain() %>/portal/ext/asite/assignOrg/>'"
    but that's just a guess...

  • #3
    Supreme Master coder! Old Pedant's Avatar
    Join Date
    Feb 2009
    Thanked 4,747 Times in 4,709 Posts
    I don't think so, xelawho.

    He's not showing the entire tag, but I thinkg the /> is the end of the tag that this onclick is an event handler for.

    I'm guessing that the error is actually right *before* this code.

    That is, he has something like
    <input type=checkbox value=7onclick="....."/>
    and it's complaining about the missing space after the 7.

    But the other possibility is that his ASP (or JSP, same syntax with both) code is dumping an apostrophe into the JavaScript.

    To really debug this, we need to see the *FULL* HTML source of the ENTIRE tag.

    That is, bring the web page up in your browser.
    Then click on the browser's VIEW menu.
    Then click on the SOURCE or PAGE SOURCE menu item.
    That will show you the HTML, without ASP/JSP getting in the way.

    Find the problem tag and copy the entire thing here. Better yes, copy about 10 lines before the problem through 10 lines after.
    An optimist sees the glass as half full.
    A pessimist sees the glass as half empty.
    A realist drinks it no matter how much there is.


    Posting Permissions

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