Caută ajutor

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Află mai multe

Acest fir de discuție a fost arhivat. Adresează o întrebare nouă dacă ai nevoie de ajutor.

Javascript issue - can't click dates in a calendar

  • 2 răspunsuri
  • 3 au această problemă
  • 1 vizualizare
  • Ultimul răspuns de Soren Pearson

more options

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.

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.

Soluție aleasă

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.

Citește acest răspuns în context 👍 4

Toate răspunsurile (2)

more options

Soluție aleasă

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.

more options

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.