Displaying 20 results from an estimated 5000 matches similar to: "Ajax and the submit"
2006 Feb 02
1
What''s the javascript to submit an AJAX Form?
HI Everyone,
How do I form the href on an anchor so I can create a link-style submit for
an ajax form?
In this snippet, the INPUT generated by #submit_tag works OK, but the anchor
results in the AJAX replacing the whole page?
Can I make the anchor/href submit the AJAX form as well?
Thank you!
I have this (list.rhtml):
<%= form_remote_tag :url =>
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 Feb 04
4
Dynamic loading view from DB
Hi All,
I am looking for a way to dynamically load a view, inside a template, based
on uri that does not officially exist inside of rails. i.e. a typical CMS
system such as wordpress that stores the html from the pages in a database.
I have found a page on the the rails wiki (
http://wiki.rubyonrails.org/rails/pages/HowToRunAnActionBeforeRoutes) that
seems to be what I want, but lacking a few
2006 Feb 05
8
sha1 or md5?
I''m building a site that requires user log-in and i have seen the Agile
book using sha1 for password hashing while R-Forum uses md5.
Is there any compelling argument to use one over the other?
--
Posted via http://www.ruby-forum.com/.
2006 Feb 26
1
Any Rails users in Omaha, NE?
Hey everyone, just wondering if there are any other people on the list in
Omaha, NE that would be interested in getting together and chatting about
rails.
Cheers,
- Matt
--
Matt Secoske
http://www.secosoft.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060226/93c1467b/attachment.html
2006 Feb 01
1
Help with ajax and form submission
While working on a new application, a friend and I ran into a problem
with using ajax. Users are used to being able to modify the contents of
a screen until they are finished and then saving (committing). There
does not seem to be a way to do this with ajax, since you have to modify
the model whenever you call back to the server. The half baked solution
that we came up with is to create a
2006 Apr 27
1
help with observe_field :on
Try as I may, I cannot figure out how to make the :on option work with the
observe field method. I have looked into the javascript that is
eventually called, and it does not appear that there is any way to
override which event is bound for which control. Any help would be
greatly appreciated.
Thanks
--
Phil
2006 Feb 06
5
RTRails now open sourced
Hi, if anyone is interested in HTTP streaming and realtime
communication:
Our RTRails project is now finished.
I uploaded RTRails to Rubyforge. Here is the project page:
http://rubyforge.org/projects/rtrails/
Here is a video showing two browsers using the app, Safari in Pull mode,
Firefox in push mode:
http://www.uni-weimar.de/~scheffl2/amsterdam/video.php
Here is a technical paper about
2010 Mar 09
9
Ajax-submit form on "check box onclick ": why this error?
Hi there,
I need to have a checkbox which ajax-submits a form.
The following code throws an error "index 112009 out of string". What''s
wrong here?
==============================================
<% form_remote_tag :url => { whatever_url } do -%>
<%= check_box_tag ''whatever'', nil, whatever, { :onclick =>
2006 May 03
1
form :onblur => ''this.form.submit()'' doesn''t do AJAX
Hi,
I''m looking to create a form that gets submitted using AJAX after an
element loses focus.
<% remote_form_for :person, @person, :url => { :action => "save" },
:update => ''form'' do |f| %>
<label for="person_fname"><span class="req">*</span>Name</label>
<div class="form_el">
<%=
1999 Oct 28
1
dos filetime resolution and dvf
I am not getting much benefit from using
oplocks = False
or
dos filetime resolution = True
in Samba 1.9.18p3 on Solaris 2.5.1 and the Developer Studio in Digital
Visual Fortran (v6.0) on WinNT4,SP4. I am also setting my PC clock
to the samba server.
I still get a lot of messages from the Studio informing me the source
code files and workspaces have changed outside the editor or Studio
2006 Apr 08
2
Multiple submit buttons
Hi,
How do i differentiate different submits tags / buttons on one form. Say
I want to create an edit form and I want to provide two buttons; one to
save and one to cancel. I would have:
<%= submit_tag ''Ok'' %>
<%= submit_tag ''Cancel'' %>
How do I know which button get pressed by the user?
One more thing, how to specify the default selection in a
2006 Apr 01
3
Can I do a redirect in an ajax request?
I''ve got a form on my page, and when the user submits it, sometimes
I''d like to update an element on my page, and sometimes I''d like to
redirect the browser to another url entirely. However if I do
redirect_to, it just updates the element with the results of the
redirect. Is it possible to do what I want, or will I need to use RJS
to do this?
Pat
2013 Mar 06
1
How to create multiple submit paths for form_for?
I''ve been researching this for some time and there doesn''t seem to be an
easy solution.
I have a form_for that submits materials. As usual, when it edits an
existing material it automatically goes to the update action. This is fine.
However, I want to have a second submit button "Save As" that allows a user
to save another version of the material. This second
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:
2011 May 04
1
Why do I sometimes have to refresh the page manually after an AJAX form submission?
When I do remote form submits through jQuery .submit() why do I
sometimes have to refresh the page manually to see the results?
My jQuery handler is very simple:
$("#vote_yes").click(function() {
$("#approval").val(true)
$(".edit_vote").submit()
});
And the link that leverages this bit of code is as follows:
<%= link_to("Vote
2006 May 04
4
Ajax spinners
Hi all, I''ve been looking for these for quite some time now and I
couldn''t find them with a transparent background and a neutral color,
so here they are, just baked from the oven:
The Mac OS X and Mozilla Spinners (Grayscal and Transparent)
Enjoy
Gael
-------------- next part --------------
A non-text attachment was scrubbed...
Name: spinner_mac.gif
Type: image/gif
Size: 2530
2008 Oct 22
1
Think I'm sure, but confirm: lme4 vs. nlme
The impression I get from the list and the references I've perused is
that nlme is being phased out in favor of lme4, but lme4 still doesn't
have a complete feature set yet.
What I'm still fuzzy on, being a relative R newbie, is:
(a) what features in nlme are currently missing in lme4
(b) what's the projected time frame on getting them implemented.
If anyone can answer my naive
2005 Dec 10
1
submit ajax form through javascript
hi all,
my problem:
i have a form that is sent through ajax with ajax.updater.
the onsubmit function looks like this:
new Ajax.Updater(
{ failure:''command_div'' },
''/windows/chat_post'',
{
asynchronous:true,
parameters:Form.serialize(this
}
);
return false;
this works fine when I submit the form by pressing the submit button.
2006 Jan 23
1
Image Upload > Submit with AJAX that replace a div content with the uploaded file. Possible ?
Hello,
I just want to know if it possible to do an image upload with AJAX that
replace a div content with the uploaded file.
Well, with link_to_remote, I know how to do simple AJAX. But with a
submit button, I have no idea.
Someone have an idea ?