Hello,

I have a page where, once the user enters it, I want to disable some
buttons. This because the user must select a row for them to be
accessible. To be more specific, they are edit/delete buttons. So,
basically, I want them disabled if there is no row in selected  in the
table.

My problem is that I don't know the proper component to use. This is the
way I'm trying right now:

<%= link_to image_submit_tag("btn_delete.png", :id => "btn_delete",
:title => "Delete report", :class => "btn_delete", :disabled => true),
:action => "verify_availability" %>

The verify_availability method is in reports controller, and it verifies
if the user is able to delete that report. This will create an HTML
anchor with an input type="image" inside. This creates another problem:
:disabled => true doesn't work on IE (and only on IE). So, is there a
workaround for this issue?

Thanks for your time.
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to