Thread: Javascript

Page 1 of 2 12 LastLast
Results 1 to 10 of 15
  1. #1
    Join Date
    Oct 2008
    Posts
    15
    Plugin Contributions
    0

    Default Javascript

    How do I add javascript function to the main page but I need to access the head item.

  2. #2
    Join Date
    Oct 2006
    Posts
    624
    Plugin Contributions
    0

    Default Re: Javascript

    You might like to refer to the following 2 files in your Zen Cart installation for more information on how to automagically load your Javascripts.

    • docs/read_me_jscript.html
    • docs/read_me_onload.html
    Goh Koon Hoek, author of "e-Start Your Web Store with Zen Cart".
    Printed book: www.lulu.com/content/10576284
    Electronic book and Errata: www.cucumbermedia.com/store

  3. #3
    Join Date
    Oct 2008
    Posts
    15
    Plugin Contributions
    0

    Default Re: Javascript

    Thanks Canopy but, it just does not seem to want to work.

  4. #4
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Javascript

    If the documentation isn't sufficient, perhaps you need to be much more specific about what you want to do.
    http://www.zen-cart.com/wiki/index.p...s_-_Javascript
    .

    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.

  5. #5
    Join Date
    Oct 2008
    Posts
    15
    Plugin Contributions
    0

    Default Re: Javascript

    I am adding a rotating banner script to the main page, I have tried several different ways including adding an alert which always gets triggered but the banners just does not show.

  6. #6
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Javascript

    I could copy-and-paste the documentation here, but that would be redundant.

    Without seeing what code you're putting where, or your URL where it's not working properly, I'm unable to help you.
    .

    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.

  7. #7
    Join Date
    Oct 2008
    Posts
    15
    Plugin Contributions
    0

    Default Re: Javascript

    Here is an example of what it is suppose to look like (see large banner up top.)
    hustlervideo.com/index.php **** ALERT: ADULT CONTENT ****

    Also is it possible to apply more that one define_page includes tot he main page and how is it done?

  8. #8
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Javascript

    I can't offer you any assistance related to why it's not working on *your* site without seeing *your* site.

    And, no, unless you write custom code to include multiple define-page segments, you can't combine more than one per page. Again, perhaps explaining in detail what exactly you're wanting to accomplish and why ... might result in recommendations of alternative approaches that might suit your needs.
    .

    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.

  9. #9
    Join Date
    Oct 2008
    Posts
    15
    Plugin Contributions
    0

    Default Re: Javascript

    basically here is what has already been done.

    hustlerhollywood.com/scripts/ECatalogISAPI.dll/Group?Group=1&Template=9990000001000999

    this is what I am doing with zen trying to duplicate as much as possible.

    storedev.hustlerhollywood.com

  10. #10
    Join Date
    Oct 2008
    Posts
    15
    Plugin Contributions
    0

    Default Re: Javascript

    better question besides the side boxes included in Zen, can custom sideboxes be added?

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Javascript
    By Nick1973 in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 16 Apr 2009, 11:32 AM
  2. Javascript
    By 100asa in forum General Questions
    Replies: 2
    Last Post: 10 Apr 2007, 08:09 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