| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Trying to use javascript in catagory description | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() 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
__________________
X-Cart/LiteCommerce 4.0 |
|||||||
#2
|
|||||||
|
|||||||
![]() 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.
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#3
|
|||||||
|
|||||||
![]() 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
__________________
X-Cart/LiteCommerce 4.0 |
|||||||
#4
|
|||||||
|
|||||||
![]() 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!
__________________
Cheers, Tom X-Cart v4.1.9 PRO Boba Tea Direct "Your source for bubble tea, boba, coffee, tea, chai, and more" www.bobateadirect.com Hevla Coffee Co Freshest roast-to-order low acid coffee www.hevlacoffeeco.com |
|||||||
#5
|
|||||||
|
|||||||
![]() Not sure it will work in the product description....
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#6
|
|||||||
|
|||||||
![]() You mean, you don't think it's possible to get it to work in the product description? Oh no.....
![]() Hmm, if it works for the category description, why not for the product description? Thanks again.
__________________
Cheers, Tom X-Cart v4.1.9 PRO Boba Tea Direct "Your source for bubble tea, boba, coffee, tea, chai, and more" www.bobateadirect.com Hevla Coffee Co Freshest roast-to-order low acid coffee www.hevlacoffeeco.com |
|||||||
|
|||
X-Cart forums © 2001-2020
|