Displaying 3 results from an estimated 3 matches for "page_script".
Did you mean:
pagescript
2006 Apr 04
3
Keeping javascript in the <head>
Given that Rails has built in ways to do almost everything else :) , is
there a way to keep view specific javascripts inside the head tag of a
layout without having to include that javascript on every page?
--
Marlon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060404/65e9bb6d/attachment.html
2006 Jan 12
5
Ajax: Multiple Element Update
...however, the template that get''s rendered won''t know what elements to apply
the Effect too.
My second attempt was to use a Javascript call, like the following... but
don''t know the correct syntax to use to pull the elements modified from the
Form:
<% content_for("page_scripts") do -%>
function field_edited() {
var field = $(''field''); // how do i figure out what was
edited from the Form params ?
new Effect.Highlight(field);
}
Any insight into this would be great, as I''ve been stumbling over this for
quite some time n...
2006 Jan 23
16
Adding form fields (extending a form) on the fly
Hello,
I just can''t seem to find a way to extend a form dynamically in ROR.
Say I am writing a recipe website. There is one form to enter the
recipe. There is room for N number of ingredients (let''s say a text
field for each ingredient name and selection list for the amount). What
if the user wants to add more than N ingredients as he types them in?
how do I do this without