Skip to main content
Inspiring
August 6, 2008
Answered

AJAX binding and IE radio buttons

  • August 6, 2008
  • 1 reply
  • 450 views
Hi,

I have a very simple form with a single radio button control (ten buttons). Clicking on any of them is supposed to pass a URL variable to a cfdiv at the bottom of the page (outside the form), which is simply this:

<cfdiv bind="url:#application.codebase#experts/edit-question.cfm?questionVal={questionVal}">

Questionval is simply a number: 1-10.

This works in Firefox, but in IE, there's a 'click lag' - the form value is always one click behind you, and it ignores the first click.

In other words, if the form starts with nothing checked, nothing happens when you click on any of the numbers. When you click on a different number, it refreshes the cfdiv with the value of the previous number - so if the page loads and I click 10, nothing happens; if I then click 1, it loads the cfdiv with a value of 10.

If I use @mousedown I can double-click a button and it will load properly, but obviously that's not an ideal solution. Has anyone encountered this? Is there a way to upgrade the AJAX library within Coldfusion manually?

Thanks!
    This topic has been closed for replies.
    Correct answer Aquitaine
    Answering my own question: had to use the @click event to make it work properly in IE (questionval={questionVal@click}).

    1 reply

    AquitaineAuthorCorrect answer
    Inspiring
    August 6, 2008
    Answering my own question: had to use the @click event to make it work properly in IE (questionval={questionVal@click}).