Hi, I'm trying out the futures build 2008.2.708.20 and converting some existing pages.
When I input something the first time (into either text box), everything works fine. tab to other field, and the second input to the other textbox the $find call always returns null.
Code wrapped in a <radcodeblock>
This is within a user control loaded onto a page. (using a standard bit of code to load the user control which hasn't changed for 100+ pages)
I noticed this code was producng some errors in the FF console (abuot srcElement), so I created a simpler version
any ideas?
When I input something the first time (into either text box), everything works fine. tab to other field, and the second input to the other textbox the $find call always returns null.
Code wrapped in a <radcodeblock>
This is within a user control loaded onto a page. (using a standard bit of code to load the user control which hasn't changed for 100+ pages)
// Point to text box |
var textBox1Element = document.getElementById("ControlsRegistration_rmtEMail"); |
var textBox2Element = document.getElementById("ControlsRegistration_rmtUsername"); |
// When the textbox looses focus, call AJAX function |
textBox1Element.onblur = sendData; |
textBox2Element.onblur = sendData; |
function sendData() |
{ |
var srcElement = window.event.srcElement; // Point to control |
var ajaxManagerObject = $find("<%= myajax.ClientID %>"); // Locate AJAX Object |
ajaxManagerObject.ajaxRequest(srcElement.id + ":" + srcElement.value); // Process AJAX Request passing control name, value and UTC offset |
} |
I noticed this code was producng some errors in the FF console (abuot srcElement), so I created a simpler version
where I have onblur="func();" assigned in the <asp:textbox>.. still no joy with ajax though:
function bEmail() |
{ |
var ajaxManagerObject = $find("<%= myajax.ClientID %>");// Locate AJAX Object |
var textBox1Element = document.getElementById("ControlsRegistration_rmtEMail"); |
ajaxManagerObject.ajaxRequest(textBox1Element.id + ":" + textBox1Element.value); // Process AJAX Request passing control name, value and UTC offset |
} |
function bUser() |
{ |
var ajaxManagerObject = $find("<%= myajax.ClientID %>");// Locate AJAX Object |
var textBox2Element = document.getElementById("ControlsRegistration_rmtUsername"); |
ajaxManagerObject.ajaxRequest(textBox2Element.id + ":" + textBox2Element.value); // Process AJAX Request passing control name, value and UTC offset |
} |
any ideas?