Results 1 to 4 of 4
  1. #1
    Join Date
    Jun 2008
    Location
    Monterey, CA
    Posts
    36
    Plugin Contributions
    0

    Default external Javascript ampersands conflicting with W3C requirements

    I am using a javascript call to retrieve link info from a music playlist. It sends the user to the proper page to buy each particular track. The problem is the ampersands in the URL If left unencoded, w3c logs an error for each - 300 errors on one page. If I encode them as & or as %26 or as &amp (suggestions from the w3c site) ZenCart opens on a blank page, even though the URL appears correct. How can I get this to both work AND be 23c compliant?

    Sorry, I can't upgrade to v151, Bluehost is responsible for the version upgrades, and their v5 is not installing at the moment. But this should not affect the URL issue. I'm working with BH to get updated, meanwhile any help would be appreciated.

    If you wish to see this in action, look at http://www.thesoundsmith.com/radiopg.htm for a working version and http://www.thesoundsmith.com/radiopg2.htm for a broken one.

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: Ampersands conflicting with W3C requirements

    Those pages do not appear to be ZenCart pages
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Jun 2008
    Location
    Monterey, CA
    Posts
    36
    Plugin Contributions
    0

    Default Re: Ampersands conflicting with W3C requirements

    Quote Originally Posted by kobra View Post
    Those pages do not appear to be ZenCart pages
    No, those are the pages that link to the ZenCart. The "radiopg2" is the one that generates the errors to ZenCart but keep W3C happy. 90% of the audio files have links to ZenCart, the rest are not for sale. If you go to the radio page and click on the "Buy" button, it links to the cart. If you do it on radiopg2, it links to the empty page carat rather than the page with items for sale.

  4. #4
    Join Date
    Jun 2008
    Location
    Monterey, CA
    Posts
    36
    Plugin Contributions
    0

    Default Re: Ampersands conflicting with W3C requirements

    Never mind! The problem was fixed by converting the calling page's DOCTYPE to HTML5.

    Thanks for the support.

 

 

Similar Threads

  1. Background Image Conflicting with Shipping Popup
    By Always_Workin in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 2 Aug 2012, 05:30 PM
  2. conflicting javascript image & additional image viewing. Help please?
    By gone_surfen in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 28 Jul 2010, 10:47 AM
  3. Javascript As External File
    By jill8026 in forum General Questions
    Replies: 11
    Last Post: 12 Sep 2009, 04:12 PM
  4. Email addresses with ampersands in them
    By nigelt74 in forum General Questions
    Replies: 4
    Last Post: 19 Mar 2009, 03:49 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR