Displaying 20 results from an estimated 300 matches similar to: "type image submit tags on IE dropping the params"
2007 Jun 23
7
rake db:migrate strange behaviour "wrong number of arguments (1 for 0)"
Hi everybody,
May be somebody has a clue, why I get these errors below, while trying
to migrate.
Any help is very appreciated!
Greetinx
Rafael
I was trying to experiment a litte bit with redMine (www.redmine.org).
But I can only install it locally. On a system with already a
mongrel_cluster running, I get strange errors, already while trying to
start the migration rake db:migrate
2008 Jan 10
4
Mocking and stubbing Rails'' association extensions
I''m having a lot of trouble stubbing out an association extension for
some view tests. Example rails code modeling a music album:
class Album < ActiveRecord::Base
has_many :songs do
def streamable
find(:all, :conditions => ''streamable = 1'')
end
end
end
So for a given Album instance (say @album), I need to be able to stub
both
2006 Jun 07
2
How to send post data with link_to_remote?
Hi,
I''m trying to send a post body with my link_to_remote call.
Prototype supports the ''postBody'' option, but I can''t seem to get
link_to_remote to set that.
Here''s what I''m trying:
link_to_remote ''move up'',
:url => { :controller => ''upload'', :action => ''position_ajax'', :id
2007 Jun 22
1
nested rest URL => passing param from select
Hi,
I''m trying to create a select box with an onchange event. When onchange
is fired, I want to redirect to a nested rest url. The problem is that I
don''t know how to pass the selected value to the url:
<select id="category" onchange=" <%= remote_function(:url =>
category_articles_path(selected value?) ) %> ">
Any suggestions?
--
Posted
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/.
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") %>
[...]
<%=
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 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:
2007 Mar 06
1
link_to, image_submit_tag, "changes only with POST" and "usability without Javascript" question
Hello,
I want to have the following features in my rails application:
1. the program should have AJAX if Javascript available
2. I want to protect my application described in
http://www.w3.org/2001/tag/doc/whenToUseGet.html - means 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
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
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
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
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"
2008 Sep 07
1
remote_form_for, paths, and partials
hi,
i''m having a little trouble rendering 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" %>
2006 Jun 05
2
multiple divs in a loop
I think i have a simple problem i can''t get my brain around :)
How do i pass the arguement "story<%=story.id%>" inside the
visual_effect method?
<% for story in @stories.reverse %>
<p><%=link_to_remote ("Show Comments", :update => story.id, :url =>
{:action => :show_comments, :id => story}, :complete =>
visual_effect(:grow,
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''.
2012 Aug 10
1
button_to with image
I''m calling button_to in my page, and it renders a form with a submit
button just fine. But what I''d really like is
<input type="img" src="myimage.png" .....>
instead of
<input type="submit...>
button_to doesn''t seem able to do this, :type and :src parameters get
ignored. Is there a way to do it?
--
Tim Slattery
2007 May 19
4
button_to_function with image?
Hi:
does button_to_function allow the use of an image? I tried it in place
of the text with "image_tag" and it doesn''t work. Maybe some form of
button_to?
Any direction you can give would be great!
Mike
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
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
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 =>