search for: image_submit_tag

Displaying 20 results from an estimated 29 matches for "image_submit_tag".

2007 Mar 06
1
link_to, image_submit_tag, "changes only with POST" and "usability without Javascript" question
...ans GET should be safe 3. if Javascript is disabled the application should work too (without AJAX) If I use "GET should be safe" option (verify) and link_to with :method => ''post'' option these links do not work anymore with Javascript disabled. My idea was now to use image_submit_tag to do e.g. a ''delete'' action on list page. For this option I have to encode the action (delete) and the id of the entity within the value option of the generated HTML "input" tag. Is there a plugin for this avalailable? The downside of this is that I have one form action...
2007 Sep 12
0
image_submit_tag, :get method and x&y issue
For search functionality I am using :get method to post the form. I am also using image_submit_tag. <%= form_tag({:action => ''search''},{:method => :get}) %> <label>Search:</label> <%= text_field_tag ''term'' %> <%= image_submit_tag "search.png",:name =&g...
2007 Oct 15
6
Form with two buttons
Hi, I need to make a form with two buttons. But I do wrong. And why not can be. form: ------------------------------- <%= form_tag :controller => ''establishment_contents'', :action => ''llamada'', :opMenu => opcionMenu %> [...] <%= image_submit_tag ("../images/incluir.gif", :op=>"addImage") %> [...] <%= image_submit_tag ("../images/eliminar.gif", :op=>"delImage") %> <%= end_form_tag %> establishment_contents_controller.rb: -------------------------------------- def llamada...
2006 May 19
4
why no multiple submit?
is it by design? is it standard? how do you give users multiple actions on a form? -- Posted via http://www.ruby-forum.com/.
2006 Mar 25
5
button_to with image?
I''m trying to use button_to and have it use an image in place of the submit button. I had figured it would work the same as link_to like so: button_to(image_tag("editicon", :size => "16x16", :border => 0), :action => ''edit'', :id => person.id) but this instead displays the image code as the button name. Surely there is a simple way to
2006 Jun 01
2
submit_to_remote with an image-tag?
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
2006 Jun 16
2
image_select_tag with name and value
What have I missed I have a .rhtml with the sandard form parameters <%= image_submit_tag("excel.gif", :alt => "Download List to Excel", :border => 0, :name => ''render_action'', :value => ''excel'' ) %> Which genenerates I believe a valid html fragment for a submit button. <input alt="Download List to Excel&q...
2008 Sep 07
1
remote_form_for, paths, and partials
...ng a partial that uses a remote_form_for and is in another controller. <%= render :partial => "reviews/new"-%> and in the partial i have only this, inside another controller <% remote_form_for @review do |rv|-%> <%= rv.hidden_field :value, :value => 1 -%> <%= rv.image_submit_tag "thumbsupnc.png" %> <% end -%> the error that i''m getting is undefined method `reviews_path'' for #<ActionView::Base:0x4997dd0> if i render the template from the reviews folder i get the same problem. any help would be appreciated -- Posted via http://www...
2008 Jul 23
0
Link_to_remote object missing
...;Editing project</h4> <% form_for(:project, :url => project_path(@project), :html => { :method => :put }) do |f| %> <p> Name <%= f.text_field :name %> Date <%= calendar_date_select :project, :target_date, :time => false %> <%= image_submit_tag(''accept.png'', :alt => "Update", :class => ''icon'') %> <%= link_to_remote image_tag(''cross.png'', :alt => ''Cancel''), :url => cancel_edit_project_path, :method => :get %> </p> &lt...
2008 Oct 24
4
Railscast 75, Observe_field and Shopping Cart
Hi all, I have the shopping cart page where a user can add items dynamically through ajax as explained in Railscast episode 75. I am using observe_field to observe the ''quantity'' and ''cost'' fields to update the total field for each item. This does not work however, for records that are added through the Ajax. How can i name the fields and observe them as i have
2007 Jun 23
2
type image submit tags on IE dropping the params
I have noticed that on IE, the @params[:commit] does not come through on image submit tags, but it does when the image is removed. this fails: <%= submit_tag( "Schedule", {:type => "image", :src=>"/images/buttons/schedulecard.gif", :alt=>"Schedule Card", :class=>"button"})%> but this works: <%= submit_tag(
2006 Apr 21
4
link_to_function with submit
I looked everywhere but couldn''t find it. I don''t want a submit_tag or image_submit_tag but a normal link that submits my form. Normally I would do this with a javascript like function sendForm () { document.forms[0].submit(); } but this doesn''t work with form_remote_tag link_to_function( ''Send'' , "sendform();") So the question is: how do I...
2006 Jan 13
9
form_remote_tag breaks inside table
i guess its better form to keep form tags outside of table tags anyways, but it took a lot of trial and error to figure out thats why @params were no longer showing up after switching form_tag to form_remote_tag. not sure if this is a prototype ''bug'' or ''feature'' or what. but my next step was to switch to a seperate form tag for each row to reduce needless
2007 Feb 28
6
DRY question - image_tag :alt and :title the same
Hello, I have the following: image_tag(''show.png'', :alt => ''show article'', :title => ''show article'', :border => 0) Is it possible that I donĀ“t need to have "=> ''show article''" twice in this row? e.g. something similar to this pseudo code: (:alt, :title) => ''show article''.
2006 Jul 13
0
Remote form and input type=image x, y coordinates problem
Hi, everyone! I''ve encountered a problem with form_remote_tag not passing all the parameters a "normal" form would pass. When the submit tag is an image (image_submit_tag), the form usually submits the x and y coordinates where the click was made, but form_remote_tag ommits them. I guess it''s because the it?s using JavaScript to serialize the form elements. Has anyone come across this problem? Any suggestion on how to fix it? Thank you. esti -- Poste...
2006 Jun 07
0
2nd Submit button with options
I wish to have 2 submit buttons one which does a normal sumbit and the other that does a submit but also passes the parameters such as "render_action" . This doesnt work <%= start_form_tag :action => ''list'' %> <%= image_submit_tag("find.gif", :alt => "Find and Display", :border => 0) %> <%= link_to image_tag("excel.gif", :alt => "Find and Download to Excel", :border => 0), {:action => ''list'' , :render_action => ''excel'', :po...
2006 Jun 19
0
Bug? With image_select_tag processing in controller?
As I wrote in http://www.ruby-forum.com/topic/69600 A) I created a .rhtml <%= image_submit_tag("excel.gif", :alt => "Download List to Excel", :border => 0, :name => ''render_action'', :value => ''excel'' ) %> B) This rendered the valid html <input alt="Download List to Excel" border="0" name="rend...
2006 Apr 18
1
''wrong number of arguments'' for text_field?
...code when I try to create a new record. If anyone can see what is going wrong here please help! new.rhtml ------------------------------------------------- ... <%= start_form_tag :action => ''new'' %> <%= render :partial => ''form'' %> <%= image_submit_tag ''disk.gif'' %> <%= end_form_tag %> ... _form.rhtml ------------------------------------------------- ... <%= text_field ''inventory'', ''quantity'' %> ... inventories_controller.rb -------------------------------------------------...
2006 Mar 28
0
ajax question about refreshing divs
...quot;user", "username", "size" => "20", "class" => "Textos-02" %> <%= text_field "user", "password", "size" => "20", "class" => "Textos-02" %> <%= image_submit_tag "bot-ok.gif" %> <% end_form_tag %> </div> </div> and this is the controller class HomePageController < ApplicationController def login #More than 2 parameters means an post (there is always a post couse it''s ajax) if params...
2006 Jan 23
0
form_remote_tag and Safari (HELP!)
...y'', :complete => evaluate_remote_response %> <%= select "website", "id", Website.find(:all, :conditions => ["merchant_id = ? AND sitetype = ''PPC''", @session [:user].merchant_id]).collect {|p| [p.domain, p.id]} %> <%= image_submit_tag "http://images.bluechips.com/DomainWorks/Submits/ submit.gif" %> <%= end_form_tag %> I am using this as the form_remote_tag tag for a submission of a form, but in Safari 2.0.3 the parameters do not post at all, while in IE 6.0.x they do. In the log file for a Safari request...