Results 1 to 6 of 6

Hybrid View

  1. #1
    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]

  2. #2
    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

  3. #3
    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

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