Displaying 20 results from an estimated 600 matches similar to: "in place edit, save on blur"
2006 Apr 30
4
renamed partial won''t render?
hi all
this works
<%= render :partial => "admin/works/work", :collection =>
@artist.works %>
but this doesn''t
<%= render :partial => "admin/works/worklist", :collection =>
@artist.works %>
even though the partial _work.rhtml and _worklist.rhtml are identical.
worklist.rhtml throws
undefined local variable or method
2006 Jan 24
2
webrick and in_place_editor_field
I''m having a strange problem with webrick spinning forever. I have a
view ''list'' that renders a collection:
<%= render :partial => ''item'', :collection => @items %>
The item partial looks like so:
<div id="item_<%= item.id %>">
...
<div id="price">
<%= in_place_editor_field :item, :price
2006 Apr 28
4
can someone help DRY a noob? thanks...
hi all
i''m trying to pass a variable name right round the block and need a hand
to ease my aching brain.
##in my sidebar i have
<li><%= SidebarItem(''catalogue'') %></li>
<li><%= SidebarItem(''provenance'') %></li>
<li><%= SidebarItem(''status'') %></li>
##linked to a
2006 Feb 06
1
template choice error (layout.rb)
Hey,
I installed the rjs plugin yesterday and started using it for one set
of views. Today I notice that in an entirely separate
controller/template I''m seeing this error:
TypeError (can''t dup NilClass):
/vendor/plugins/javascript_generator_templates/lib/add_rjs_to_action_controller.rb:41:in
`dup''
2006 Jan 25
2
inserting column headings between grouped rows
Hello all,
I have what is conceptually a pretty simple poblem, but can''t think of
an obvious solution. I have a group of objects (@items), that I wish
to render as rows. Items have dates, and I wish to group them by that
date, inserting a header row each time the date changes e.g.:
header row
row 11/11/2004
row 11/11/2004
header row
row 11/23/2004
I''m currently
2017 Jun 08
2
regular expression help
Dear All,
My query is:
Do we always need to use perl = TRUE option when doing ignore.case=TRUE?
A small example :
my_text =
"RECOVERY OFFICER-II\nDEBTS RECOVERY TRIBUNAL-III\n RC No. 162/2015\nSBI
VS RAMESH GUPTA.\n Dated: 01.03.2016 Item no.01\n
Present: Ms. Sonakshi, the proxy counsel for Ms. Usha Singh, the counsel
for ARCIL.\n None for the CDs.\n
2006 Apr 03
6
problems with Rails 1.1 observe_field :with serialized
I''d like to use observe_field to watch a field, and then when it changes
send the entire form to the server. I had been using
<%= observe_field ''entity_name_''+@account.id.to_s, :frequency => 0.5,
:update => ''auto_complete_''+@account.id.to_s, :url =>
{ :controller => ''committees'', :action=>
2007 Aug 20
3
Contribution on extending createElement
Hi all,
I work a lot with scripts that modify the DOM, and I have always found
quite annoying that the code would always get very verbose as soon as
I wanted to create even simple structures :
var my_div = document.createElement(''div'');
var my_anchor = document.createElement(''a'');
my_anchor.setAttribute(''href'',my_link);
var my_text =
2006 Apr 06
4
problem with IE
hello there, im having a little problem with Internet Exploiter, im doing
this:
//// CODE ////
var m = $(''XYZ'').cloneNode(false)
m.setAttribute(''id'', ''XYZ_2'');
m.value = '''';
var onblur = "alert(''hola'');";
m.setAttribute(''onblur'', onblur);
2008 Apr 09
13
submitting an ajax form via javascript not rendering
for some reason the controller is parsing everything fine, but the
return is a page instead of code execution. I have other ajax forms no
listed that are also running fine on this same page.
there are supposed to be 3 ajax events:
onblur event that calls a function to submit - doesn''t work.
There is a submit button at the end of the form - works
there is a delete image that removed the
2009 Oct 29
4
manipulating form
Hi,
I work with forms and i won''t to set a name for a form to use
javascript functions..
How can i do
Thanks
2017 Jun 08
0
regular expression help
Zitat von Ashim Kapoor <ashimkapoor at gmail.com>:
> Dear All,
>
> My query is:
>
> Do we always need to use perl = TRUE option when doing ignore.case=TRUE?
>
> A small example :
>
> my_text =
> "RECOVERY OFFICER-II\nDEBTS RECOVERY TRIBUNAL-III\n RC No. 162/2015\nSBI
> VS RAMESH GUPTA.\n Dated: 01.03.2016 Item no.01\n
> Present:
2005 Oct 05
5
InPlaceEditor crash on Safari
Quick question..
I often crash my Safari when using ''Enter'' on InPlaceEditor''s for
submitting.
Works fine on firefox(win & Mac) - no javascript errors.
Anyone else seen this behavior?
(Maybe it is just my alterings of InPlaceEditor :-)
Best Regards
Michael Krog
2006 Mar 16
3
This is driving me crazy!!!
I have the following code but it keeps on giving me this error when it
runs.
--- Error: this.alertBox has no properties
What would be causing this? My Code checks out when I call
this.alertBox() from the setup function it works fine but when I try and
put in on an event observer it doesn''t work.
What do you guys think?
Thanks,
Jon
Code Here:
var Updater =
2006 May 11
3
Textile/RedCloth and h() incompatible?
If a user enters the Textile-based code for an image, say:
!>graphic.png!
the textile() method will successfully render a right-float image. Now,
if I want to escape the user''s text using h(), the ''>'' is turned into an
&. Obviously, the image then fails to render in a browser. Is there
a work around for this?
I guess what I''m really asking
2006 Apr 20
1
The Autocompleter, with scrollable result-div
Hi everyone
If you''ve seen this ticket, http://dev.rubyonrails.org/ticket/4782,
you''ve noticed I have tried to make scrollable autocompleter work. The
scrollIntoView works great, however the iframefix for IE didnt work in
the previous change. This is fixed now.
Also the "blur-on-scrollbar-click" should not work in both IE and
Safari (can someone confirm this?)
It all
2009 Feb 15
2
text_area_tag not escaping content by default
I stumbled on the fact that text_area_tag does not HTML escape its
content by default. For example:
text_area_tag "body", "</textarea><script>alert(''xss'');<script>"
If you try that, you''ll see that the content is inserted literally.
Considering the fact that the tag helpers all encode their attribute
values by default, does this
2006 Jan 10
6
Can we cache user home pages?
Hi Railers,
I am trying to create a simple application like a guest book which has users
and uses sessions to keep track of
which users are logged on. The user''s page is constructed after doing some
SQL queries and the user clicks on another link and hits the back button I
dont want to regenerate the whole page (which is what happens now) .So I
want to use some kind of caching mechanism.
2005 Dec 28
3
acts_as_taggable query
Hi ,
I couldnt find any mailing list for this nice plugin so I hope this is not
off topic.I just have a basic question here.
I already had created a table and a model for the tags and items and the
join table and now want to use this plugin but I just cant seem to figure
out how to make it use my table instead of the default.
class Tag < ActiveRecord::Base # already exists and has the
2006 May 22
6
how HTML_Option works?
Hi all,
all the form helpers can take a serie for options but I cant find any
documentation about them. Any one can point me toward one?
Or at least tell me how I can for example add a function that would be
call with the onblur event from a input box?
Thanks!
--
Posted via http://www.ruby-forum.com/.