Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2006
    Posts
    57
    Plugin Contributions
    0

    Default Custom javascript per page

    What is the best way to adding custom javascript per page, EZpages? I know that you can include it in the page, but I would rather call it externally if a specific page is loaded.

  2. #2
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Custom javascript per page

    I might try page-specific js loading with a jscript_whatever.php file in /includes/modules/pages/page/. In that file would be PHP logic to look up the current ez-page id, and load the desired script accordingly.

    Look at /includes/templates/template_default/common/html_header.php for examples of how that loads js files.

 

 

Similar Threads

  1. Custom Pricing Per Item Per Customer?
    By creyesx6 in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 3 Aug 2011, 02:14 PM
  2. Custom Javascript Calling images from unsecure folder
    By CoolCarPartsOnline in forum General Questions
    Replies: 0
    Last Post: 29 Dec 2008, 08:59 AM
  3. Integrating Custom Javascript
    By Starlyn in forum General Questions
    Replies: 2
    Last Post: 26 Aug 2008, 04:32 PM
  4. Adding Custom Javascript to head and body
    By Xena in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 19 Jun 2007, 04:30 AM
  5. Problem adding javascript to custom sidebox
    By etrader in forum Basic Configuration
    Replies: 2
    Last Post: 28 Aug 2006, 04:03 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