We're calling on all EU-based Mozillians with iOS or iPadOS devices to help us monitor Apple’s new browser choice screens. Join the effort to hold Big Tech to account!

본 사이트는 여러분의 사용자 경험을 개선하기 위해 유지 보수를 진행하는 동안 기능이 제한됩니다. 도움말로 문제가 해결되지 않고 질문을 하고 싶다면 Twitter의 @FirefoxSupport 및 Reddit의 /r/firefox 채널을 활용하세요.

Mozilla 도움말 검색

고객 지원 사기를 피하세요. 저희는 여러분께 절대로 전화를 걸거나 문자를 보내거나 개인 정보를 공유하도록 요청하지 않습니다. "악용 사례 신고"옵션을 사용하여 의심스러운 활동을 신고해 주세요.

자세히 살펴보기

Javascript issue - can't click dates in a calendar

  • 2 답장
  • 3 이 문제를 만남
  • 41 보기
  • 최종 답변자: 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.

선택된 해결법

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.

문맥에 따라 이 답변을 읽어주세요 👍 4

모든 댓글 (2)

more options

선택된 해결법

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.