X
Tap here to go to the mobile version of the site.
Your Firefox is out of date and may contain a security risk! Upgrade Firefox

Support Forum

Javascript issue - can't click dates in a calendar

Posted

We are trying out an online tennis court booking website. When I click the Calendar icon to select a date from the calendar, I can click the date but it doesn't take me to that specific date.

Other browsers like Chrome and Internet Explorer work fine. It goes straight to the date I click.

<http://demo3.onlinecourtreservations.com/Reservations.asp> Demo version

<http://mum.onlinecourtreservations.com/Reservations.asp> Our trial.

The following is what I sent to the developer and his response is below.

My Question: When using the calendar tool for selecting dates, I noticed that it doesn't go to the calendar date I click on. I can navigate using the day view arrows and week view arrows beside the calendar icon just fine.

DEVELOPER REPLY: The calendar tool is based on javascript so your browser security has to allow scripts. The easiest way to do this is to add your site to the "trusted sites" on your browser.

Steps I've tried: 1. The reset Firefox feature 2. Clear all history 3. Start in Safe Mode 4. Checked to make sure javaScript was enabled and it is.

I'm wondering why it work fine in Chrome and Internet Explorer and not Firefox.

Could someone assist me in solving the issue?

Thanks.

Chosen solution

If you adopt this script, can you edit it?

The pop-up attempts to submit a hidden form in the main window using an old, nonstandard method of referencing it. You could correct the script in the pop-up window, or you could create a reference in the main window.

Method #1:

Change this code in the pop-up

reservation_window.frmCalendar.submit();

to this

reservation_window.document.forms['frmCalendar'].submit();

Method #2:

In the main window, create a global script variable that creates the missing reference:

window.frmCalendar = document.forms['frmCalendar'];

Once you solve that problem, there is a new issue. The page returns blank, and when you view the source, you see there is a problem with one of the hidden form parameters.

Microsoft VBScript runtime error '800a000d'
Type mismatch: 'CInt'
/demo/common/reservationssheet/script.asp, line 25

Since that is on the server, I'm not sure what is going wrong there, but the script apparently does not deal well with a missing start time value. For what it's worth, I get the same error in IE8.

Read this answer in context 4

Additional System Details

Installed Plug-ins

  • Google Update
  • Next Generation Java Plug-in 10.13.2 for Mozilla browsers
  • NPRuntime Script Plug-in Library for Java(TM) Deploy
  • Google Talk Plugin Video Accelerator version:0.1.44.23
  • Version 3.13.2.11592
  • Shockwave Flash 11.5 r502
  • Adobe PDF Plug-In For Firefox and Netscape "9.5.3"
  • VLC media player Web Plugin 2.0.2
  • GEPlugin
  • 5.1.10411.0
  • Coupon Print Activator
  • Windows Presentation Foundation (WPF) plug-in for Mozilla browsers
  • DRM Netscape Network Object
  • Npdsplay dll
  • DRM Store Netscape Plugin

Application

  • User Agent: Mozilla/5.0 (Windows NT 5.1; rv:18.0) Gecko/20100101 Firefox/18.0

More Information

jscher2000
  • Top 10 Contributor
2344 solutions 20790 answers

Chosen Solution

If you adopt this script, can you edit it?

The pop-up attempts to submit a hidden form in the main window using an old, nonstandard method of referencing it. You could correct the script in the pop-up window, or you could create a reference in the main window.

Method #1:

Change this code in the pop-up

reservation_window.frmCalendar.submit();

to this

reservation_window.document.forms['frmCalendar'].submit();

Method #2:

In the main window, create a global script variable that creates the missing reference:

window.frmCalendar = document.forms['frmCalendar'];

Once you solve that problem, there is a new issue. The page returns blank, and when you view the source, you see there is a problem with one of the hidden form parameters.

Microsoft VBScript runtime error '800a000d'
Type mismatch: 'CInt'
/demo/common/reservationssheet/script.asp, line 25

Since that is on the server, I'm not sure what is going wrong there, but the script apparently does not deal well with a missing start time value. For what it's worth, I get the same error in IE8.

Helpful Reply

Hi Jefferson,

I passed your comment on to the developer of the tennis booking website and he was able to use your feedback to fix the code for Firefox.

His reply to my email: "The calendar is now functioning properly in Firefox. Thanks for asking in the forum, the fix he suggested did the trick. Let me know if you have any more questions or problems."

Thanks for your help in solving the issue.