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
rahul2526rahul2526 

Ajax not working inside html tags like <table>

Hello to all.....

 

well I am trying to use Ajax to refresh a control which is inside a table(HTML tags)...

like:

 

<table>

  <tr>

        <td><apex:inputTextArea id="TextArea" value="{!someText}"/></td>

        <apex:actionPoller action="{!refresh}" reRender="TextArea" interval="5"/>

  </tr>

</table>

 

 

 

 

when I use above code..my TextArea control doesnot refresh after 5 sec...

but if I remove the html tags only...then the code executes fine....

 

can someone clear me wether Ajax is supported within html tags or not...

 

and if not so what can I do to format(in tabular format) my visualforce page.

 

Thanks!!!

 

bob_buzzardbob_buzzard

You can display your data in a tabular form using a panelgrid component.  I've successfully used this with AJAX rerendering.  Same for pageblocktable and datatable.

 

I've also used rerendering with regular HTML tags (though not in exactly the way that you are doing) without problem.

 

I'm surprised that it doesn't work though - I'm wondering if its a component id issue or similar.  Have you tried including the actionpoller inside the <td> tag?

rahul2526rahul2526

Problem is sorted out....

 

when I am taking the html tags like table,td so on... within the Body tag...Ajax is working fine...

 

I dont know why....

 

If you have a reson please tell me...

 

but in the end my code is working fine...:smileyhappy:

 

Thanks alot