X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Trying to use javascript in catagory description (https://forum.x-cart.com/showthread.php?t=14679)

toddmc 06-20-2005 11:51 AM

Trying to use javascript in catagory description
 
What i am trying to do is to have a javascipt tag open up a separate window onclick. The html and javascript for this was generated in dreamweaver mx. I am pasting the html with the javascript into the catagory description. I have tried to just paste it all there, but when i leave the <script> tags it will delete all text in description. I also have tried to put the script tag in the head.tpl to call upon a separate javascript file, but still nothing. I have seen javascript work in other parts of xcart so i know it can work but will it in the description?

Please help!!

Here is the link if you want a visual of what im talking about, youll notice when you click on the 4 circles they should open up a separate window the size of the pic being displayed and with no browser functions. But nothing happens onclick.

http://www.benchworx.com/home.php?cat=248

Thanks,
Jamey Miller
Playnation Playsystems
jamey@playset.com

balinor 06-20-2005 12:46 PM

Try putting {literal} tags around the javascript. Example:

{literal} Insert Javascript here {/literal}

Not sure if javascript will work in the product descriptions, but it will definitely work elsewhere in the site.

toddmc 06-21-2005 05:57 AM

Thanks
 
Thanks a lot, I put the literal tags with my javascript head info in the head.tpl and it works great. Thanks a million, you saved me alot of time!!

Jamey

shiehshieh 07-05-2005 11:59 AM

Does anyone know how to make it work in the product description? I tried to add {literal} around it, but it doesn't work. Please advise. Thanks so much in advance!

balinor 07-05-2005 12:49 PM

Not sure it will work in the product description....

shiehshieh 07-05-2005 01:16 PM

You mean, you don't think it's possible to get it to work in the product description? Oh no..... :-( We have video demos on a bunch of these products that we're trying to integrate.

Hmm, if it works for the category description, why not for the product description?

Thanks again.


All times are GMT -8. The time now is 06:57 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.