Results 1 to 1 of 1

Threaded View

  1. #1
    Join Date
    Nov 2006
    Posts
    512
    Plugin Contributions
    0

    Default On Click Javascript > Categories?

    With a custom site wide javascript override running:

    includes/templates/{template_directory}/jscript/jscript_my_java_file.js

    I have read that its possible to have On Load Javascript for specific pages:

    For page-specific operation, put the file under the /includes/modules/pages/{pagename}/ folder.

    NOTE: on_load_*.js files must contain ONLY the raw code to be inserted in the <body> tag in the on_load="" parameter.
    so when that one page loads it loads a javascript function for that page only

    correct?

    So then would it be possible to do the same with the category pages? as they are not listed in the /includes/modules/pages folder.

    Ideally I would like a onclick javascript function when a certain category is clicked on in the category sidebox.

    is that possible????

    ex.

    Category sidebox > click on category1 button:

    http://YOURSITE.com/index.php?main_page=index&cPath=1

    (javascript A loads)

    Category sidebox > click on category2 button:

    http://YOURSITE.com/index.php?main_page=index&cPath=2
    (javascript B loads)

    etc..
    Last edited by dharma; 12 Jan 2008 at 08:41 PM.

 

 

Similar Threads

  1. v139h Can I disable 'javascript:void' in categories to preserve category click?
    By ouroboros in forum All Other Contributions/Addons
    Replies: 5
    Last Post: 20 Jun 2012, 01:06 AM
  2. Categories on click
    By Jeet Kune Do in forum General Questions
    Replies: 7
    Last Post: 31 Jan 2011, 05:59 PM
  3. Replies: 3
    Last Post: 22 Apr 2010, 03:08 AM
  4. Categories JavaScript
    By jgkiefer in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 16 Aug 2009, 01:13 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