Change the local JavaScript function:
function CallbackFunc(res)
{
alert(AjaxPro.toJSON(res));
}
What do you get?
On 7/12/06, bubberz <[EMAIL PROTECTED]> wrote:
>
> Oh..no worries...thanks again Michael!
>
> <HEAD>
> <title>WebForm1</title>
> <meta content="Microsoft Visual Studio .NET 7.1"
> name="GENERATOR">
> <meta content="Visual Basic .NET 7.1" name="CODE_LANGUAGE">
> <meta content="JavaScript" name="vs_defaultClientScript">
> <meta content="http://schemas.microsoft.com/intellisense/ie5"
> name="vs_targetSchema">
> <script language="javascript">
> function getStateName(obj)
> {
> CSS.WebForm1.GetStateName(obj.value,CallbackFunc);
> }
> function CallbackFunc(res)
> {
> if (res.error)
> {
> alert(res.error);
> }
> //else
> //{
> // alert(res.value);
> //}
> document.getElementById('txtStateName').innerHTML = res.value;
> }
>
> </script>
> </HEAD>
> <body MS_POSITIONING="GridLayout">
> <form id="Form1" method="post" runat="server">
> <div>State Initial:</div>
> <asp:textbox id="txtStateInitial"
> onblur="getStateName(this);"
> runat="server"></asp:textbox>
> <div id="txtStateName"></div>
> </form>
> </body>
> </HTML>
>
>
> >
>
--
Best regards | Schöne Grüße
Michael
Microsoft MVP - Most Valuable Professional
Microsoft MCAD - Certified Application Developer
http://weblogs.asp.net/mschwarz/
http://www.schwarz-interactive.de/
mailto:[EMAIL PROTECTED]
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---