Displaying 20 results from an estimated 6000 matches similar to: "Ajax form results display help"
2006 Apr 06
0
Using Rails and the Flickr API
Hi all,
Week 2 of my Rails experience and I''m loving life!
This is one of my first times consuming a web service, but the Rails
demo made the process very exciting... I followed along with the video
and have my own little Flickr search up and running! Woo hoo!
So now I want to do a bunch of other things to it and I''m struggling...
excuse my ignorance, but is there some
2006 Aug 09
2
Can :before and :success move from view file into .rjs file?
Within the RJS template is there a way to specify when the visual_effect
should occur?
I''m trying not to repeat the :before and :success blind_down
visual_effect statements throughout my views.
It seems like the rjs templates can only take visual effects statements
in the form of
page.visual_effect :blind_up, ''divname''. I can''t figure out how to add
2006 Nov 04
0
form_remote_tag problems with post url
Hi,
I''m hitting a bump with the form_remote_tag, and wondering if anyone can
help.. SO i''m trying to implement a tag-based search on a site and using
routes, I can enter a url such as http://localhost/tag/query , which calls
an action ''search'', and returns all the posts which are tagged with the word
''query''..
fine...
In the
2006 May 12
0
RJS, Safari, Error - DOM exception 7
I''m having nasty cross-browser headache.
Not new to Rails, but quite new to AJAX/RJS.
My app works perfectly in Firefox, but generates
the error in the subject line in Safari.
Pretty simple circumstance, completely reproducible
in all cases:
Any ideas? Relevant code attached.
Layout:
-------
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC
2007 May 29
0
Ajax sortable_element refresh
Hi,
I have the following ajax example, with a list of counters, and two
buttons for adding/removing elements. The list is sortable.
There are two things that I don''t know how to do:
. remove an elemet
. when I add a new element to the list, that element doesn''t become
sortable with the rest of the list
Thanks,
hugo
#### View
<html>
<head>
<title>Ajax
2006 Nov 02
5
RJS error in internet explorer
hey all,
got a rails app i''m finishing up. i have a little ajax on one of my
pages where the person can choose a doctor from a drop down list and if
the doctor isn''t there they can click a link which blinds down a little
form to add a doctor. after they submit that mini-form the page updates
the div which houses the drop-down so the doctor shows up. works very
nicely IN FIREFOX.
2007 Mar 20
2
Progressive AJAX Filter
Hi Guys,
In my rails app, I present a table of data that I want to be able to
filter using multiple criteria. I''ve created a one-line table of
input fields above my table to accept filter criteria like this...
<%= javascript_include_tag :defaults %>
<form name="sform" action="" style="display:inline;"
2006 Jun 23
2
Queue 3 or more RJS actions
My .rjs file
page.visual_effect :BlindUp, "people", :queue => ''front'' #first action
page.replace_html "people", :partial => ''person/person_compressed'',
:collection => @search_results , :queue => ''end'' #second action, after
first is done
page.visual_effect :BlindDown, "people" , :queue =>
2010 Oct 02
0
Ajax observe_field not vorking on Rails
down vote favorite
I am trying to create some kind of search in my ruby on rails
application and I want to add ajax support. I want when a user types in
a search box a word, ajax automatically generates the results. And I
have searched almost all internet and I couldn''t find answer to
following question:
When I type into my text area nothing happens. It is like ajax is not
working at
2006 Apr 19
1
AJAX - update item forms problem
I have a table showing some records from the database. These records
should be always ordered by some datetime field. The list of items is
changed by AJAX using RJS scripts and edits are done by showing and
hiding an update form under a chosen row. Adding and updating rows works
great but my problem is when the order of items is changed after making
some AJAX datetime updates update forms of
2006 Mar 26
4
Updating query results in real time with AJAX
I have the following view template:
<%= form_remote_tag :update => "new_item",
:url => {:action => ''create''},
:before => %(Element.show(''spinner'')),
:success => %(Element.hide(''spinner'')) %>
<div id="new_item">
</div>
2006 Apr 21
3
rjs in multiple ajax page
Sorry for the long explanation but I''m having trouble integrating rjs into my
form page. Here''s my page:
<div id="posts">
<ul id="post_list"><%= render :partial => ''list_results'', :collection =>
@posts %></ul>
<p><%= link_to_remote(''+'',
:url => {:action =>
2006 Apr 27
7
RJS & Ajax question...
Hi,
I''m trying to convert an older Rails application to use Ajax. I''ve
already moved my edit and show actions so that, instead of displaying as
separate pages, they appear in a <div> on my list view.
However, I have two problems:
1) When the user saves the changes, I want to put all the ajax changes
in an RJS template. However, form_remote_tag :url =>{:action =>
2006 Jul 27
1
response from ajax request
Hi, newbie here.
I am trying to implement a filtering interface using observe_field.
Using firebug I can see that I am getting the properly rendered html
blob back in the response, but when it get inserted into the dom element
that I am targeting, the plain html elements from the partial template
have been stripped, leaving only the elements inserted via the <%=
statements. I would
2006 Jun 07
0
javascript that remote_function creates
I''m tring to use remote_function instead of writing all the javascript
out, but am having difficulties..
I have this code in a layout:
<body onload="<%= remote_function(:update => ''show_active'', :url =>
{:action => ''show_active_bugs''},
:complete => visual_effect(:blind_down, ''show_active'')) %>">
2006 Feb 16
0
RJS Question
Hi,
What would my method call in an rjs template to produce something like:
new Effect.BlindDown($(''commentList'').lastChild);
I know if I just wanted to the blind effect I would:
page.visual_effect :blind_down, "row_#{@new_item.id}"
but how would I call it if I want the ".lastChild instead of passing a particular id?
thanks, scott.
2006 Jun 06
1
Getting value of form using Ajax (and problems with Safari)
I have got two forms, the first is a textarea plus a link that activates
some javascript to change the form, the second activates some javascript
on the onchange event which changes it into a textarea form.
This works in Firefox, but not in Safari.
Also, I need the value which is selected. I''ve found an example that
gives the parameter to the javascript, like this:
<input
2007 Dec 12
0
how can I use form_remote_tag to go to a different host ?
Here''s sort of what I am trying to do if it''s possible:
We have a server that uses TCL and can''t do any ajax.
What I did was wrote a simple Rails app that uses form_remote_tag to
get some text on a post and then
displays back some text into a div via ajax and a partial render.
I wanted to take all the html, javascript, and ajax calls that the
Rails template creates
2010 Oct 11
0
Converting observe_field to UJS in Rails 3
I am trying to rewrite my website in Rails 3 and Ruby 1.9.2.
Can some one help me convert my observe_field which is working under
Rails 2.3.5 to Rails 3. I would like to avoid using JQuery as over the
last year everything I have tried in JQuery has failed, including this
one. Perhaps due to my lack of knowledge. I would not like to install
the legacy upgrade.
What I have in my website is several
2006 Apr 05
7
Conditional toggle button
I have a link_to_remote that updates the content of a hidden div and
makes it appear.. But I want it to hide the div and not execute the
link_to_remote function on the second click. What''s the best way to do
this? I''m thinking I can do it in RJS maybe, but I''m not sure if
there''s a nice Rails-y way to tell if a div is hidden or not..
I''d also