Results 1 to 2 of 2
  1. #1
    Join Date
    Oct 2006
    Posts
    5,477
    Plugin Contributions
    11

    Default Where should I put this javascript?

    I have a script that I would like to include in some pages on both the user inteface(store) and admin interface. I wonder if I should just create a folder called js and call the file when I need it like this:
    Code:
    <SCRIPT SRC="something.js">
    </SCRIPT>
    Or does Zen provides a better approach to this?

    Sincerely,
    I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me

  2. #2
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: Where should I put this javascript?

    For the Admin you will need to include the javascript as normal (see admin/index.php as an example).

    The catlog has a specific method available for including javascript which is documented in the /docs/read_me_jscript.html file.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

 

 

Similar Threads

  1. Replies: 1
    Last Post: 7 Apr 2013, 02:31 AM
  2. Where should I put my php/javascript files?
    By seifer987 in forum General Questions
    Replies: 5
    Last Post: 10 Nov 2008, 08:10 AM
  3. Where should I put PDF files?
    By TonyBenedetti in forum General Questions
    Replies: 5
    Last Post: 5 Oct 2007, 10:34 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