Forum: Ruby How to make link using image with ajax

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Eb6aa3fbe7b161e17b42d415deea3e1a?d=identicon&s=25 Saravanankumar Saravanakumar (saravanan)
on 2007-03-24 10:22
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.
E6a1fe85299e663566dd1ea7d4f74e76?d=identicon&s=25 Max Muermann (Guest)
on 2007-09-25 23:05
(Received via mailing list)
On 3/24/07, Saravanankumar Saravanan <gohannimbus@yahoo.co.in> 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
Eb6aa3fbe7b161e17b42d415deea3e1a?d=identicon&s=25 Saravanankumar Saravanakumar (saravanan)
on 2007-09-27 14:48
Hi Muermann,
   Thanks for you hint. Its working.

Max Muermann wrote:
> On 3/24/07, Saravanankumar Saravanan <gohannimbus@yahoo.co.in> 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 topic is locked and can not be replied to.