Displaying 4 results from an estimated 4 matches for "somediv".
Did you mean:
somedir
2005 Jul 16
0
Safari Crash with prototype/success callback interaction
I just tracked down a problem I was having with Safari crashing. Given
a form_remote_tag call, I was calling Element.hide on a block that was
being returned via the ajax call, from the success event.
ie form_remote_tag(:url=>..., :update=>''somediv'',
:success=>"Element.hide(''somediv'');") where somediv was returned via
the form.
This causes Safari to crash when the form is submitted by the keyboard
(pressing Return), but _NOT_ when the form is submitted via clicking on
the submit button with the mou...
2006 Jul 17
1
RJS and PeriodicalUpdater -- example?
In a controller, I''m trying to do
def do_some_periodic_thing
render :update
page << ''var foo = new Ajax.PeriodicalUpdater("someDiv",
"/some/path", {asynchronous:true, frequency:1, evalScripts:true} );''
end
end
In the view, I have
<%= link_to_remote "Test Periodical", :url => { :action =>
"do_some_periodic_thing"}%>
But according to the log, /some/path never gets ca...
2011 Jul 22
0
Asset Pipeline and Sprockets
...sset_path tag.
What I have so far is this. Im my application.css.scss I have the
following.
*= require_self
*= require layout
*= require home
This works fine with using the asset_path helper and variable within
layout ie,
// layout.css.scss.erb
$main-color: #cccccc;
.somediv{
background: url(''<%=asset_path "small-avatar.gif"%>'') no-repeat;
color: $main-color;
}
But now in home lets say I want to use the variable from my layout.
// home.css.scss.erb
.another-div{
color: $main-color;
}
I get error....
2006 Apr 26
8
Newbie: Hide div I''ve just show using link_to_remote?
I''m using link_to_remote to show details for an item that''s clicked. I''d
like to hide the div with the next click, or alternatively have a "Hide"
link within my div.
What is the best way to accomplish this?
Here''s my existing code:
<% for task in @mytasks %>
<div class="rowFormat">
<%= link_to_remote(