| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Internet Explorer Error Message | ||||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
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
__________________
Jazzer CloserToTheDream.com X-Cart 4.0.12 |
|||||||
#2
|
|||||||
|
|||||||
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. |
|||||||
#3
|
|||||||||
|
|||||||||
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. |
|||||||||
#4
|
|||||||
|
|||||||
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.
__________________
Jazzer CloserToTheDream.com X-Cart 4.0.12 |
|||||||
#5
|
|||||||
|
|||||||
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.
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#6
|
|||||||
|
|||||||
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.
__________________
Jazzer CloserToTheDream.com X-Cart 4.0.12 |
|||||||
#7
|
|||||||
|
|||||||
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
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#8
|
|||||||
|
|||||||
Beautiful, let me work it through and I'll let you know how it goes.
__________________
Jazzer CloserToTheDream.com X-Cart 4.0.12 |
|||||||
#9
|
|||||||||
|
|||||||||
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. |
|||||||||
#10
|
|||||||
|
|||||||
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!
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
|
|||
X-Cart forums © 2001-2020
|