Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 2006
    Posts
    8
    Plugin Contributions
    0

    Default javascript questions for href redirect

    Trying to figure out why my javascript menu is not working

    I've got the script_jumpMenu.js in the /customtemplate/scripts/ directory and it's showing in the header as <script type="text/javascript" src="includes/templates/blast_template/jscript/jscript_jumpMenu.js"></script>

    I believe I have an error in the actual html because the links are just reloading the index of the cart but there is no javascript error message anywhere..

    this is the resulting URL

    http://blastmt.com/catalogue/?menu=h...x=11&image.y=7

    I tried it with the script tag instead of the href but it deleted the go button completely

    the page is at http://www.blastmt.com/catalogue


    <td>
    <form name="jump" >
    <select name="menu" style="width:150px; height:16px; font-family:tahoma; font-size:11px; background-color:#E88E85; border:1px solid #ffffff; font-weight:bold; color:#FFFFFF; padding-left:5px;">
    <option value="http://www.blastmt.com/faqs.html"> - How This Works</option>
    <option value="http://www.blastmt.com/order.html"> - Order Your Card</option>
    <option value="http://www.blastmt.com/signup.html"> - Corporate Sign Up</option>
    <option value="http://www.blastmt.com/athletedirectory.html"> - BLAST Athletes</option>
    <option value="http://www.blastmt.com/fundraising.html"> - Fundraising</option>
    <option value="http://www.blastmt.com/event.html"> - Event Sponsorship</option>
    <option value="http://www.blastmt.com/links.html"> - Links</option>
    <option value="http://www.blastmt.com/gear.html"> - BLAST Gear</option>
    <option value="/blast/partners.html"> - Our Partners</option>
    </select></td>
    <td align="right"><div style="padding-left:5px; padding-top:2px">
    <a href="Javascript:jumpMenu()"><input name="image" type="image" src="/catalogue/includes/templates/blast_template/images/go.jpg" width="23" height="16"></a></form></div></td>

    any help at all would be very much appreciated.

  2. #2
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: javascript questions

    Change this:
    Code:
    <a href="Javascript:jumpMenu()">
    to this a more contemporary and compliant approach:
    Code:
    <a href="#" onclick="jumpMenu();return false;">
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Oct 2006
    Posts
    8
    Plugin Contributions
    0

    Default Re: javascript questions for href redirect

    THANK YOU SO MUCH!!

    that worked PERFECTLY.

 

 

Similar Threads

  1. v154 Need a javascript expert! Can't trigger css class using href...
    By Feznizzle in forum General Questions
    Replies: 10
    Last Post: 27 May 2016, 05:45 PM
  2. Domain Redirect and SEO Questions
    By DBB1 in forum General Questions
    Replies: 6
    Last Post: 19 Oct 2010, 05:59 AM
  3. Adding href title value for prev / next...
    By modernm in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 28 Mar 2008, 09:20 PM
  4. Index page: Would you like to <a href="%s"> log yourself in....Change to javascript
    By dharma in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 1 Mar 2008, 12:08 AM
  5. javascript for single page
    By praiseandplay in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 5 Aug 2006, 07:12 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