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?
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.
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.![]()
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.
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
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.
The auto-loading of javascript that Kim mentioned is intended for auto-loading of javascript content that is needed on all pages.
If you're attempting to use javascript to display specific content on a specific spot on specific pages, you won't use that approach. Instead, you would simply insert the required javascript directly where you want it, whether in the appropriate template, or in a define-page, etc.
Since you haven't shown what you're after with a URL to demonstrate what you've tried or what's not working, there's nothing much more that can be done to offer assistance.
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.