Displaying 20 results from an estimated 1000 matches similar to: "Initial load time when periodically_call_remote"
2005 Mar 02
2
form action in mail (actionmailer)
Hi everyone. : )
I meet problem when use form tag in actionmailer. (content-type is text/html, surely)
I want to use form action in actionmailer''s view (.rhtml) for some reason.
1. I use start_form_tag helper method as normally, but how I can ?
I did <%= start_form_tag :action => "http://myhostname/mycontroller/myaction" %> or
<%= start_form_tag :action =>
2006 Jun 15
1
Periodically Call Remote Condition
Hi guys,
I''ve been reading through the forums and came across a response for
adding :with condition to a periodically call remote.
I tried it out and couldn''t make it work. Would anyone have a sample of
how to use this conditional structure with periodically call remote?
If not, does anyone have any idea how to add a condition to a
periodically call remote?
What I need is to
2006 Apr 15
2
Using a Button to render partial
Is there a way to render a partial using a button? Basically in a
content div I want the user to launch a new sub content item in the same
div by clicking a button.
Any help appreciated.
Loving rails more and more everyday.
--
Posted via http://www.ruby-forum.com/.
2006 May 11
3
How do i open link to a new winow?
Pretty simple question right? can''t seem to figure it out.
--
Posted via http://www.ruby-forum.com/.
2006 Jul 18
4
Multiple Layouts - Single Controller
How do I do multiple layouts for a single controller:
I am aware I can do... render(:layout =>''mylayout'') for individual
actions, however this becomes a multiple render problem.
I tried this...
layout "mylayout", :except => [:myaction, :myotheraction]
layout "myotherlayout", :only => [:myaction, :myotheraction]
However that doesn''t
2008 Feb 01
1
render partial in div
I have this link which when clicked will loop and render more links and
a form from a partial inside of "myDiv":
<%= link_to_remote ''MyLink'' . . . ., :update =>"myDiv" %>
<div id = myDiv>
<div>
<div>
<div>
What I am trying to do is have a form_remote_tag that re-renders the
list of stuff in "myDiv" when
2006 Jan 18
2
Newbie question about periodically_call_remote
Hi,
I''m new to Ruby on Rails (and Ruby itself). So far, I''ve been able to
find answers to most of my questions in the docs or mailing lists. One
thing I haven''t been able to find the answer to is how to stop a
periodically_call_remote call. My first Rails app is going to be a
front-end for our Ant-based build system at work. While the build is
running,
2006 May 01
2
Can I send a redirect_to() call to a periodically_call_remote() function?...
Hi,
I''m using Rails 1.1 and the periodically_call_remote() helper to
query the server for the progress of a long running action.
I''m using the excellent new RJS partials to send a page.replace_html()
to update the status information on the page--which works very
well.
When the action completes I''m also trying to send a redirect_to()
by the same approach--which
2007 Feb 06
2
Pass parameters in periodically_call_remote?
Hi,
I am still new to RoR, so please bear with this newbie question. I
would like to have the application in view to press result back to the
controller when the periodically_call_remote is called. Right now,
this is the code in the view:
<div id="get_result"></div>
<%= periodically_call_remote(:update => ''get_result'',
2006 Jul 15
1
Is there a huge performance difference between using multiple periodically_call_remote functions or one?
My application has multiple things on the interface that need to be
updated periodically. Some things every second, others not so much.
Some of these things are global, meaning they are on the interface at
all times, and some of these things are view specific. So what I
figured I would do is add the periodically_call_remote function for
the global elements and another one for the view
2006 Apr 03
1
Q: periodically_call_remote ( how to make it execute just once? )
I posted this ealier on the web forums but noticed a similar question
about this function and one user responded to try this list instead. If
anyone can help I would greatly appreciate your suggestions.
Q:
Is there a way to use periodically_call_remote to run just one time
instead of every '':frequency'' seconds?
I tried putting the call inside the div container thinking it
2006 May 01
1
Can I send a redirect_to() call to a periodically_call_remote() refresh?
Hi,
I''m using Rails 1.1 and the periodically_call_remote() helper to
query the server for the progress of a long running action.
I''m using the excellent new RJS partials to send a page.replace_html()
to update the status information on the page--which works very
well.
When the action completes I''m also trying to send a redirect_to()
by the same approach--which
2006 Apr 07
1
How I can stop periodically_call_remote?
I need make progress bar with following function:
# Ruby on Rails code
<%= periodically_call_remote(:update => ''progress-bar'', :url => {
:action => :progress },
:frequency => 0.1 , :complete => "check(request)") %>
How I can stop it?
If I have this:
/* JavaScript code */
function check(request, object) {
if (request.responseText ==
2005 Dec 25
4
How to display a welcome page
Wow, I can''t believe that after a few weeks of playing around with Rails I
got stuck on something that seems like it should be really simple.
How do I display a default welcome page for visitors who are not logged in
and send logged in users to the appropriate controller. I am using the
login_engine and the user_engine.
The two methods I have seen looking at sample code are to stick a
2006 Apr 27
14
cleanWhitespace and parentNode
Hey cats,
I seem to have ran into a problem in IE trying to use parentNode with
the cleanWhitespace method.
doing something like:
var div = $(''mydiv'');
Element.cleanWhitespace(div);
works really great, but try doing:
var div = $(''mydiv'');
Element.cleanWhitespace(div.parentNode);
or
var div = $(''mydiv'');
div = div.parentNode;
2006 May 23
0
html "class" attribute for "link_to_remote"
Hi,
now this should be easy, but for some reason I was not able to generate
a link with a "class" attribute using "link_to_remote".
I tried several different ways, including the one that worked for
"link_to", but so far no luck.
I have to admit that I am not 100% sure how to read the rDoc
documentation. If it says:
link_to_remote(name, options = {},
2006 Mar 23
2
ajax replace div
Hi,
Using form_remote_tag methode, is there a clean way to
directly replace the content of a given div instead of just update it ?
If I destroy the content of the div using this code:
:success => ''$(\''mydiv'').innerHTML = \''\'''',
It works. But it''s not really a clean way...
Any suggestions are very welcome..
Thanks.
Seb
2005 Dec 21
3
Lazy Loading?
I''m having problems with what seems to be lazy loading behavior in Ruby
on Rails. I have two objects in a parent-child relationship such as:
class Order < ActiveRecord::Base
has_many :items, :dependent => true
end
class Item < ActiveRecord::Base
belongs_to :order
end
I put an instance of the Order object into the session using:
session[:order] = Order.new
2006 Mar 20
1
AJAX in conjunction with partials
All,
Trying to clear up some confusion on my part.
If I make an Ajax call using Ajax.Request and in the controller method
that I call, I do a render (:partial => ''whatever.rhtml''), should I
expect that ''whatever.rhtml'' will be rendered in the browser or not?
Put another way, is it in any way reasonable for me to think that
Ajax.Request + partial render
2006 Aug 07
1
Routing/Redirecting
Hi all,
Can someone tell me how I could redirect from an url like
"www.url.com/mycontroller" to "www.url.com/en/mycontroller"? I was
reading all sorts of routing documentation but couldn''t come up with a
solution. Of course this should be a general rule, so
"www.url.com/mycontroller/myaction/myparam=99" should naturally redirct
to