function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
JTecJTec 

Actiosupport don't run ajax in IE

Hi, I have a vf page with a code like this

<apex:actionRegion > <apex:outputPanel id="oP" ondblclick="cambioDetalle(this.id, 'input')" > <apex:inputText value="{!sub.detalle}" style="display:none" id="iDetalle" /> <apex:actionSupport event="onchange" rerender="oP" /> <apex:outputText value="{!sub.detalle}" style="display:block" id="tDetalle" /> <script> eval("tDetallesT['{!$Component.oP}'] = document.getElementById('{!$Component.tDetalle}')"); eval("tDetallesI['{!$Component.oP}'] = document.getElementById('{!$Component.iDetalle}')"); </script> </apex:outputPanel> </apex:actionRegion>

 

The actionsupport is runing ok in firefox and opera but don't run in IE. It is like IE don't fire the event, why? Some Idea?

 

Thanks for all

Best Answer chosen by Admin (Salesforce Developers) 
jwetzlerjwetzler
Please read the documentation for actionSupport.  It needs to be a child component of component you wish to bind your event to.  As your code is now, actionSupport is a child of outputPanel, which doesn't have a concept of "onchange".  Firefox happens to figure out what you mean, IE is a littlemore picky.

All Answers

jwetzlerjwetzler
Please read the documentation for actionSupport.  It needs to be a child component of component you wish to bind your event to.  As your code is now, actionSupport is a child of outputPanel, which doesn't have a concept of "onchange".  Firefox happens to figure out what you mean, IE is a littlemore picky.
This was selected as the best answer
AvromAvrom

Is there a typo in the code above? The way you have it, it *looks* like the actionSupport is a direct child of the outputPanel. That outputPanel is going to render as a <span>, and there's no official onchange handler for <span>:

 

http://www.java2s.com/Code/HTMLCSSReference/HTML-Tag-Reference/spanEventHandlers.htm

 

It looks like this is intended to be a child of the input text? But right now, the inputText self-closes.

 

JTecJTec

OK, I understood it.

 

Thanks for all.