Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Internet Explorer Error Message

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 03-21-2005, 07:33 PM
 
Jazzer Jazzer is offline
 

Advanced Member
  
Join Date: Mar 2005
Posts: 48
 

Default 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
Reply With Quote
  #2  
Old 03-21-2005, 09:12 PM
 
hooter hooter is offline
 

X-Adept
  
Join Date: Dec 2004
Posts: 519
 

Default

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.
__________________
Blog for X-Cart | Ebay Auction Manager
Reply With Quote
  #3  
Old 03-22-2005, 04:27 AM
  TelaFirma's Avatar 
TelaFirma TelaFirma is offline
 

X-Adept
  
Join Date: Nov 2002
Location: North Carolina USA
Posts: 930
 

Default

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.
Reply With Quote
  #4  
Old 03-22-2005, 06:35 AM
 
Jazzer Jazzer is offline
 

Advanced Member
  
Join Date: Mar 2005
Posts: 48
 

Default

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
Reply With Quote
  #5  
Old 03-22-2005, 06:38 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

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
Reply With Quote
  #6  
Old 03-22-2005, 06:45 AM
 
Jazzer Jazzer is offline
 

Advanced Member
  
Join Date: Mar 2005
Posts: 48
 

Default

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
Reply With Quote
  #7  
Old 03-22-2005, 06:47 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

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
Reply With Quote
  #8  
Old 03-22-2005, 06:50 AM
 
Jazzer Jazzer is offline
 

Advanced Member
  
Join Date: Mar 2005
Posts: 48
 

Default

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

__________________
Jazzer
CloserToTheDream.com

X-Cart 4.0.12
Reply With Quote
  #9  
Old 03-22-2005, 06:51 AM
  TelaFirma's Avatar 
TelaFirma TelaFirma is offline
 

X-Adept
  
Join Date: Nov 2002
Location: North Carolina USA
Posts: 930
 

Default

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.
Reply With Quote
  #10  
Old 03-22-2005, 06:51 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

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
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 02:52 PM.

   

 
X-Cart forums © 2001-2020