Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 2005
    Posts
    229
    Plugin Contributions
    0

    Default Embeding Javascript

    Hello,

    I've read a few threads and the wiki page
    http://www.zen-cart.com/wiki/index.p...s_-_Javascript

    but I'm a bit confused about how to embed my javascript function in a description. I don't even know if this is possible.
    Pasting html code in a description either of a category or product is possible, ok, but how to use my jscript function in a description ?

    Thanks for help

    regards

    Hubert

  2. #2
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Embeding Javascript

    The article you linked to is useful for pre-loading script functions etc on the desired pages. Once loaded, you can "call" it wherever you need to. Some scripts require no additional calls. Some scripts require that you call a certain function at a certain point on the page, in which case you simply embed the appropriate <script>.....</script> tags where needed.
    Quote Originally Posted by hubert View Post
    but how to use my jscript function in a description ?
    Within a product description, javascript can be simply embedded using the normal HTML tags for scripting: <script> .... </script>
    .

    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.

 

 

Similar Threads

  1. Embeding product onto a 3rd party site
    By systemagic in forum General Questions
    Replies: 24
    Last Post: 23 Oct 2010, 01:56 PM
  2. Embeding flash into the banner section of my template?
    By kylepoyser in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 8 Sep 2010, 03:58 PM
  3. Embeding video does not work
    By navido in forum General Questions
    Replies: 3
    Last Post: 11 Feb 2010, 04:56 AM
  4. Javascript
    By Nick1973 in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 16 Apr 2009, 11:32 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