How to make link using image with ajax

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.

On 3/24/07, Saravanankumar S. [email protected] 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

Hi Muermann,
Thanks for you hint. Its working.

Max M. wrote:

On 3/24/07, Saravanankumar S. [email protected] 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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs