heres the getElementByName function
getelementById is not supported by pocket Ie javascript, so u have to
loop through the form elements to get it.



function GetElementByName(elementName)
        {
                var element = null;
                // caveat: this is specifically for handling ASP.NET pages that
contain everything within a form
                // although it is not usually needed (because ASP.NET pages 
only have
1), let's support multiple forms.
                for(formIndex=0; formIndex < document.forms.length; formIndex++)
                {
                        for(elementIndex=0; elementIndex <
document.forms[formIndex].elements.length; elementIndex++)
                        {
                                
if(document.forms[formIndex].elements[elementIndex].name ==
elementName)
                                {
                                        element = 
document.forms[formIndex].elements[elementIndex];
                                        break;
                                }
                        }
                }
                return element;
        }


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

Reply via email to