Results 1 to 10 of 10
  1. #1
    Join Date
    Jul 2007
    Location
    Jakarta
    Posts
    358
    Plugin Contributions
    0

    help question java script not loading

    Can anyone tell me why a particular jscript wont load?

    I have template_default/jscript/jscript_imagehover.js

    The browser doesn't load this file.

    I have verified that the file is actually on my server and not just local.

    See my test site

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: java script not loading

    I believe that one the js should be in includes/templates/NAHID_ARTISTIC/js/

    Second - have you installed other associated files that would load this js as I assume that it is part of a module and if IH2 did you configure it in the admin?
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Jul 2007
    Location
    Jakarta
    Posts
    358
    Plugin Contributions
    0

    Default Re: java script not loading

    I'll try moving it my override folder, but I just followed the install instructions. I've installed the associated IH2 files and it's working except that the hover does work because this js is not loadin.

  4. #4
    Join Date
    Jul 2007
    Location
    Jakarta
    Posts
    358
    Plugin Contributions
    0

    Default Re: java script not loading

    I moved the file to the override jscript folder and the hover works.

    Shouldn't jscript files in the template_default/jscript run as well?

  5. #5
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: java script not loading

    I moved the file to the override jscript folder and the hover works.

    Shouldn't jscript files in the template_default/jscript run as well?
    There are some quirks???
    Zen-Venom Get Bitten

  6. #6
    Join Date
    Jun 2009
    Location
    Brisbane, QLD AUS
    Posts
    210
    Plugin Contributions
    0

    Default Re: java script not loading

    sorry, wasn't sure where to post but my problem is sort of similar...

    i initially had some problems with loading js files, and eventually gave up and just loaded them manually through includes/templates/MYTEMPLATE/common/html_header.php

    i then found out about stylesheets loading automatically if there was a particular aming convention used, and wondered if this was the case with js files?

    exactly how do i get them to load automatically, or is this not possible?

    cheers
    andy

  7. #7
    Join Date
    Jul 2009
    Location
    CA of USA
    Posts
    24
    Plugin Contributions
    0

    Default Re: java script not loading

    @ ALiepinieks: May be you need to read some code from 'html_header.php' file which lie in your current template.

    For more, read the definition of get_template_part and get_template_dir these two crucial functions.

  8. #8
    Join Date
    Jun 2009
    Location
    Brisbane, QLD AUS
    Posts
    210
    Plugin Contributions
    0

    Default Re: java script not loading

    nice work : )

    i saw the function calls, but never read the comments... now i feel a little silly.

    thanks
    andy

  9. #9
    Join Date
    Jul 2009
    Location
    CA of USA
    Posts
    24
    Plugin Contributions
    0

    Default Re: java script not loading

    Quote Originally Posted by ALiepinieks View Post
    nice work : )

    i saw the function calls, but never read the comments... now i feel a little silly.

    thanks
    andy

    OK, do you resolve your problem at present?

  10. #10
    Join Date
    Jun 2009
    Location
    Brisbane, QLD AUS
    Posts
    210
    Plugin Contributions
    0

    Default Re: java script not loading

    yes, thank you.
    didn't see the prefix "jscript_" was required, now everything is good

    cheers again
    andy

 

 

Similar Threads

  1. Java script restrict loading in specific page only
    By time111 in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 28 Jun 2010, 08:53 AM
  2. Java Script problem..
    By fatum112 in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 24 May 2006, 06:21 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