Announcement

Collapse
No announcement yet.

Error in Javascript code.

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Error in Javascript code.

    Hi there, I have finished an actinic site, and am in the process of testing it.

    On earlier versions of IE (v4.0) and Netscape and some versions of IE5 and 6, when you click the online catalogue link (index.html within the acatalog directory) I get a javascript error, some browsers pop up a Script Error Box and some just put the little error image in the bottom left corner of the browser.

    The message box points the error to line 68 and reads;

    document.write("Items: " + getCartItem(3));

    If I look at Act_Primary.html the actual code is;

    document.write("NETQUOTEVAR:CARTCOOKIEITEMS " + getCartItem(3));

    Any ideas? the site is due to go to the customer ASAP.

    The url is http://212.125.70.254/actinic/

    Regards
    Peter.

    #2
    i think you need to upload ActinicExtras.js to your acatalog folder..

    usually this is uploaded all by itself...

    also, i notice that you dont actually use the cart contents function it all relates to, i.e.

    cart contents 3
    cart value £195.99

    is what you should be getting on your page..

    so if you arent using it, you can remove the offending

    document.write("NETQUOTEVAR:CARTCOOKIEITEMS " + getCartItem(3));

    from the primary template

    if you ever want to re-use it, find your themes folder in your c:/program files/actinic ecom v6/formats/themes and look at the act_primary from business or business css as they are the cleanest.

    take the code needed to display cart contents or anything you wish, and copy into your main sites act_primary...

    as ever, back up your work before you make any modifications...

    hope this helps..

    steve quinn
    harlequin domains
    www.harlequindomains.com
    0800 0832077
    Actinic Hosting, Design and Marketing is all we do...

    Comment


      #3
      thanks Steve, that works fine now.

      Comment


        #4

        Comment

        Working...
        X