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 

Auto refresh a textArea control after a specified interval of time

Hello all....

 

I am trying to create a web messenger  using Visualforce page and apex controller class...

 

I am using ajax to refresh my textArea control...how can i achieve that thing..

 

As to refresh basically I'll use

 

<apex:inputTextArea  id="msg" value="{!getMessage}" >

<apex:actionSupport onevent=""/> 

</apex:inputTextArea> 

 

What should be this onevent attribute value so that my control gets refreshed after 5 seconds. 

 

OR

 

if you have some other idea please help me out!!!

Thanks!!! 

Best Answer chosen by Admin (Salesforce Developers) 
bob_buzzardbob_buzzard

ActionSupport allows you to add support for JavaScript events associated with the control, rather than timed processing.

 

You probably want to use actionPoller, which executes an AJAX update according to an interval that you set.

 

The VF developer's guide has an example on page 168 (winter 10 version).

All Answers

bob_buzzardbob_buzzard

ActionSupport allows you to add support for JavaScript events associated with the control, rather than timed processing.

 

You probably want to use actionPoller, which executes an AJAX update according to an interval that you set.

 

The VF developer's guide has an example on page 168 (winter 10 version).

This was selected as the best answer
rahul2526rahul2526

Thank you Bob!!!!

 

:smileyhappy: