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

Mozilla 도움말 검색

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

자세히 살펴보기

Radio buttons will not function as expected in Firefox, but will do so in Chrome and IE

  • 4 답장
  • 1 이 문제를 만남
  • 8 보기
  • 최종 답변자: John Rostron

more options

I have written a web page to display aerial photographs and have a form which allows the user to click on a Google map. There are two sets of radio buttons, one to select how many to look for, and the other to select a search radius. These radio buttons work properly in Chrome and IE, but not in Firefox. In Firefox, clicking on a radio button is either ignored, or it is reset to the first option (which is not even the default). I am currently using FF version 30.0, but this has not worked on previous versions.

The web page is at: http://www.actinia.me.uk/Clack/ClackPictures.htm

I have written a web page to display aerial photographs and have a form which allows the user to click on a Google map. There are two sets of radio buttons, one to select how many to look for, and the other to select a search radius. These radio buttons work properly in Chrome and IE, but not in Firefox. In Firefox, clicking on a radio button is either ignored, or it is reset to the first option (which is not even the default). I am currently using FF version 30.0, but this has not worked on previous versions. The web page is at: http://www.actinia.me.uk/Clack/ClackPictures.htm

모든 댓글 (4)

more options

Using the built in Web Developer feature, in Firefox 33.1 I get this message.

"Control is no longer supported in the Google Maps Javascript API v2. Please visit https://developers.google.com/maps/documentation/javascript/v2/v2tov3 to migrate your application to v3." %7Bmain,adsense,geometry,zombie%7D.js:72 

Sounds like you need to update that feature on your website. See the appropriate Google Group for help with that.

more options

I did not think that it was Google, so I created a stripped-down version of the page, removing all scripts, Google and mine. The Google interface just selects a spot on the map. My script converts this to a UK Grid reference which is then fed to the form. In the stripped down version, the form is given a typical value.

The form will still will not perform as per spec, neither on my PC nor on my server.

Here is the form:

<form id="form1" name="form1" method="get" action="../cgi-bin/findPix.py">
<p><label>Grid reference <input name="gridref" id="gridref" type="text" value="TQ776887" /></label>
</p>
<p> <label>Enter maximum number of images to find:<br />
<input name="maxcount" id="maxcount1" value="1" type="radio" /> One
<input name="maxcount" id="maxcount5" value="5" checked="checked" type="radio" /> Five
<input name="maxcount" id="maxcount10" value="10" type="radio" /> Ten
<input name="maxcount" id="maxcount20" value="20" type="radio" /> Twenty
</label></p>
<p> <label>Enter the maximum distance to look from your
chosen point:<br />
<input name="maxdist" id="maxdist1" value="1" type="radio" /> One Km
<input name="maxdist" id="maxdist2" value="2" checked="checked" type="radio" /> Two Km
<input name="maxdist" id="maxdist5" value="5" type="radio" /> Five Km
<input name="maxdist" id="maxdist50" value="50" type="radio" /> Unlimited
</label></p>
<input name="button" id="button" value="Submit" type="submit" />
</form>

글쓴이 cor-el 수정일시

more options

Sorry, this forum isn't for developer support.

I was able to troubleshoot your issue with tools built into Firefox, which showed the message that I provided.

Apparently you are using an old v2 script from

script src="http://maps.google.com/maps?file=api&v=2&key=ABQIAAAAoo2KR2rwS9elA7JdViHA_hTMmbWCihAIxuSb1AoUK0CoLlOoDBTD73Qq57UFsjylZws2nNCG9N4D_Q - which is no longer available.

Did you read this? https://developers.google.com/maps/documentation/javascript/v2/v2tov3 It says to migrate to v3.

Beyond that, you could try posting at the Web Development / Standards Evangelism forum at MozillaZine. The contributors over there are more knowledgeable about web page development issues with Firefox. http://forums.mozillazine.org/viewforum.php?f=25 You'll need to register and login to be able to post in that forum.

more options

As I have said above, this is not a Google Maps error. The form on a stripped-down page without any reference to Google maps or any other script still will not work as it should. It is Firefox not behaving as it should in following standard HTML. The error occurs whether the page is on my PC or on the server. It works fine in Chrome and IE.