Re: How to set autocomplete attribute in html:form
Hi! There's a lot of information available on the Internet. A good place to start is http://java.sun.com/developer/technicalArticles/J2EE/AJAX/ and there's a lot of links other people have found at the social bookmarking website del.icio.us, http://del.icio.us/tag/ajax and http://del.icio.us/tag/xmlhttprequest Frank Zammetti's article on XmlHttpRequest is at http://www.omnytex.com/articles/xhrstruts/ and sourceforge project at http://struts.sourceforge.net/ajaxtags/index.html There has been some discussion of this lately on the mailing list, you can view/search the archives at http://www.mail-archive.com/user%40struts.apache.org/ or http://marc.theaimsgroup.com/?l=struts-userr=1w=2 Thanks for the tip on ajaxian.com, I hadn't heard of it before. It looks like some good information there. Good luck, -ed On 6/21/05, Néstor Boscán [EMAIL PROTECTED] wrote: Hi Thanks for the quick reply. If the client has the autocomplete turned on you can control with Internet Explorer which forms or input fields can apply the autocomplete feature with the autocomplete attribute (Check http://msdn.microsoft.com/library/default.asp?url=/workshop/author/forms/aut ocomplete_ovr.asp). My question is how can I set this attribute in a html:form or html:text tag if it doesn't have this attribute. Regards, Néstor Boscán -Mensaje original- De: Ed Griebel [mailto:[EMAIL PROTECTED] Enviado el: Tuesday, June 21, 2005 3:48 PM Para: Struts Users Mailing List Asunto: Re: How to set autocomplete attribute in html:form Hello! This question was asked about a month or two ago on this list. To summarize, it's dependant on a setting in the client browser and depends on a user's entries into a field with the same name on prior form submissions. It is not controllable on a HTML form nor field tag. Google does something like autocomplete by using XmlHttpRequest, a.k.a. AJAX, and Frank Zametti has written a library which integrates AJAX and Struts. -ed On 6/21/05, Néstor Boscán [EMAIL PROTECTED] wrote: Hi How do I set the autocomplete attribute in the html:form tag. Regards, Néstor Boscán - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to set autocomplete attribute in html:form
Néstor, Wow, I didn't know that existed, thanks for the link. Since it's not a standard Struts attribute, here's a couple of ideas: - creating a custom tag library that extends the standard HTML tag lib and tld, but this seems like overkill. - If you want to turn autocomplete on for every text field, you could create a filter that added the attribute for every page that's sent too, but it sounds like a lot of work and there could be performance problems. - You could create a javascript function that would go through a page's DOM, getting all elements of type text and loop through them, enabling this attribute for each one. You could then call this function in the body onload= attribute. These are just off the top of my head, there's probably better and/or more efficient ways of doing this. -ed On 6/21/05, Néstor Boscán [EMAIL PROTECTED] wrote: Hi Thanks for the quick reply. If the client has the autocomplete turned on you can control with Internet Explorer which forms or input fields can apply the autocomplete feature with the autocomplete attribute (Check http://msdn.microsoft.com/library/default.asp?url=/workshop/author/forms/aut ocomplete_ovr.asp). My question is how can I set this attribute in a html:form or html:text tag if it doesn't have this attribute. Regards, Néstor Boscán -Mensaje original- De: Ed Griebel [mailto:[EMAIL PROTECTED] Enviado el: Tuesday, June 21, 2005 3:48 PM Para: Struts Users Mailing List Asunto: Re: How to set autocomplete attribute in html:form Hello! This question was asked about a month or two ago on this list. To summarize, it's dependant on a setting in the client browser and depends on a user's entries into a field with the same name on prior form submissions. It is not controllable on a HTML form nor field tag. Google does something like autocomplete by using XmlHttpRequest, a.k.a. AJAX, and Frank Zametti has written a library which integrates AJAX and Struts. -ed On 6/21/05, Néstor Boscán [EMAIL PROTECTED] wrote: Hi How do I set the autocomplete attribute in the html:form tag. Regards, Néstor Boscán - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to set autocomplete attribute in html:form
Hello! This question was asked about a month or two ago on this list. To summarize, it's dependant on a setting in the client browser and depends on a user's entries into a field with the same name on prior form submissions. It is not controllable on a HTML form nor field tag. Google does something like autocomplete by using XmlHttpRequest, a.k.a. AJAX, and Frank Zametti has written a library which integrates AJAX and Struts. -ed On 6/21/05, Néstor Boscán [EMAIL PROTECTED] wrote: Hi How do I set the autocomplete attribute in the html:form tag. Regards, Néstor Boscán - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to set autocomplete attribute in html:form
Hi Thanks for the quick reply. If the client has the autocomplete turned on you can control with Internet Explorer which forms or input fields can apply the autocomplete feature with the autocomplete attribute (Check http://msdn.microsoft.com/library/default.asp?url=/workshop/author/forms/aut ocomplete_ovr.asp). My question is how can I set this attribute in a html:form or html:text tag if it doesn't have this attribute. Regards, Néstor Boscán -Mensaje original- De: Ed Griebel [mailto:[EMAIL PROTECTED] Enviado el: Tuesday, June 21, 2005 3:48 PM Para: Struts Users Mailing List Asunto: Re: How to set autocomplete attribute in html:form Hello! This question was asked about a month or two ago on this list. To summarize, it's dependant on a setting in the client browser and depends on a user's entries into a field with the same name on prior form submissions. It is not controllable on a HTML form nor field tag. Google does something like autocomplete by using XmlHttpRequest, a.k.a. AJAX, and Frank Zametti has written a library which integrates AJAX and Struts. -ed On 6/21/05, Néstor Boscán [EMAIL PROTECTED] wrote: Hi How do I set the autocomplete attribute in the html:form tag. Regards, Néstor Boscán - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]