# How to ajax

**URL:** <https://www.ruby-forum.com/t/how-to-ajax/92049>\
**Category:** Rails\
**Created:** [April 15, 2007, 10:49am UTC](https://www.ruby-forum.com/t/how-to-ajax/92049 "2007-04-15T10:49:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![feng](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/82dd89/32.png) [@feng](https://www.ruby-forum.com/u/feng)\
**Post date:** [April 15, 2007, 10:49am UTC](https://www.ruby-forum.com/t/how-to-ajax/92049/1 "2007-04-15T10:49:08Z")

</div>

dear all,

I have a index.rhtml. And the preceding section of this page is a static  
html. Such as

#### “Hello”
.

And the remain section is AJAX function call to a long time work.

I want the page show it’s preceding section (static html) first when  
user surf it. And after AJAX call complete, it return the result and  
display on the remain section.

How can I do it ? Thanks.

any tips is appreciated.

-feng
