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)
-   -   Internet Explorer Error Message (https://forum.x-cart.com/showthread.php?t=12943)

Jazzer 03-21-2005 07:33 PM

Internet Explorer Error Message
 
Well, seems I've done something wrong. All of my store pages are producing an error in IE sometimes on line 144 or 145. It reads like this:

Line: 144
Char: 1
Error: Object expected
Code: 0
URL: http://www.closertothedream.com/store/home.php

Anybody know what to do or where to start looking?

Thanks :(

hooter 03-21-2005 09:12 PM

Hello,

That is a javascript error. I noticed that you are trying to inflict a pop-up when I hit your home page. Is this javascript you have added to one of the templates? If so that could be your problem. Have you edited/modified any templates with additional javascript? That would be the first place to look.

TelaFirma 03-22-2005 04:27 AM

Well, you have some serious problems with your HTML code. You have <table> tags in your <head> section, you have <script> tags inserted in <table> tags in your head section, and you are calling scripts that you have not defined.

The first thing that you need to do is really clean up your HTML. It may be useful to do some reading on how HTML documents are structured and what is and is not valid to put into your <head> section.

As for your error, in your <body> tag you are calling the JavaScript function MM_preloadImages but you have not defined it anywhere in your page.

Jazzer 03-22-2005 06:35 AM

Thanks guys, I'm looking into it. I replaced the head.tpl file with the original and that seems to have got rid of the java error.

Therefore now I need to rebuild the head.tpl file with java to have mouseover buttons in the header, where do I put the javascript? In the head.tpl file or in another file which calls the head.tpl file? I know it has to be between the {literal} tags.

Also, all of my pages are generating a pop-up which is the "x-cart debugging consol". Ughhh! Webmaster mode is turned off so I've no idea why this is happenning.

Newbie mistakes I know but I'm trying.

:?:

balinor 03-22-2005 06:38 AM

In General Settings, there is a setting for the debug console (on/off).

As far as the javascript goes, it depends on the script. Sometimes it goes in the head as well as the body, sometimes just the head. Wherever it goes, be sure to use the literal tags.

Jazzer 03-22-2005 06:45 AM

Thanks Padraic, when debuggin console is turned on does that mean that the pop-ups will occur on everyone's computer?

As far as java goes, if I want to put the script in the head section where should I put it? In the head.tpl file itself or in the home.php page?

Thanks.

balinor 03-22-2005 06:47 AM

Needs to go in the actual <head> tag on home.tpl, not head.tpl.

And yes, if the debug is turned on, everyone gets to see it :)

Jazzer 03-22-2005 06:50 AM

Beautiful, let me work it through and I'll let you know how it goes.

:D

TelaFirma 03-22-2005 06:51 AM

Judging by the name of the function that you are calling you created these rollovers in Dreamweaver. When this was created there is a Preload scrit that was also created. This is to preload the images that are used in the rollover. A call to this script should be included in your <head> section and then the preload function should be called in the <body> tag just as you have it now.

I still maintain that you would be well served to learn some basic HTML if you are going to be modifying the templates.

balinor 03-22-2005 06:51 AM

By the way, be sure to put your X-Cart version number in your signature. It will be much easier for us to help you in future posts.

And as TelaFirma says, learning HTML/CSS will make your life a whole lot easier!


All times are GMT -8. The time now is 03:29 PM.

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