Results 1 to 7 of 7

Hybrid View

  1. #1
    Join Date
    Feb 2007
    Posts
    45
    Plugin Contributions
    0

    Default Javascript and SSI

    I don't know if this question should go here.

    I am trying to use server side includes in order to enter in syndicated javascipt that will work with browsers that have javascript enabled or disabled. If anyone has a better way of accomplishing this task than the one I am trying, please let me know.

    My biggest issue right now is that I cannot get server side includes to work with my site. I am hosting with hostgator and all the appropriate Perl modules are installed. I have tried SSI with RSS which didn't work and now my javascript (I used the tutorial here: http://willmaster.com/possibilities/...20205001.shtml) will not appear. I don't get errors, the code is there but nothing shows up.

    Ideally, I would like to insert this SSI into html tables on my .php pages. Is this even possible? I don't want to make my pages .html or .shtml.

    Please let me know what other information is needed to help me with this. I am probably making it more complex than necessary.

    Thanks,
    Nick
    Not totally zenned yet but working on it.

    Vytle.com powered by Zen 1.3.6

  2. #2
    Join Date
    Jun 2003
    Posts
    33,721
    Plugin Contributions
    0

    Default Re: Javascript and SSI

    Well - you can't use .html or .shtml because the program is written in PHP. Why is determining if the javascript is on or off important?
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

  3. #3
    Join Date
    Feb 2007
    Posts
    45
    Plugin Contributions
    0

    Default Re: Javascript and SSI

    I don't understand what you mean? I am just looking for a way to use my syndicated javascript on some pages of my site and have them appear to those who have javascript enabled or disabled.

    I have been searching the internet and came across some techniques such as using SSI. If there is a better way or a specific "Zen" method I would love to know.
    Not totally zenned yet but working on it.

    Vytle.com powered by Zen 1.3.6

  4. #4
    Join Date
    Jun 2003
    Posts
    33,721
    Plugin Contributions
    0

    Default Re: Javascript and SSI

    including javascript is pretty easy look in the javascript directory in your Zen Cart install for instructions on including custom scripts.
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

  5. #5
    Join Date
    Feb 2007
    Posts
    45
    Plugin Contributions
    0

    Default Re: Javascript and SSI

    You are right, javascript is incredibly easy to install. But what about when you are changing it to work for everyone regardless of javascript enabled or not (besides using the <noscript> option?


    Anyway, out of curiousity, where is this "javascript directory in your Zen Cart install"? I can't locate it.

    Thanks,
    Nick
    Not totally zenned yet but working on it.

    Vytle.com powered by Zen 1.3.6

  6. #6
    Join Date
    Jun 2003
    Posts
    33,721
    Plugin Contributions
    0

    Default Re: Javascript and SSI

    includes/templates/template_default/jscript/
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

 

 

Similar Threads

  1. Javascript Conflict with Slimbox and Mootools and jQuery
    By bhensarl in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 15 Nov 2010, 03:22 PM
  2. SSI instruction error in your file.
    By Monsterness in forum Installing on a Windows Server
    Replies: 8
    Last Post: 19 Jan 2010, 01:11 PM
  3. Need to include a ssi function in a sidbox (basic PHP)
    By dieter in forum General Questions
    Replies: 1
    Last Post: 26 Sep 2007, 07:47 AM
  4. Forms and JavaScript
    By numinix in forum Contribution-Writing Guidelines
    Replies: 0
    Last Post: 24 Sep 2007, 07:12 AM
  5. Javascript and Zencart
    By Lord_Vyper in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 10 Jun 2006, 03:14 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