Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Javascript error - Please help


badjuju

Recommended Posts

Posted

I see Areospeed.com! on your default page, thats all I noticed

Posted

Hi,

 

Looks like the problem is related to the DHTML menu. Could be some users are not using the right version of Javascript Runtime or there browser is just crap.

 

I got your site working in IE 5.5, IE 6, IE 6.01 & 6.02, Opera 7 Beta.

 

Netscape 7 & Mozilla threw up Javascript errors and IE 5 did the same.

 

Hope this helps and I like you site, really cool 'total-mod' to OSCommerce; was it hard to mod the site this much and if I was to do mod my site in this way what would you recommend as good starting point?

 

 

Thanks,

 

Taz

Posted

most properly the script in the status bar won't work with the menu together. Take it out and your problem is solved.

 

Have a nice day

 

Ren

  • 2 weeks later...
Posted

Thanks a lot for testing the site. Regarding the modifications, the site is till in development and I would like to modify it even more. To me, it still has the Oscommerce look, but I just played around with the code and thanks to some contributions, it made a difference.

 

Just to give an example, the first site I created using OSC was http://www.modaafrik.com - just gotta practice.

 

If you need help with anything, let me know. Maybe I can help out a bit.

 

Hi,

 

Looks like the problem is related to the DHTML menu.  Could be some users are not using the right version of Javascript Runtime or there browser is just crap.

 

I got your site working in IE 5.5, IE 6, IE 6.01 & 6.02, Opera 7 Beta.

 

Netscape 7 & Mozilla threw up Javascript errors and IE 5 did the same.

 

Hope this helps and I like you site, really cool 'total-mod' to OSCommerce; was it hard to mod the site this much and if I was to do mod my site in this way what would you recommend as good starting point?

 

 

Thanks,

 

Taz

Posted
most properly the script in the status bar won't work with the menu together. Take it out and your problem is solved.

 

Have a nice day

 

Ren

I tried removing the script in the status bar, but still no luck. I disabled the event calendar and have been able to slightly identify the source of the problem. It's in calendar.php and has something to do with this line of code:

 

echo '<tr><td align="center"><input type="button" value="'. BOX_TODAY_BUTTON ." onclick="window.location='events_calendar.php?_month=". $this_month .'&_year='. $this_year ."'"> ";

Posted

Try this

echo '<tr><td align="center"><input type="button" value="'. BOX_TODAY_BUTTON ."" onclick="window.location='events_calendar.php?_month=". $this_month . '&_year=' . $this_year . "'"> ";

Regards, Wizzud

"It is better to remain silent and be thought a fool, than to open your mouth and remove all doubt."

Posted
I disabled the event calendar and have been able to slightly identify the source of the problem. It's in calendar.php and has something to do with this line of code:  

echo '<tr><td align="center"><input type="button" value="'. BOX_TODAY_BUTTON ." onclick="window.location='events_calendar.php?_month=". $this_month .'&_year='. $this_year ."'"> ";

The original uploaded version on that line reads:

echo '<tr><td align="center"><input type="button" value="'. BOX_TODAY_BUTTON .'" onclick=window.location="events_calendar.php?_month='. $this_month .'&_year='. $this_year .'"> ';

The code you posted might be formally more correct but there're several quote characters not matching.

Posted
Try this

echo '<tr><td align="center"><input type="button" value="'. BOX_TODAY_BUTTON ."" onclick="window.location='events_calendar.php?_month=". $this_month . '&_year=' . $this_year . "'"> ";

 

Thank you!

Time for testing

  • 1 month later...
Posted

badjuju,

Did that do the trick for you? I am having troubles implementing this as well. I have the admin panel working properly but can't get it to work in my catalog files...

I am using the coolmenu script as well. I thought I'd try to dissable the coolmenu but I still can't get it to work.

I got it working on a MS2 new testsite however. Here's two screenshots of my problem:

 

this is what happens in the calendar left column:

 

screenshot2.gif

 

 

and I get the entire classes/calendar.php script included in my page before the header...(not all script shown in this screenshot but you get the picture)

 

screenshot1.gif

 

Any ideas? Thanks in advance!

Posted

I figured it out. My server was upgraded at my hosting company and the new setting in the php.ini files for short_open_tag was set to off. In the Events calender there are a few places were the author uses a short tag i.e <? instead of the long tag <?php

 

That's it!

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...