|
In my Grails controller I'm responding to an AJAX call and using render to return the text:
def ajaxRandomPersonName = { def person = get a random person ... render "Name: ${person.name}" }
The problem is that render renders the whole template. So instead...
Started by Steve Kuo on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
I believe doing render foo and render your response with:
render [text:"Name: ${person.name}"] as JSON
Resolved: Adding contentType results in the template not....
We've found that explicitly returning false from the action fixes this .
|
|
I'm running the latest Rails 2-3-stable branch (currently 2.3.3).
I'm using JQuery to post an AJAX request to my 'create' action, in which I have the following block:
respond_to do |format| format.js end
I have created create.js.erb and to test this action...
Started by Olly on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Http....
The following ticket shows the bug logged a few versions back, as well as a way to define the behaviour as default .
My memory of Ajax on Rails books is that this was the standard if not necessarily expected behaviour in earlier editions of rails .
|
|
I use XML and XSLT in my current project and I would like to know if it's good to let the browser render the XML into HTML with stylesheet instead to use something like the PHP xsltprocessor.
One main reason I use the Browser xslt processor is to allows...
Started by Steve Thomas on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
If you transform on the server and pass down html ... .
If you rely on the browser you may see slight differences in the rendering engines in different browsers.
I recommend doing the transformation server-side because you have more control over it .
|
Ask your Facebook Friends
|
I have a partial for a "guest" object which renders a link to a destroy action like this:
<%= link_to_remote "remove", :url => { :action => "destroy", :id => guest.id } %>
When called from an ERB view it works fine, e.g.
<div id="guests...
Started by Luke Sampson on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Links are designed, by HTTP specification....
Allow me to explain.
You were doing it almost right, but you're not quite following convention .
I renamed the destroy action to delete instead and it works fine .
Turns out "destroy" has special meaning in Rails.
|
|
I'm working with a Web Application and it's currently rendering in Quirks Mode. My feeling is that we should change this to use Standards Mode.
If were make this change there will be some pain in the short term as I would expect some of the pages that...
Started by Dave Webb on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
2) Standards mode produces a more reliable rendering of the content, which is important for cross user-agent compliance with....
Here are the benefits to standards mode:
1) Correct and accurate code is easier to maintain among a group of developers .
|
|
I'm trying to create a newsletter standard for our org and having problems with Outlook rendering the text too large.
Here is the css section of the page
body { margin: 0; padding: 0; font-family: Arial, Helvetica, sans-serif; font-size: 75%; background...
Started by Nonick on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
In div's considering it's a basic template, refered to the ID's of the divs in order to render, worked.
|
|
I'm currently building the Admin back-end for a website in ASP.NET MVC.
In an ASP.NET MVC application, I've started using the 'EditorFor' helper method like so:
<div id="content-edit" class="data-form"> <p> <%= Html.LabelFor(c => c.Title...
Started by jonathanconway on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Like this:
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<System.XML.Linq.XElement>" %> <textarea id=....
You should be able to pull out the desired ID from the ViewData.TemplateInfo.HtmlFieldPrefix property of the view .
|
|
Hi guys,
this might seem like an obvious question but hear me out.
I kinda always "new" that render passes don't add render time, except maybe additional AO pass or Velocity as they may require more calculations than the clean beauty pass.
And maybe some...
Started by kaczorefx on
, 15 posts
by 5 people.
Answer Snippets (Read the full thread at vfxtalk):
Then see how the render time is affected by multiple combinations of passes....
Add the basic passes (diffuse, lighting, shadows, specular, GI) and see how long it will render now and see what the time difference is, then beauty+spec, etc...
|
|
Hi, to maximise my work flow, and minimise time (waiting for my computer to respond!) can you suggest which is better and why ?? I have a PP project with a few sequences, one of which was replaced with an AE comp. The AE comp using some heavy effects ...
Started by Jonny Webb on
, 16 posts
by 4 people.
Answer Snippets (Read the full thread at creativecow):
In this way, you get the benefit of using an underlying computed render controlling where that ....
If you right click the comp and choose make a proxy, simply set the render settings as if you were doing a full quality render.
|
|
Eg h:inputText will render a "input type='text'". What jsf tag can render a "div" tag?
Answer Snippets (Read the full thread at stackoverflow):
<h:panelGroup....
However, if you specify layout="block" , then the component will be a DIV in the generated HTML code .
By default, the <h:panelGroup/> will generate a SPAN in the HTML code .
You can create a DIV component using the <h:panelGroup/>.
|