The problem is that you are using an Alert box.

when you click in the second text box or tab down to it, it well pop
the message box  up from the first return when the message pops up the
text field loses focus. now the focus is on the second text box, when
you click ok to the first pop up message, the second text box loses
focus thereby calling the second funciton and send the next alert,
every time an alert is issued it loses focus and hence starts an
infinite loop.

turn your alert messages into a DIV on the page and set its inner text
like so

<script type=text/javascript >
                        function getString(ele)
                        {
                                AJAXApps.AjaxMethods.getString(ele.id, 
getString_callback);

                        }
                        function getString_callback(res)
                        {
                        document.getElementById("div1").innerHTML = res.value;
                        }

                        function getString2(ele)
                        {
                                AJAXApps.AjaxMethods.getString2(ele.id, 
getString2_callback);
                        }
                        function getString2_callback(res)
                        {
                        document.getElementById("div1").innerHTML = res.value;
                        }
                </script>


--~--~---------~--~----~------------~-------~--~----~
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/
-~----------~----~----~----~------~----~------~--~---

Reply via email to