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)
-   -   Adding Javascript (https://forum.x-cart.com/showthread.php?t=20144)

N00bie 02-25-2006 06:07 AM

Adding Javascript
 
This has probably been answered on the forums, although I could not find it.

I am attempting to add some simple javascript (openWin) to the pages and whenever/whereever I add it, X-cart goes into error. All I am trying to add is:
Code:

<script language="JavaScript">
<!--
function openWin(URL)
{
window.open(URL,"daughter","height=400,width=400,scrollbars=yes,menubar=no,toolbars=no,status=no,location=no,resizable");
}
//-->
</script>


Have added it to the head region as well as in the header and I end up with the same fatal error.

Any advice on thsi one?

Thanx[/code]

amy2203 02-25-2006 06:14 AM

You might need to enclose it in {literal} {/literal} tags?

search the forums for {literal} to see if it will help,

N00bie 02-26-2006 09:00 AM

Thanx m8, that was the ticket :D


All times are GMT -8. The time now is 03:37 AM.

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