Results 1 to 3 of 3
  1. #1
    Join Date
    Dec 2011
    Posts
    287
    Plugin Contributions
    0

    Default I need some help! I think I broke something!

    Hi Everyone,

    my page at http://kitchenwarehouseltd.com/ displays fine but when you run it through the validator you get 82 errors, these all seem to be because it is reading the javascript as code. This makes me think that something is nested improperly but I can see it myself. I am driving myself insane trying to figure it out.

    I will love you forever whoever can help me!

  2. #2
    Join Date
    Feb 2012
    Location
    mostly harmless
    Posts
    1,809
    Plugin Contributions
    8

    Default Re: I need some help! I think I broke something!

    Your "template" is telling the browser it conforms to XHTML Transitional. When you use inline javascript you must add appropriate tags to tell the borwser (and validation engine) the content should be treated as character data (instead of parsed as structured data).

    Code:
    <script type="text/javascript">
    //<![CDATA[
    	/* Add your javascript here inside the character data block */
    //]]>
    </script>
    Some other things you "may" wish to consider:
    • I see more than one "base" element in the "head". This should be corrected.
    • Multiple elements with the same "id" attribute (some are also empty). This should be corrected.
    • All elements need to be closed. This also applies to "br" elements. For XHTML they should be "<br />".
    • Images should have "alt" tags specified.
    • For jQuery plugins (like slimbox) why are you using inline javascript (increasing the page size / download time) instead of using an external file (which can leverage caching and reduce the overall amount of data required when viewing a second page or coming back to the site)?
    The glass is not half full. The glass is not half empty. The glass is simply too big!
    Where are the Zen Cart Debug Logs? Where are the HTTP 500 / Server Error Logs?
    Zen Cart related projects maintained by lhûngîl : Plugin / Module Tracker

  3. #3
    Join Date
    Dec 2011
    Posts
    287
    Plugin Contributions
    0

    Default Re: I need some help! I think I broke something!

    Perfect!

    Thanks for all the other tips too, Im not sure why slimbox is loaded as inline, I think that's to do with the zen_lightbox plugin.

    Im gunna work through all of it and see if I can get it sorted.

    THANKYOU

 

 

Similar Threads

  1. v138a Help Please Ladies and Gents ... I think I broke it !!!!
    By wallart studios in forum Upgrading to 1.5.x
    Replies: 50
    Last Post: 22 Jul 2015, 06:30 AM
  2. Help needed - I think I broke it - no page displaying
    By brakepad in forum General Questions
    Replies: 1
    Last Post: 12 Oct 2008, 01:06 AM
  3. Need Help. Installed SSL and Broke some Pages
    By Schanz in forum General Questions
    Replies: 3
    Last Post: 18 Aug 2008, 12:29 PM
  4. Help - I broke something! (maybe an easy fix?)
    By brightgirl in forum General Questions
    Replies: 7
    Last Post: 29 Feb 2008, 02:42 AM

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