# Extensions and ajax effects, e.g. search

**URL:** <https://www.ruby-forum.com/t/extensions-and-ajax-effects-e-g-search/103925>\
**Category:** Radiant CMS\
**Created:** [May 11, 2007, 6:46pm UTC](https://www.ruby-forum.com/t/extensions-and-ajax-effects-e-g-search/103925 "2007-05-11T18:46:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mark\_ASYoon](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/3d9bf3/32.png) [@Mark\_ASYoon](https://www.ruby-forum.com/u/Mark_ASYoon)\
**Post date:** [May 11, 2007, 6:46pm UTC](https://www.ruby-forum.com/t/extensions-and-ajax-effects-e-g-search/103925/1 "2007-05-11T18:46:53Z")

</div>

Is there any way to render Ajax effects (on the user side) with  
extensions? For example, with the search extension - how would one  
highlight the results, or perhaps re-implement live-preview (or was it  
removed because it’s too hard to do?)

I’m trying to port an existing rails app that uses plenty “render  
:update do |page|” blocks, on the user (not admin) side.

–  
Mark A. Yoon  
Senior Web Applications/Software Engineer, Northwestern Radiology  
removed\_email\_address@domain.invalid

---

<div class="post-metadata">

**Author:** ![Mark\_ASYoon](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/3d9bf3/32.png) [@Mark\_ASYoon](https://www.ruby-forum.com/u/Mark_ASYoon)\
**Post date:** [May 11, 2007, 10:07pm UTC](https://www.ruby-forum.com/t/extensions-and-ajax-effects-e-g-search/103925/2 "2007-05-11T22:07:25Z")

</div>

Here’s a simplified example of updating the page via Ajax:

[http://pastie.caboo.se/60860](http://pastie.caboo.se/60860)

–  
Building an e-commerce site with Rails?  
[http://agilewebdevelopment.com/rails-ecommerce](http://agilewebdevelopment.com/rails-ecommerce)

Meet up at RailsConf:  
[http://railsconf2007.conferencemeetup.com/](http://railsconf2007.conferencemeetup.com/)

---

<div class="post-metadata">

**Author:** ![Mark\_ASYoon](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/3d9bf3/32.png) [@Mark\_ASYoon](https://www.ruby-forum.com/u/Mark_ASYoon)\
**Post date:** [May 11, 2007, 11:23pm UTC](https://www.ruby-forum.com/t/extensions-and-ajax-effects-e-g-search/103925/3 "2007-05-11T23:23:32Z")

</div>

I originally removed the live-preview because we didn’t need it. The  
search behavior was the easiest one to port IIRC, so you could dig up  
the old source for that and copy mostly verbatim if you want that  
feature back in.

Sean
