Displaying 20 results from an estimated 2000 matches similar to: "[rjs] How can I render a action template instead of partial"
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 =>
2006 Jan 23
4
Transition between effects
Peepz,
I was looking into how script.aculo.us handles effect to write a
tutorial and for a current project I wanted to make transition between
PAIR effects possible. These PAIR effects are (Appear/Fade,
SlideUp/SlideDown, BlindUp/BlindDown) the effect that toggle can handle.
script.aculo.us calls queue.loop each 40 milliseconds, and that calls
all the effect.loop for all effects in the
2006 Jun 30
2
Development of RailsCron
Hi,
Is the development of Rails Cron still active? most of the blog articles
about it are unavailable and it hasn''t been updated for a long time.
--
Abdur-Rahman Advany
http://blog.railsdevelopment.com/
2005 Dec 27
2
Rewriting FormBuilder
Hi,
I want to extend formbuilder to make it output a lable (I know about
labeled_form_helper made by technoweenie), my own formating, and a
couple of extra tags inside the form attribute. I was easily able to
extend form_remote_to. But when I continue to adjust the way elements
are handled I don''t know how to continue. I can''t find the method
text_field thats should is
2006 Apr 23
6
multiple applications to reduce complexity but how to interact...
Hi,
we are building couple of application that will need to communicate with
each other, because there where special in what they do, I will explain
it with some general application:
For example, you have a projectmanagement application, where you can
store messages, milestones, enc, and you have a online time registration
application. Now you want to be able to setup the task for each
2006 Jun 14
0
Rails blog article is giving a 404 error
Hi,
When I open http://blog.railsdevelopment.com/pages/effect/queue in
Internet Explorer it gives a 404 after showing the page for a couple of
seconds (even if I disable javascript). But everythink works fine on
firefox, I can''t figure out why its not working...
--
Abdur-Rahman Advany
http://blog.railsdevelopment.com/
2006 Jul 03
2
rjs renders string or partial but not template or action
Hi,
I have an rjs file. I only have one controller called called front. I
have views called "new_title.rhtml" and "_new_title.rhtml"
These work
page.replace_html ''title'', ''new title''
page.replace_html ''title'', :partial => ''new_title''
page.replace_html ''title'',
2006 Jan 20
5
Height problem after interrupting SlideDown/SlideUp effects
Hi,
i have a problem with the the SlideDown and SlideUp effects. Since a similiar
problem is also visible on the script.aculo.us homepage, i''m going to explain
it this way.
- Go to http://script.aculo.us/
- On the main site below "visual effects", click "Advanced options", the sub
panel will scroll down.
- Hit the close button, and while the panel is still
2006 Jan 29
1
RJS template problem!
hi all,
i have the following controller:
class UserController < ApplicationController
.
.
.
def login
@user = User.new(params[:user])
@logged_in_user = @user.try_to_login
if @logged_in_user
session[:user_id] = @logged_in_user.id
else
flash[:notice] = "ungültige Daten!"
end
end
.
.
.
end
with this rjs template:
login.rjs:
if @logged_in_user
2006 Jun 13
21
RJS Templates for Rails
I''m happy to announce the availability of RJS Templates for Rails
published by O''Reilly.
The book covers all aspects and features of RJS that are included in
Rails 1.1. It also walks through a few examples, debugging with
FireBug, and finishes off with some reference material.
The book is 56 pages and is available in PDF format. I''m really happy
with how the book has
2009 Jul 28
4
RJS-Template and link_to_remote
Hi, I am quite new to rails and can''t use any rjs-templates.
The problem is, that he can''t use/find the methods in that template
e.g. ''page'' or ''replace_html''. I get an error message on these
methods.
Here''s what I got so far in my example:
Controller:
----
class AjaxTestController < ApplicationController
layout
2006 May 28
1
RJS template / page.insert_html problem
Hiall,
I have a rjs template which is calling page[:xxx].replace_html ... a
couple of times and this works perfectly. However, in the same rjs
file I have two calls to page.insert_html, which do not work. No error
in development.log, nor error message in browser, the new content for
the div simply isn''t changed at all.
This is my code:
...
action = "save_" +
2012 Jun 01
1
Help with this web scrape function
Hello,
I am looking to scrape this Webpage:
http://toast.gasunie.de/gud/search.aspx?soid=GUD&lang=de
The page uses the method "POST", it contains various HTML Forms, mostly
lists and a couple of radio buttons. After submit, I should get forwarded to
a new page. Which selections are being made in the forms does not really
matter, I get quite far, pls see the code:
library(RCurl)
2008 Oct 29
0
RJS problem after upgrading to Rails 2.0.2
I just updated an old app from 1.2.6 to 2.0.2 and I''m having an rjs problem.
I have one page that has 2 submit to remote buttons, one to do a price
override and the other to remove the lineitem. Everything is working
perfectly before the update but now the price override doesn''t update the
page. I''ve verified that the price_override method still gets called
because
2006 Jul 21
1
RJS Failing
This code was working before I created the update_link_list method in
the helper below (everything was in the controller). I can successfully
create a new link but I get a TypeError when I leave all form fields
blank -- I expect to see validation error messages.
---
#link_controller.rb:
def create
link = Link.new(params[:link])
saved = link.save
num_links = Link.find(:all).size
2006 Apr 22
5
selenium plugin not working with rails 1.1
Hi,
I really like selenium, and I just tried the plugin created Jonas
Bengtsson. However I cannot get it to run on rails 1.1 and coundn''t find
anyone complaining about it?
Did anyone get it to run on rails 1.1.2?
Greets,
Abdur-Rahman
2006 Mar 22
1
RJS - Still not working in IE
The previous thread on this topic got a little disjointed, so I thought
I''d summarize the issue again, in hopes that someone could help. To
re-iterate, this rjs works in Firefox and Safari on Mac, and in Firefox
on Windows. It fails, in IE on Windows. The failure is that the second
page.replace_html seems to do nothing.
My environment is:
Rails 1.0 + RJS Plugin
Updated
2006 Apr 03
5
RJS Queue
Hi,
I''ve been able to succesfully queue page.visual_effect commands in my
RJS templates. Each command will wait to execute until the previous
command is done executing.
But I''d also like to execute a page.replace_html command AFTER the
page.visual_effect commands. I have a series of five DIVs:
div1
div2
div3
div4
div5
When the user clicks on div1, a page.visual_effect
2006 Mar 15
4
RJS template eating encoding
I was previously doing an update via .rhtml templates creating an AJAX
:evaluate_remote_response. I use UTF-8 in my pages, and my app
requires that I be able to, say, put Japanese characters in.
The problem is that when I switched this over to an RJS template it
started eating the encoding. I now get garbage characters where before
I got the correct ones.
The code for the RHTML:
<%=
2006 Aug 07
1
Unable to page.replace_html from rjs
I am having problems updating a div defined in a partial using both
Element.update and page.replace_html in an rjs. I can put a
link_to_remote in the partial using an :update, and the div updates
fine. Does anyone have any idea why this might be happening?
In the partial:
<div><div>
.
.
<div id="question_<%=question.id%>_error"></div>
.
(if a