So, I've spent enough time looking into this to have decided it's time
to post...
Here's what I'm trying to do:
1) take the value of a textbox and pass it to the codebehind page
2) take the returned value and display the value in another textbox.
I can take the value of a textbox and pass it to the codebehind no
problem.
I can do what I want with it and return the correct string from the
ajax method.
Here's the problem:
-My callback function doesn't seem to be recieving the object...
res.value is always undefined.
I'm absolutely certain this must be a really simple thing. However,
I've read every single piece of documentation on ajax.net pro i can
find and searched the forum for hours and can't find anything to help.
I think just one line of code with a sentence on how the callback
recieves the object should do it..
I'm using 6.9.15.2 (ajaxPro.2.dll).
__________________________________________________
aspx
__________________________________________________
<script...>
<script...>
<script...>
...
function valid()
{
txtbox = document.getElementById("searchCLMTNumber");
AutoComplete.GetCaseName(txtbox.value, valid_callback())
}
function valid_callback(res)
{
document.getElementById("lblsearchCLMTNumber").innerText =
res.value;
}
</script>
<input type="text" onblur="valid();" id="searchCLMTNumber" />
__________________________________________________
aspx.cs code behind: returns a string
__________________________________________________
I've seen tons of code on the forum which seems to follow the same
approach, but can't figure out why this doesn't work. It's worth
noting that I have other ajax methods on the same page, in the same
class, which work perfectly, so i don't think it's a larger problem.
A quick push in the right direction would be greatly appreciated.
thanks!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ajax.NET Professional" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/ajaxpro
The latest downloads of Ajax.NET Professional can be found at
http://www.ajaxpro.info/
Don't forget to read my blog at http://weblogs.asp.net/mschwarz/
-~----------~----~----~----~------~----~------~--~---