| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
java error wanna take a look? | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() Was trying to put this in product.tpl to add a pop up color chart.
Put in function in "top" with other java functions and put call in lower specifically under add to cart. I keep ending up with errors and don't understand why, does someone? {literal} } function popUp() {popup=window.open('color chart.jpg', 'poppage, width=350 , height=450');} { {/literal} <form> <input type=button value="Open " onClick="javascript:popUp($ImagesDir}/color chart.jpg)"> </form> thanks |
|||||||
#3
|
|||||||
|
|||||||
![]() thanks Boomer,
it produces the button but with a syntax error and doesn't call correctly as the button doesn't do anything. ![]() |
|||||||
#4
|
|||||||
|
|||||||
![]() ok here is how I got it without errors if anyone has similar woes.
function. {literal} } function popUp() {popUp=window.open('{$ImagesDir}/color chart.jpg, width=350, height=450')} { {/literal} Call. <form> <input type=button value="Pop-up Window" onClick="javascript:popUp()"> </form> More work to do, it can't find the image but at least no errors. I'm learning as I go so was happy with that for now. |
|||||||
|
|||
X-Cart forums © 2001-2020
|