Forum: Ruby on Rails submit_to_remote with an image-tag?

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.
5ab0bc0a7cc635319cdc3bd79a2f2a5e?d=identicon&s=25 Nancy Carroll (Guest)
on 2006-06-01 11:14
(Received via mailing list)
Hi All,

I am searching for a way to use an image as a submit button.  I'm not
having much luck using submit_to_remote with a image-tag, and I can't
use link_to_remote because I need to submit some form fields.

I know this must be possible but I am missing something... Ideas anyone?

Thanks in advance,
Jens
9dbe5b9021bf8477a3b7e747b44bde48?d=identicon&s=25 Sean O'Hara (Guest)
on 2006-06-01 15:35
(Received via mailing list)
Hi Nancy,

You could just use a form_remote_tag with an image_submit_tag.

Take care,
Sean
5ab0bc0a7cc635319cdc3bd79a2f2a5e?d=identicon&s=25 Nancy Carroll (Guest)
on 2006-06-01 19:01
Sean O'Hara wrote:
> Hi Nancy,
>
> You could just use a form_remote_tag with an image_submit_tag.
>
> Take care,
> Sean

Thanks Sean, I'll give it a try.
This topic is locked and can not be replied to.