Results 1 to 4 of 4
  1. #1
    Join Date
    Apr 2004
    Location
    vienna
    Posts
    198
    Plugin Contributions
    9

    Default general javascript possible

    is there an easy way to include a javascript-file to all pages

    background: we need a way to override the standard alert-function
    Code:
    window.alert = newAlert;
    to "translate" things like &öuml; to ö (in javascript '00F6')

    we know the template-way: /* load all site-wide jscript_*.js files from includes/templates/YOURTEMPLATE/jscript, alphabetically
    Last edited by hugo13; 26 Sep 2006 at 09:59 AM.

  2. #2
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: general javascript possible

    .
    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
    Apr 2004
    Location
    vienna
    Posts
    198
    Plugin Contributions
    9

    Default Re: general javascript possible

    thanks for your quick reply

    we put it into template_default

    one sideeffect: if there is 1 *.js file in the selected template folder, no JS-file from teplate-default will be load

  4. #4
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: general javascript possible

    Quote Originally Posted by hugo13
    one sideeffect: if there is 1 *.js file in the selected template folder, no JS-file from teplate-default will be load
    That is correct.
    .
    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. v139h Is it possible to add a Javascript script?
    By gotyed in forum General Questions
    Replies: 1
    Last Post: 7 Mar 2012, 08:25 PM
  2. Javascript - Is this possible
    By pb4 in forum General Questions
    Replies: 4
    Last Post: 11 Jun 2010, 04:06 AM
  3. Is it possible to apply javascript to show option value images?
    By mumzie in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 2 Jan 2009, 07:16 PM
  4. Javascript on 1 Document General page only
    By thebasher in forum Setting Up Categories, Products, Attributes
    Replies: 13
    Last Post: 28 Apr 2008, 04:52 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