Results 1 to 6 of 6
  1. #1
    Join Date
    Nov 2008
    Posts
    14
    Plugin Contributions
    0

    css problem Damned Internet Explorer! Never works right..

    PHP Code:
       <?php if ($_SESSION['cart']->count_contents() != 0) { ?>
            <li><a href="<?php echo zen_href_link(FILENAME_SHOPPING_CART'''NONSSL'); ?>"><?php echo HEADER_TITLE_CART_CONTENTS?></a></li>
            <li><a href="<?php echo zen_href_link(FILENAME_CHECKOUT_SHIPPING'''SSL'); ?>"><?php echo HEADER_TITLE_CHECKOUT?></a></li>
            <?php }?>
            <?
            if (isset($_SESSION['customer_id']) and $_SESSION['customer_id'] != '1') {
    echo "<li><input type=\"image\" src=\"http://xblight.com/store/music/music.gif\" onClick=\"window.open('http://xblight.com/store/music/index.php','XBLight Music Player','width=450,height=320,left=400,top=25,screenX=400,screenY=25')\"></li>";
    }     else {
    echo "<li><input type=\"image\" src=\"http://xblight.com/store/music/music.gif\" onClick=\"window.open('http://xblight.com/store/music/musicalerror.html','XBLight Music Player (No Access)','width=450,height=320,left=400,top=25,screenX=400,screenY=25')\"></li>";
    }  
    ?>
    Can someone explain to me why that code works in everything except for IE?
    www.xblight.com (click music on the way top)
    Works perfectly in firefox and chrome, but im thinkin maybe i missed something and thats why it wont work in iexplore.
    alright thanks

  2. #2
    Join Date
    Nov 2008
    Posts
    14
    Plugin Contributions
    0

    Default Re: Damned Internet Explorer! Never works right..

    bump, anyone?? im goin crazy over here
    [FONT="Arial Black"]XBLight.com - My Pride and Joy.[/FONT]

  3. #3
    Join Date
    Jul 2006
    Location
    Montreal, Canada
    Posts
    2,279
    Plugin Contributions
    0

    Default Re: Damned Internet Explorer! Never works right..

    looking at out put of your store. i get this info.

    line 31 refers to your music onclick event , "" Element not empty or not closed "

    line 28 , You have <ul class =back > after <div id="navMain"> which is not closed .. there is not </ul> tag before </div>
    this might be the reason ??????????

    all the javascript code for your music Onclick event is been commented out .. you might want to remove the comments for testing and debugging ..

    im using IE 6 .

  4. #4
    Join Date
    Nov 2008
    Posts
    14
    Plugin Contributions
    0

    Default Re: Damned Internet Explorer! Never works right..

    Heres a larger chunk of the code if its relevant. I closed the ul tag but it didnt help. Also its commented out because I dont want a button that is unfunctional to be visible on my live site. Thanks very much for your help though. Here is a larger chunk of my code that I hope someone can diagnose...

    <div id="headerWrapper">

    <div id="navMainWrapper">
    <div id="navMain">
    <ul class="back">
    <li><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">'; ?><?php echo HEADER_TITLE_CATALOG; ?></a></li>
    <?php if ($_SESSION['customer_id']) { ?>
    <li><a href="<?php echo zen_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGOFF; ?></a></li>
    <li><a href="<?php echo zen_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a></li>
    <?php
    } else {
    if (STORE_STATUS == '0') {
    ?>
    <li><a href="<?php echo zen_href_link(FILENAME_LOGIN, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGIN; ?></a></li>
    <?php } } ?>
    <?php if ($_SESSION['cart']->count_contents() != 0) { ?>
    <li><a href="<?php echo zen_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL'); ?>"><?php echo HEADER_TITLE_CART_CONTENTS; ?></a></li>
    <li><a href="<?php echo zen_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>"><?php echo HEADER_TITLE_CHECKOUT; ?></a></li>
    <?php }?>
    <?
    if (isset($_SESSION['customer_id']) and $_SESSION['customer_id'] != '1') {
    echo "<li><input type=\"image\" src=\"http://xblight.com/store/images/music.gif\" onClick=\"window.open('http://xblight.com/store/mUsic/index.php','XBLight Music Player','width=450,height=320,left=400,top=25,screenX=400,screenY=25')\"></li>";
    } else {
    echo "<li><input type=\"image\" src=\"http://xblight.com/store/images/music.gif\" onClick=\"window.open('http://xblight.com/store/musicalerror.html','XBLight Music Player (No Access)','width=450,height=320,left=400,top=25,screenX=400,screenY=25')\"></li>";
    }
    ?>
    <!--
    <?
    if (isset($_SESSION['customer_id']) and $_SESSION['customer_id'] != '1') {
    echo "<li><input type=\"image\" src=\"http://xblight.com/store/images/video.gif\" onClick=\"window.open('http://xblight.com/store/vIdeo/index.php','XBLight Video Player','width=472,height=465,left=400,top=25,screenX=400,screenY=25')\"></li>";
    } else {
    echo "<li><input type=\"image\" src=\"http://xblight.com/store/images/video.gif\" onClick=\"window.open('http://xblight.com/store/videoerror.html','XBLight Video Player (No Access)','width=472,height=465,left=400,top=25,screenX=400,screenY=25')\"></li>";
    }
    ?>
    -->

    </ul>
    </div>
    [FONT="Arial Black"]XBLight.com - My Pride and Joy.[/FONT]

  5. #5
    Join Date
    Oct 2006
    Location
    Alberta, Canada
    Posts
    4,571
    Plugin Contributions
    1

    Default Re: Damned Internet Explorer! Never works right..

    I would take issue with the Coder, not the Browser.

    <div id="navMain">
    <ul class="back">

    <li><a href="http://xblight.com/store/">Home</a></li>
    <li><a href="http://xblight.com/store/index.php?main_page=login">Log In</a></li>
    <input type="image" src="http://xblight.com/store/images/music.gif" onClick="window.open('http://xblight.com/store/musicalerror.html','XBLight Music Player (No Access)','width=450,height=320,left=400,top=25,screenX=400,screenY=25')"><li><input type="image" src="http://xblight.com/store/images/video.gif" onClick="window.open('http://xblight.com/store/videoerror.html','XBLight Video Player (No Access)','width=472,height=465,left=400,top=25,screenX=400,screenY=25')"></li>
    </div>
    With errors noted in RED, they would be:
    - no closing UL tag
    - INPUT tag not in an LI tag
    - incorrect syntax for closing of INPUT tag
    - Parenthesis's within Parenthesis's which should be escaped

  6. #6
    Join Date
    Nov 2008
    Posts
    14
    Plugin Contributions
    0

    Default Re: Damned Internet Explorer! Never works right..

    Alright, I just figured it out and I have never felt stupider in my life.
    All my code is fine, however....

    After hours spent trying to figure it out, and it was as simple as removing the spaces in between the title. Yep, internet explorer apparently likes "ThisIsMyTitle" better than "This Is My Title" when it comes to javascript.

    IE!!!
    [FONT="Arial Black"]XBLight.com - My Pride and Joy.[/FONT]

 

 

Similar Threads

  1. Layout troubles in Internet Explorer (works fine in Firefox)
    By strongbear in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 11 Sep 2009, 06:46 PM
  2. Page not right in internet explorer
    By satguy in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 3 Jul 2008, 08:05 PM
  3. why SEO never works right on my site?
    By lina0962 in forum All Other Contributions/Addons
    Replies: 4
    Last Post: 14 Apr 2007, 10:05 PM
  4. override system never works right for me.........
    By lina0962 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 16 Jan 2007, 07:18 PM
  5. Site works fine in Internet Explorer but not on...
    By philpalmer in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 4 Oct 2006, 03:52 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