badjuju Posted June 18, 2003 Posted June 18, 2003 Hi, Some people are getting javascript errors when they visit my site. Can someone please help. http://207.44.237.249/ Thanks.
Guest Posted June 18, 2003 Posted June 18, 2003 I see Areospeed.com! on your default page, thats all I noticed
Guest Posted June 19, 2003 Posted June 19, 2003 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
Guest Posted June 19, 2003 Posted June 19, 2003 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
badjuju Posted June 27, 2003 Author Posted June 27, 2003 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
badjuju Posted June 27, 2003 Author Posted June 27, 2003 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 ."'"> ";
Wizzud Posted June 27, 2003 Posted June 27, 2003 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."
alverman Posted June 27, 2003 Posted June 27, 2003 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.
badjuju Posted June 27, 2003 Author Posted June 27, 2003 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
TheFinnisher Posted July 30, 2003 Posted July 30, 2003 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: 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) Any ideas? Thanks in advance!
TheFinnisher Posted July 31, 2003 Posted July 31, 2003 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!
Recommended Posts
Archived
This topic is now archived and is closed to further replies.