Thanks Bob. 

I am not clear where it is happening - my content (that was being rendered
as an ajax call) was not showing up in firefox and I used firebug to see
what's going on and I got this error in firebug.. So I tried the same thing
in IE and it works (my content shows up)..  BTW, I don't have Textfield
input type on my content -- I have other controls like checklist etc.

I'll continue to investigate but will try your suggestion of adding this
attribute when adding a control to the form.

Dipita



Bob Schellink-2 wrote:
> 
> Hi Dipita,
> 
> I've not seen this issue before. Does it occur when you return a textfield
> from the server or does 
> it occur when manipulating a textfield value?
> 
> 
> If you want to set this attribute you can set it on the field:
> 
>    TextField tf = new TextField("firstname");
>    tf.setAttribute("autocomplete", "off");
> 
> If you want to do this across the application you can create something
> like a "control factory" that 
> creates the controls for you:
> 
> public class ControlFactory {
> 
>    public static TextField createTextField(String name) {
>      TextField tf = new TextField(name);
>      tf.setAttribute("autocomplete", "off");
>      return tf;
>    }
> }
> 
> Lastly you can create a custom container (eg Form) and override the insert
> method to set this 
> attribute when adding the child.
> 
> kind regards
> 
> bob
> 
> dshah wrote:
>> Hi,
>> I am using basic ajax calls to render a sub part of my form..  I am
>> running
>> into this issue with firefox (which doesn't happen in IE) - Permission
>> denied to get property XULElement.accessibleType.  
>> 
>> It seems that firefox has a bug where the autocomplete in firefox is
>> having
>> a problem - someone suggested a solution -
>> http://www.seopher.com/articles/fixing_the_permission_denied_to_get_property_xulelement_selectedindex_error
>> whereby you have to set all input fields to have "autocomplete=off".
>> 
>> My question is if I am using Click Controls to render and create the
>> html,
>> then is there another easy way to fix this issue?
>> 
>> Regards,
>> Dipita
> 
> 
> 

-- 
View this message in context: 
http://n2.nabble.com/Permission-denied-to-get-property-XULElement-accessibleType-when-making-an-ajax-call-tp4167478p4167539.html
Sent from the click-user mailing list archive at Nabble.com.

Reply via email to