Displaying 20 results from an estimated 4000 matches similar to: "Ajax/Rails question"
2006 May 18
6
NOOB: Second post, please help...
Folks,
I am linking from page A to page B, and back again. When I go from A -> B, the B_controller.rb runs fine, and the page renders properly. But, when I go from B -> A, the A_controller.rb doesn''t run again, so the array (@A) is nil (which causes a problem).
Should the controller run each time the page is accessed? Any ideas?
Marcus
Marcus Blankenship
Technology Services -
2006 May 22
3
Best Rails API source
Folks,
Is api.rubyonrails.com the best source for RoR API info? Do any other formats exist, that are easier to navigate/search?
Thanks,
Marcus
Marcus Blankenship
Technology Services - Software Group
JELD-WEN, inc.
Information Systems
541-882-3451 x 2558
marcusb@jeld-wen.com
RELIABILITY for real life*
This correspondence is for the named person''s use only. It may contain
2006 May 17
2
NOOB: Passing parameters between pages
Folks,
I have a rhtml page (page A) that links to another page (page B), and I
want to pass some parameters from page A to page B.
Here is the link code (on page A):
<%= link_to ''Edit'', { :action => ''edit'', :id => permit }, :post => true
%>
If I want to pass a parameter "name" and a value "marcus", and pick it
up on page
2006 Apr 11
26
Firefox won''t let me send ''&'' with AJAX!
Hi everyone,
I''ve encountered a HUGE problem, which may not be RoR-oriented, but
there might be a workaround somehow.
See, at this moment, I''m unable to send AJAX requests back and forth
when the information contains an ampersand (''&''). In essence, request is
never completed. The odd thing is that it only happens with Firefox (IE
and Opera works fine).
2006 Feb 17
4
link_to_remote doubles border size
I have a div with a border around it. I use link_to_remote to change the
content, and the border size doubles. Example:
<div id="test" style="border:solid; border-width:5px">
<%= link_to_remote("Test", :update => "test", :url => { :controller =>
"tester", :action => "test" }) %>
</div>
Even stranger, if I
2006 Mar 16
23
AJAX on Mobile Internet Explorer
Hi!
I try to get AJAX running on a mobile Windows Mobile 5.0 based device
and failed. There should be a JavaScript support but nothing happens.
Have any of you experience with the rails javascripts on a this platform
or are there any hints, documentation on the net?
tia,
--
Daniel V?lkerts
Protected by Anti Pesto.
2005 Dec 30
11
Losing my mind with Ajax link_to_remote
I''m playing around with Rails, and I can''t get this to work. I just
can''t seem to wrap my brain around it. I''m having some trouble doing an
Ajax navigation column. Here''s what I have:
view layout:
<div id="navigation">
<%= render(:partial => "navigation", :collection => @categories) %>
</div>
My
2006 Jun 19
10
Trying to delete from a unordered list using ajax
I have a controller method as such:
def delete
@category = Category.find_by_name(params[:name])
@element_id = @category.name
Category.delete_all(["name = ?", @category.name])
end
(For the purpose of this exercise, category names are unique)
I have the corresponding delete.rjs file:
if @element_id
page.remove :id => @element_id
page.visual_effect :highlight,
2006 May 17
0
NOOB 2 - Controller not running when accessing pages
Folks,
I am linking from page A to page B, and back again. When I go from A -> B, the B_controller.rb runs fine, and the page renders properly. But, when I go from B -> A, the A_controller.rb doesn''t run again, so the array (@A) is nil (which causes a problem).
Should the controller run each time the page is accessed? Any ideas?
Marcus
Marcus Blankenship
Technology Services -
2006 Apr 14
11
Whats the best Ajax way to update a textarea''s text?
I am looking for a way to update the text-value within a textarea from
an Ajax render call inside of a controller. Is there a way to do this
without rendering an the partial containing the textarea?
Thanks,
Andy
--
Posted via http://www.ruby-forum.com/.
2006 May 25
5
CSS Effects? (javascript?)
Is there a way to assign a CSS style to an element I am not currently
interacting with? For instance, if I have two TD elements of a table. I
click on one of them, and I want to have a style change in the other
element. Is this possible?
I''m guessing script.aculo.us might be able to help me.... but
considering how nothing on their site is loading for me right now I have
no way of
2006 Apr 13
1
Adding a title to an AJAX link.
Hello all.
I am trying to add a title to a link_to_remote created AJAX link.
What I want to create is:
<a href="#" title="VALUE-HERE" onclick="new Ajax.Updater(''content'',
''/area/show/28/40'', {asynchronous:true, evalScripts:true}); return
false;">Area Name</a>
However I cannot seem to get it to work, the API says
2006 Jun 23
4
Ajax.Request with page reload?
I need to send a POST request via a link, along with paramater data for
an action, and the page needs to reload. link_to_remote worked great
when I was updating a DOM element but obviously won''t work when I need
to reload a page. Is there an option
--
Posted via http://www.ruby-forum.com/.
2006 Feb 28
1
Ajax functions with embedded objects
Hi,
In my project, there is an rhtml page with an embedded SVG file. In my
javascript functions, I can find an object by id inside the SVG file
with the following:
ObjectInSVG =
top.document.embeds[0].getSVGDocument().getElementById("rect");
Now, I want to use Ajax methods, like link_to_remote, in the rhtml page
to manipulate the SVG objects. The problem is that link_to_remote
2005 Oct 16
13
More than one parameter with link_to_remote
Hi all,
I''m trying to pass more than one parameters using link_to_remote, but I''m
getting a behaviour that seems quite strange to me. Here''s the code:
link_to_remote ''some text'',
:update => ''form'',
:method => ''get'',
:url => { :action =>
2006 Jan 26
2
link_to_remote > in :action , interrupt ajax to render a new page outside the :update div ?
Hello,
I have a simple link_to_remote that refresh a div. I just want to know
if it''s possible to interrupt the div''s refresh inside :action to
perform a complete reload of the page, outside of the div
Actually, I havea a new page, but loaded inside the ":update" div.
Someone have an idea please ?
the rhtml:
****
link_to_remote "yeah" , :update =>
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 Oct 14
2
sending parameters with link_to_remote Ajax Request
In a panel, I have an hidden input field which is modified by a
javascript function (from calendar)
how can I sent the value of this input field in my link_to_remote call ?
presently I just send back one parameter (an id) but I need both...
<input type="hidden" name="booking[start_at]" id="f_date_s"
value="booking[start_at]" />
...
<%=
2006 Feb 28
2
AJAX: do render but show element in same click?
I''m a rails newbie.
I''ve got a link_to_remote that puts a partial render into a div
("note1", "note2", etc.). As part of the display that comes up, I put
in a hide note link (element.toggle). Click that, the div goes away,
everything''s great... except now I can''t get it back.
How can I call the remote AND make the div show at the same
2006 Feb 14
3
Can Ajax updates more than one <div>?
Hi,
I wish to know, is it possible that Ajax can update
more than one zone "<div>"???? like :
<%= link_to_remote("Title", :update => ''mydiv0'', :url
=> {:action=>:say_hello} )%>
<div id="mydiv0"> to be changed one</div>
<div id="mydiv0"> to be changed two</div>
When I execute the code, only