How to make link using image with ajax


#1

Hi,

  I have an image. I want to make it as a link using ajax.
  Please anybody, tell me the way how to do it?

             with regards,
               saravanan.

#2

On 3/24/07, Saravanankumar S. removed_email_address@domain.invalid wrote:

Hi,

  I have an image. I want to make it as a link using ajax.
  Please anybody, tell me the way how to do it?

First, you want the rails mailing list:
http://lists.rubyonrails.org/mailman/listinfo/rails

Second, try

link_to_remote image_tag(‘some_image’), :url=>{some_url_parameters}

–max


#3

Hi Muermann,
Thanks for you hint. Its working.

Max M. wrote:

On 3/24/07, Saravanankumar S. removed_email_address@domain.invalid wrote:

Hi,

  I have an image. I want to make it as a link using ajax.
  Please anybody, tell me the way how to do it?

First, you want the rails mailing list:
http://lists.rubyonrails.org/mailman/listinfo/rails

Second, try

link_to_remote image_tag(‘some_image’), :url=>{some_url_parameters}

–max