Thread: Validate html

Page 6 of 7 FirstFirst ... 4567 LastLast
Results 51 to 60 of 63
  1. #51
    Join Date
    Nov 2007
    Posts
    141
    Plugin Contributions
    0

    Default Re: Validate html

    I have an HTML warning on my product_info page dealing with the attribute images. The following code found in the attributes.php file returns the following HTML warning.

    $tmp_attributes_image .= '<div class="attribImg"><a href="javascriptopImage(\''. $attribute_image_lrg.'\',\'Large View\',\''. $selected_attrname.'\')">'. zen_image(DIR_WS_IMAGES . $products_options->fields['attributes_image']) . (PRODUCT_IMAGES_ATTRIBUTES_NAMES == '1' ?'<br/>' . $products_options->fields['products_options_values_name'] : '') . '</a></div>' . "\n";

    <a> escaping malformed URI reference

    and displays the following with the highlighted red slashes

    <div class="attribImg"><a href="javascriptopImage('images/large/SweetZouZou/almond_cranberry_shd_LRG.jpg','Large View','Step 2: Flavour:Almond Cranberry')"><img src="images/attributes/almond_cranberry_shd.jpg" alt="" width="100" height="76" /><br/>Almond Cranberry</a></div>

    The "clean up the page" shows the following code

    <div class="attribImg"><a href="javascriptopImage('images/large/SweetZouZou/almond_cranberry_shd_LRG.jpg','Large%20View','Step%202:%20Flavour:Almond%20Cranb erry')">
    <img src="images/attributes/almond_cranberry_shd.jpg" alt="" width=
    "100" height="76"><br>Almond Cranberry</a></div>

    <br> is not correct though and <br/> is correct. Why is this a warning?

    I don't know how to remove the / after height= "76".

    Thx Sweet

  2. #52
    Join Date
    Nov 2007
    Posts
    141
    Plugin Contributions
    0

    Default Re: Validate html

    post error

  3. #53
    Join Date
    Oct 2006
    Posts
    5,477
    Plugin Contributions
    11

    Default Re: Validate html

    Exactly on which page you encounter the error?
    I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me

  4. #54
    Join Date
    Nov 2007
    Posts
    141
    Plugin Contributions
    0

    Default Re: Validate html

    the product_info pages, see a link below.

    "http://www.sweetzouzou.com/index.php?main_page=product_info&cPath=cPath=81&products_id=205"
    Last edited by Kim; 16 Jan 2008 at 04:19 PM. Reason: removed ZenID -

  5. #55
    Join Date
    Oct 2006
    Posts
    5,477
    Plugin Contributions
    11

    Default Re: Validate html

    Delete Zenid from the link, now!!!
    I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me

  6. #56
    Join Date
    Oct 2006
    Posts
    5,477
    Plugin Contributions
    11

    Default Re: Validate html

    You have div inside p, this is not valid:
    Code:
    <!--bof Product Price block -->
    <p id="productPrices" class="productGeneral"> <!--eof Product Price block -->
    
    
    <!--bof Main Product Image -->
    
     
    
    
    <div id="productMainImage" class="centeredContent back">
    I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me

  7. #57
    Join Date
    Nov 2007
    Posts
    141
    Plugin Contributions
    0

    Default Re: Validate html

    I placed a closing </p> (thanks for finding that) but the same html warning shows up for the "productAttributesImage"

    "<a> escaping malformed URI reference"

    <div class="attribImg"><a href="javascriptopImage('images/large/SweetZouZou/almond_shd_LRG.jpg','Large View','Step 2: Flavour:Toasted Almond')"><img src="images/attributes/almond_shd.jpg" alt="" width="100" height="76" />Toasted Almond</a></div>

    The red "/" seems to be showing up all over the page source but only gives me an error in the above line.

  8. #58
    Join Date
    Oct 2006
    Posts
    5,477
    Plugin Contributions
    11

    Default Re: Validate html

    AGAIN: Please remove zenid from your link, never post a link with zenid, it is a security risk.

    My validator shows that you are missing a few alt for imgs, and that's it, no other error found.
    I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me

  9. #59
    Join Date
    Nov 2007
    Posts
    141
    Plugin Contributions
    0

    Default Re: Validate html

    thanks for the advice, but i can't remove it now, the 7 mintue time limit expired. I went ot bed after posting that last night.

  10. #60
    Join Date
    Nov 2007
    Posts
    141
    Plugin Contributions
    0

    Default Re: Validate html

    I have a validate error on my product_listing page and it is from the missing "alt" names for the attribute images. I can not figure out where to add the code. I think it is somewhere in my includes/modules/MY TEMPLATE/attributes.php; see below.

    if (file_exists($attribute_image_lrg)) {
    $tmp_attributes_image .= '<div class="attribImg" alt="rr"><a href="javascriptopImage(\''. $attribute_image_lrg.'\',\'Large View\',\''. $selected_attrname.'\')">'. zen_image(DIR_WS_IMAGES . $products_options->fields['attributes_image']) . (PRODUCT_IMAGES_ATTRIBUTES_NAMES == '1' ? '' . $products_options->fields['products_options_values_name'] : '') . '</a></div>' . "\n";
    } else {
    $tmp_attributes_image .= '<div class="attribImg">'. zen_image(DIR_WS_IMAGES . $products_options->fields['attributes_image']) . (PRODUCT_IMAGES_ATTRIBUTES_NAMES == '1' ? '' . $products_options->fields['products_options_values_name'] : '') . '</div>' . "\n";
    }
    }
    }


    Thx Sweet

 

 
Page 6 of 7 FirstFirst ... 4567 LastLast

Similar Threads

  1. Can't validate featured products
    By australican in forum Basic Configuration
    Replies: 1
    Last Post: 8 Apr 2010, 03:11 AM
  2. Validate a new credit card
    By jakumpe in forum Built-in Shipping and Payment Modules
    Replies: 4
    Last Post: 30 Nov 2007, 04:57 AM
  3. Validate cvv number
    By gruntre69 in forum General Questions
    Replies: 3
    Last Post: 4 Dec 2006, 01:47 AM

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