AJAX effect when inserting new div


#1

Can some one point me in the right direction?

I’ve got several pages that will respond to user input by creating a new
div in the content area. I want that new div to visually expand into
view or flash with a background color rather than just appear.

Thanks.


#2

Arch S. wrote:

Can some one point me in the right direction?

I’ve got several pages that will respond to user input by creating a new
div in the content area. I want that new div to visually expand into
view or flash with a background color rather than just appear.

Thanks.

I entered “RJS tutorial” into Google and got a few hits:

http://blog.fearoffish.com/articles/2006/03/04/tutorial-rails-rjs-templates

Among others.

Jeff


#3

Jeff C.man wrote:

Arch S. wrote:

Can some one point me in the right direction?

I’ve got several pages that will respond to user input by creating a new
div in the content area. I want that new div to visually expand into
view or flash with a background color rather than just appear.

Thanks.

I entered “RJS tutorial” into Google and got a few hits:

http://blog.fearoffish.com/articles/2006/03/04/tutorial-rails-rjs-templates

Among others.

Jeff

Thanks. I also discovered that the method ‘visual_effect(name,
element_id = false, js_options = {})’ in the scriptaculous library among
others.

Took me 1 line of code to implement after that. Sweet.