Page 2 of 2 FirstFirst 12
Results 11 to 12 of 12
  1. #11
    Join Date
    Dec 2007
    Location
    Payson, AZ
    Posts
    1,076
    Plugin Contributions
    15

    Default Re: Javascript issue

    Quote Originally Posted by TheBuz View Post
    Hi guys, i have discovered that this JS is interfering with the AJAX image loader it stops the images from being shown anyone know why this might be? thanks for all the help so far :)
    I had to look up a AJAX image loader, not sure which one your using so kind of shooting in the dark here. I think your problem is that both scripts are using the onload event. Having the event called by both scripts cancels out the other so nothing loads.

    You would have to integrate another variable within the Ajax script or find one that uses a smart onload event.


    @LTCreations

    running scripts in the header tags work like this..
    placing script in, includes\templates\my_template\jscript\jscript_somthing.js will run the script site wide, every page.

    placing script in, includes\modules\pages\product_info\jscript_main.php runs the script just for that page.

    As for the image on top of your site, you could code it with a cross of php and script to load your catigory image giving it a differnt image depending on catigory.
    Dave
    Always forward thinking... Lost my mind!

  2. #12
    Join Date
    Sep 2009
    Posts
    4
    Plugin Contributions
    0

    Default Re: Javascript issue

    Thank you!
    It's been while to reply since the client didn't want to spend the $ on my efforts until last week. Now that I've had to revisit the issue it took me nearly 2 weeks to find this thread again.

    I've implemented the scripts as directed by you and in this thread http://www.zen-cart.com/forum/showthread.php?t=90993 in order to combine the information to create http://www.peninsulaoutfitters.com/s...index&cPath=75 . Of course the specific images won't mean anything to you since you won't know what images are intended for each category and id. Trust me...after lots of I've incorporated, tested, and have used the jscript_main.php in the folder you suggested, as well as the jscript_index.php which contains similar js for the categories to show images different for each of 4 categories - as per client. The combination of the 2 threads was mandatory, and once implemented 'correctly', they work great. Thanks again.

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. Javascript slideshow issue
    By timhersh in forum General Questions
    Replies: 6
    Last Post: 2 Nov 2012, 09:26 PM
  2. SSL ISSUE IE8 javascript
    By hawlisjawt in forum General Questions
    Replies: 11
    Last Post: 6 Jan 2011, 08:28 PM
  3. Javascript issue in IE. FF is working ok
    By TheBuz in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 4 Dec 2009, 05:32 PM
  4. Payflow pro Module- Uk Debit Card issue with issue dates
    By Calljj in forum Addon Payment Modules
    Replies: 27
    Last Post: 1 Oct 2007, 08:59 PM
  5. Categories Javascript issue
    By fbords in forum Addon Sideboxes
    Replies: 1
    Last Post: 5 Sep 2007, 07:05 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