search for: confirm_javascript_funct

Displaying 4 results from an estimated 4 matches for "confirm_javascript_funct".

2008 Jun 15
11
[PATCH] helper to create fb css stylized table
I attached a rails helper implementation of the fb_table described here: http://wiki.developers.facebook.com/index.php/Facebook_Styles I included testing and comments. I hope you find it useful. Curiously, it''s really a small extension of FBML. Richard -------------- next part -------------- Index: test/rails_integration_test.rb
2007 Apr 21
0
Issues with Functional Tests
...ent is well-formed? (3) When using submit_tag, there doesn''t seem to be a simple way to do :confirm => "Are you sure?" like you can with link_to and button_to. I can workaround by writing something like this: <%= submit_tag "Copy", :onclick => "return #{confirm_javascript_function("Are you sure?")};" %> Is there an easier way to achieve this? Regards, Brian. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send...
2008 Feb 12
0
button_to problem http://localhost:3000/art/151470;edi
...; ''_method'', :value => method.to_s) end form_method = method.to_s == ''get'' ? ''get'' : ''post'' if confirm = html_options.delete("confirm") html_options["onclick"] = "return #{confirm_javascript_function(confirm)};" end url = options.is_a?(String) ? options : self.url_for(options) # url = url_for(options) name ||= url html_options.merge!("type" => "submit", "value" => name) "<form method=\"#{form_method}...
2007 Sep 04
2
How can i add a confirmation dialog to a submit_tag?
When i use button_to or link_to, i can easily request a confirmation dialog with (for example) <%= button_to "Delete this story", { :controller => "story", :action => "delete", :id => @story.id }, :confirm => "Delete story: are you sure?" %> I also want to do this for the submit buttons on my forms, which are