similar to: Remote function call & not render anything?

Displaying 20 results from an estimated 50000 matches similar to: "Remote function call & not render anything?"

2006 Apr 19
9
Initial load time when periodically_call_remote
When I do periodically_call_remote with e.g. :frequency => 30 after initial page load I have to wait 30 seconds until this partial renders first time. Does anybody know how to make ROR to render partial on web page load, and then start periodic calls every 30 seconds? I tried to put <div id=''mydiv''><%= render(:partial, :action=>''myaction'')
2006 Jun 21
3
Call action & display nothing?
Can you do a periodically_call_remote to an action but then not display any new view? say the new action was called ADD. I don''t want to do an rhtml file for add, and I don''t want to render anything in the controller... I want to leave the page as it is. How is this done? Thanks, Ben Lisbakken -- Posted via http://www.ruby-forum.com/.
2006 Jun 07
2
Ajax: periodicaly_call_remote problem
Hello I am using ''periodically_call_remote'' to get some stats from database and display it every N seconds, it''s works fine, but when I rewriting (by page.replace ...) content of the DIV which contains ''periodically_call_remote'' definition request are still executing... How to fix this confuse? Thanks in advance.
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 Apr 27
4
Up-dates
I started working on a chat program but, I''m having this problem chatroom.rhtml <div id="chatroom"> </div> <%= periodically_call_remote( :update => "chatroom", :url => {:action => :chat }, :frequency => 2) %> chat.rhtml <h1><%= @chat.room %> room.</h1>
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 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
2007 Sep 24
3
Trouble using backgroundrb
Hi all, I''m a newbie to backgroundrb and am having trouble integrating it into my rails-app. I''m using namespaces to differentiate between the parts of my app. When I want to create a new worker, it seems that it cannot find the worker object. Here''s my code: -------------------- controller app/passwd/index -------------------- class Passwd::IndexController <
2006 Jul 26
4
can you pass data when you render :action
how can i do: render :action => "headline", :id => @user.id Thanks, Ben Lisbakken -- Posted via http://www.ruby-forum.com/.
2006 May 17
9
Render No Layout?
Hi guys, Am having a problem. I have this def in my index controller that works like this: def do_something $a = variable1 $b = variable2 $c = variable3 $d = ""<script language=\"Javascript\"> \n new Insertion.Bottom(''#{$c}'', ''#{$a} - #{$b}''); \n </script>" $trigger = "1" render(:partial =>
2006 Aug 16
7
Forward of moderated message
OK I know whats happening. Your while loop completes and calls kill on the worker before your task_progress controller method ever gets called> So the worker is deleted and when you try to access it from rails you get an error because there is no longer a worker at that job key. The kill method is meant to be used within a worker that you fire and forget. If you want to get the
2006 Jan 16
2
render :file question
Hi, I have a layout xyz.rhtml. And a footer.rhtml. Both these files reside in app/views/layouts/. In that layout, I am making a call like this: <%= render :file => "footer", :use_full_path => true%> I have also tried: <%= render :file => "footer"%> footer.rhtml is in the same directory as in xyz.rhtml. I get this exception:
2005 Dec 31
0
Question about periodically_call_remote
I''m not sure how to ask this succinctly, so bear with me. I''m trying to learn how to use periodically_call_remote to update a div. I have a table whose rows have the data I want to display in the div, one at a time, every 10 seconds (let''s say). For simplicity let''s pretend each row just has one column, "description," which is just a text
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 Apr 07
3
Ajax render a template
In my blog a user can add comments. I want an Ajax call to add the comment to the bottom of the comments list. How to i return a comment thats is in the comment template and add it to the bottom of the page. I have gotten as far as rendering some text back to the form and the comment doesn''t display until i refresh. This is my _newcomment.rhtml form to create a new comment <div
2006 Jun 10
0
Problem with ''periodically_call_remote''
My ajax-application have folowing behaviour: Just 1 page loaded with 1st request and all other content always loaded into special DIV using ajax when user clicked menuitems. On some "pages" I using ''periodically_call_remote'', but I can''t STOP it! Simple example: View: <div id="view"> <%= link_to_remote ''Stop tracking'',
2006 Jan 04
4
HOWTO: Render partial in div
Hey- I''m using ROR 1.0 and script.aculo.us 1.5.1. I''ve been trying unsuccessfully to render a partial in a DIV, but can''t seem to get the right combination of stuff to make it work. There seems to be a few different ways of going about it. Right now I can render a partial. What do I need to to render the partial in a div? Here is what it looks like so far: #
2007 Jun 21
1
render :partial => :url - is it possible?
Hi, this is my first post to the list. I''m still learning the rails framework, having done most of my previous web development in PHP. I''ve done a bit of googling for the answer to this question, but maybe I''m just lacking the right word to search for. Several parts of my site, such as sidebar components, are self-contained, modularized and re-used in several parts
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 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