Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 7 of 7
  1. #1
    Member Bush_Tag's Avatar
    Join Date
    May 2011
    Posts
    39
    Member #
    27876
    Liked
    1 times
    Hello everyone, I'am working on a website currently that was developed before I started working on it. I was trying to validate the website through W3C validation but I was getting a list of error listed below: I'am also giving the source code where I'Am getting the errors. I would be highly grateful if somebody can help me with this
    1. ?
      • Line 161, column 27: xmlParseEntityRef: no name
        var match = RegExp('[?&]' + name + '=([^&]*)')
      • Line 161, column 45: xmlParseEntityRef: no name
        var match = RegExp('[?&]' + name + '=([^&]*)')
      • Line 164, column 18: xmlParseEntityRef: no name
        return match && decodeURIComponent(match[1].replace(/\+/g, ' '));
      • Line 164, column 19: xmlParseEntityRef: no name
        return match && decodeURIComponent(match[1].replace(/\+/g, ' '));
    2. character X is the first character of a delimiter but occurred as data
      ?

      This message may appear in several cases:
      • You tried to include the "<" character in your page: you should escape it as "&lt;"
      • You used an unescaped ampersand "&": this may be valid in some contexts, but it is recommended to use "&amp;", which is always safe.
      • Another possibility is that you forgot to close quotes in a previous tag.

      • Line 161, column 27: character "&" is the first character of a delimiter but occurred as data
        var match = RegExp('[?&]' + name + '=([^&]*)')
      • Line 161, column 45: character "&" is the first character of a delimiter but occurred as data
        var match = RegExp('[?&]' + name + '=([^&]*)')
      • Line 164, column 18: character "&" is the first character of a delimiter but occurred as data
        return match && decodeURIComponent(match[1].replace(/\+/g, ' '));
      • Line 164, column 19: character "&" is the first character of a delimiter but occurred as data
        return match && decodeURIComponent(match[1].replace(/\+/g, ' '))
      [COLOR=rgb(255, 0, 0)]Source code:[/COLOR]


    function getParameterByName(name)

    {
    var match = RegExp('[?&]' + name + '=([^&]*)')
    .exec(window.location.search);

    return match && decodeURIComponent(match[1].replace(/\+/g, ' '));
    }

  2.  

  3. #2
    Unpaid WDF Intern TheGAME1264's Avatar
    Join Date
    Dec 2002
    Location
    Not from USA
    Posts
    14,483
    Member #
    425
    Liked
    2783 times
    Put your function in a .JS file and call the .JS file.

    It sounds stupid, but in this case, it should give you your answer.
    If I've helped you out in any way, please pay it forward. My wife and I are walking for Autism Speaks. Please donate, and thanks.

    If someone helped you out, be sure to "Like" their post and/or help them in kind. The "Like" link is on the bottom right of each post, beside the "Share" link.

    My stuff (well, some of it): My bowling alley site | Canadian Postal Code Info (beta)

  4. #3
    Member Bush_Tag's Avatar
    Join Date
    May 2011
    Posts
    39
    Member #
    27876
    Liked
    1 times
    Thanks a lot. I really was looking for a solution thank you so much

  5. #4
    Unpaid WDF Intern TheGAME1264's Avatar
    Join Date
    Dec 2002
    Location
    Not from USA
    Posts
    14,483
    Member #
    425
    Liked
    2783 times
    No probs, man. How did it work out for you?
    If I've helped you out in any way, please pay it forward. My wife and I are walking for Autism Speaks. Please donate, and thanks.

    If someone helped you out, be sure to "Like" their post and/or help them in kind. The "Like" link is on the bottom right of each post, beside the "Share" link.

    My stuff (well, some of it): My bowling alley site | Canadian Postal Code Info (beta)

  6. #5
    Member Bush_Tag's Avatar
    Join Date
    May 2011
    Posts
    39
    Member #
    27876
    Liked
    1 times
    i made a separate .js file and then called it and all the errors were gone instantly

  7. #6
    Member Bush_Tag's Avatar
    Join Date
    May 2011
    Posts
    39
    Member #
    27876
    Liked
    1 times
    and iam a woman . lol

  8. #7
    Unpaid WDF Intern TheGAME1264's Avatar
    Join Date
    Dec 2002
    Location
    Not from USA
    Posts
    14,483
    Member #
    425
    Liked
    2783 times
    Oh...whooooooooooooops.

    And yeah, that's what I thought would happen.
    If I've helped you out in any way, please pay it forward. My wife and I are walking for Autism Speaks. Please donate, and thanks.

    If someone helped you out, be sure to "Like" their post and/or help them in kind. The "Like" link is on the bottom right of each post, beside the "Share" link.

    My stuff (well, some of it): My bowling alley site | Canadian Postal Code Info (beta)


Remove Ads

Posting Permissions

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

Search tags for this page

parse entity ref no name

,

xmlparseentityref

,

xmlparseentityref no name

,

xmlparseentityref no name javascript on phones browser

Click on a term to search for related topics.
All times are GMT -6. The time now is 05:14 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com