similar to: Do liquid templates play well with RJS?

Displaying 20 results from an estimated 20000 matches similar to: "Do liquid templates play well with RJS?"

2006 Jan 24
1
Liquid templates and RJS
Does anybody know whether Liquid templates can be combined with RJS ? -- Roberto Saccon - http://rsaccon.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060124/edeafadc/attachment.html
2006 Jan 31
2
Liquid templates and forms
I have started to experiment with Liquid templates and all goes fine as long as I just display my stuff. But I want to get user input (using forms), and I couldn''t figure out so far whether and how liquid facilitates the use of forms, something like the form helper tags in .rhtml. Anybody knows about that ? -- Roberto Saccon - http://rsaccon.com -------------- next part --------------
2006 Feb 15
9
Liquid - form helpers? multiple liquid templates?
Hi, Its taking me a long time to get my head around the Liquid plugin. I have a couple of questions which hopefully someone can help me with... - How difficult would it be to add some kind of Filter or Tag which would allow other Liquid templates to be included into the current Liquid template (eg. similar to render(:file => "filename") - How difficult would it be to add
2006 Jun 17
2
RJS templates - newbie
I am trying to test drive RJS templates in Rails 1.2. Here is what I did: create table categories (name varchar(255) ); rails RJSTest cd RJSTest rake update_javascripts script/generate controller home index add script/generate model category Note: When I did a rake update_javascripts, I did not see any output. I configured database.yml to talk to mysql. Next I wrote
2006 Jan 29
2
GetText and rjs templates?
hi, is it possible that gettext don''t work with rjs templates? i''ve just tried this simple example blog_controller.rb : class BlogController < ApplicationController def index end def dosomething end end index.rhtml : <html> <head> <%= javascript_include_tag :defaults %> </head> <body> <div id="test">Some text to change
2006 Jun 26
3
RJS Templates with dynamic id names
Due to the use of partials, I''m trying to dynamically generate the ids being affected in an rjs template, but I can''t seem to get the syntax to work. Basically, I need to do the equivalent of this from the .rhtml template: page.show ''mything<%= @thing.id %>'' No joy there. Apparently RJS templates don''t work with embedded ruby. So I tried:
2006 Jul 29
0
RJS templates, Safari 1.3
Hello, I''m having a problem getting RJS templates working with Safari 1.3 (latest version available to OS X 10.3 and earlier). I''m using Rails 1.1.4, running on either linux or OS X.. same results. My RJS pages work fine using Safari 2.0, IE and Firefox.. just not Safari 1.3. The twist is that the following RJS sites work fine in Safari 1.3: http://depot.iamjp.com/demo
2006 Mar 31
3
RJS templates outputting bloated code?
I''m an RJS newbie. I just did the tutorial at http://www.codyfauser.com/articles/2005/11/20/rails-rjs-templates, and then used wget to look at the output the RJS template generates. This is what I got: try { new Insertion.Bottom("list", "<li>Fox</li>"); new Effect.Highlight("list",{duration:1}); Element.update("header", "RJS
2006 May 04
1
Ajas Scaffolding and RJS Templates the same thing?
Hey all, I''m just starting in rails and am working on my first app. I need to do inline editing for 2-15 rows of data on a page. I found Ajax Scaffolding here: http://www.ajaxscaffold.com/ And it is EXACTLY what I want in my app. But I''ve also been trying to read a bit up on RJS Templates. Are they basically the same things except RJS is built into rails or is the
2005 Dec 19
1
Question about rjs templates
Hi everyone I read some support about rjs templates at http://www.codyfauser.com/articles/2005/11/20/rails-rjs-templates but when i download the rails1.0, i could not find the code in http://dev.rubyonrails.org/changeset/3078 ,and i also could not find the file actionpack/test/fixtures/test/delete_with_js.rjs is something wrong with me.thanks for your answers. -- Posted via
2005 Dec 31
9
RJS Templates not conducting callbacks
I''ve run across a weird problem with RJS that I''m trying to figure out: I have an application that was running 0.13.1 that I recently upgraded to Rails 1.0. I wanted to use RJS templates, so I installed the plugin and updated my prototype javascript file via ''rake update_prototype.'' I attempted to test the templates out via the following code, but the AJAX
2006 Feb 08
3
Using shared RJS templates
I''ve got an action in my application controller that needs to call a shared RJS template. Typically it''s actually being called by subclasses of the application controller. I''ve tried this.. def action ...code.. render :partial => "shared/template" end with ''_template.rjs'' existing in the shared folder. The problem that crops
2007 Apr 10
0
Change in default xml, rjs respond_to templates that Rails looks for on edge Rails
Not sure if this is the right avenue to discuss this but I couldn''t find anywhere to ask this question on Rails Trac. Regarding this latest changeset: http://dev.rubyonrails.org/changeset/6507 (Change default respond_to templates for xml and rjs formats.) Does anyone know the rationale behind it? I can imagine there would be an announcement in the future about this backward
2006 Aug 18
3
RJS templates for DOM manipulation
I want to do some DOM manipulation with JavaScript. Specifically I want to implement zoom in/out in a picture by changing it''s width/height attributes. Is it possible to do this using RJS or should I write javascript by hand? All the examples of RJS I''ve seen write the javascript in the result of an AJAX remote call. Where are the docs for RJS? All I''ve seen are blog
2005 Dec 15
0
RJS Templates and the Replace semantics
I have an issue with the way replace_html works in an RJS template. This is a copy of a post on my blog (http://blog.craz8.com <http://blog.craz8.com/> ) that describes the problem and my working solution to the problem. If I have a collection of things that are output like this: <div id="things"> <% @things.each do |thing| %> <%= render :partial =>
2006 Feb 18
2
Effect queues with RJS templates and scriptaculous
Hi. I was wondering if it''s possible to combine effects for individual elements with RJS templates. I notice that scriptaculous has support for a concept called effect queues (http://www.railsdevelopment.com/2006/01/15/effectqueue/). Is there anyway to use these queues from rjs?
2006 Jan 09
2
Using RJS templates with observe_form
Hi there, I''ve been checking out RJS templates, and have been trying to use them with the observe_form helper. However, the form values are no longer being passed in the params (as soon as I point the action to the non-rjs and add the ''update'' clause everything is working again). Is this expected? Cheers, Dave -------------- next part -------------- An
2006 Apr 21
1
Simple debugging solution for RJS templates
I know I love the new RJS templates but the one annoying thing is that I don''t get the nice Rails error pages anymore when something goes wrong. I wrote up an article with a code snippet for fixing that. Hopefully it will help out some of those as frustrated as I was. http://www.height1percent.com/articles/2006/04/21/improving-debugging-for-ajax-and-rjs -- Posted via
2006 Jun 19
1
RJS Templates
I have a page that when a form gets submitted, I use page.insert_html to stick a div in another div. The problem is, when I want to refernce it later on, the IDs are not unique. So to get around this, I concatenated the id of the item to the end of the div name. Which is fine. I did the same in the RJS template as well, but it''s not finding that div. I tried it with string
2006 Feb 08
3
RJS templates before, during and after
RJS templates are nifty. They let you put all sorts of fun effects all over your bland html pages without too much work. The link_to_remote function also lets you run scripts before, during, and after an AJAX call is run by using callbacks. There does not seem to be an equivalent method for running an RJS template before or during an action. Rendering it at the end is no problem. One