# Page update

**URL:** <https://www.ruby-forum.com/t/page-update/110668>\
**Category:** Rails\
**Created:** [July 29, 2007, 7:51am UTC](https://www.ruby-forum.com/t/page-update/110668 "2007-07-29T07:51:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![prashanth](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/439d5e/32.png) [@prashanth](https://www.ruby-forum.com/u/prashanth)\
**Post date:** [July 29, 2007, 7:51am UTC](https://www.ruby-forum.com/t/page-update/110668/1 "2007-07-29T07:51:44Z")

</div>

hi,

```
I am try a ajax helper and the code is

```

\<%= link\_to\_remote “Check Time”,  
:update =\> ‘current\_time’,  
:url =\> { :action =\> ‘ncreate’ } %\>

and in the action of ncreate i have written a textbox, i can get the  
text box but all that i need is when ever i click i need a new text  
box in the page. After first click text box1, after second click text  
box 2 something like this.

–  
regards,

|Prashanth|

---

<div class="post-metadata">

**Author:** ![prashanth](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/439d5e/32.png) [@prashanth](https://www.ruby-forum.com/u/prashanth)\
**Post date:** [July 29, 2007, 12:26pm UTC](https://www.ruby-forum.com/t/page-update/110668/2 "2007-07-29T12:26:03Z")

</div>

If you user :update with a remote action then the contents of  
current\_time  
will be updated each time you call this action.  
If you want a new text box to appear , then remove the :update option  
and  
create a ncreate.rjs file like this.

page.insert\_html :bottom, “current\_time”, “\<input type=‘text’ … /\>”

---

<div class="post-metadata">

**Author:** ![prashanth](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/439d5e/32.png) [@prashanth](https://www.ruby-forum.com/u/prashanth)\
**Post date:** [July 29, 2007, 2:22pm UTC](https://www.ruby-forum.com/t/page-update/110668/3 "2007-07-29T14:22:26Z")

</div>

On 7/29/07, bandito [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> If you user :update with a remote action then the contents of current\_time  
> will be updated each time you call this action.  
> If you want a new text box to appear , then remove the :update option and  
> create a ncreate.rjs file like this.
> 
> page.insert\_html :bottom, “current\_time”, “\<input type=‘text’ … /\>”

thanks i made it

–  
regards,

|Prashanth|
