Displaying 7 results from an estimated 7 matches for "update_page_tag".
2008 Mar 17
9
Render index view and RJS on load?
Hi,
I''ve searched for a while online and been unable to find anything
concerning this.
I have a controller with an index action, which has an index view.
This view renders the index page but also needs to execute some
javascript to show some data (using effects) when the page loads. I
thought I could just create the view and RJS with the same name and
the RJS would be run after the
2006 Apr 07
6
Multiple view types for a single action?
Is it possible to have more than one kind of view for a specific action,
for example an .rhtml and a .rjs file to handle the view for the same
action?
I suspect not, but this makes me wonder if there a way to call the .rjs
file from within the .rhtml so the statements within it get executed?
Thanks,
Andy
2006 Jul 24
2
BIG JS limit? Using replace_html with partials containing JS
...9;'order_part'',
:url=> { :id=>@order.id, :action => ''order_update''}
%>
<%= render :partial=>''order_form'' %> </p>
<%= submit_tag ''Modify'' %>
<%= end_form_tag %>
<%=
update_page_tag do |page|
page.delay(2) do
page.visual_effect :fade, ''order_message''
end
end
%>
<%=update_page_tag do |page|
page.replace_html ''order_lines_part'',
:partial=>''order_lines_index'',...
2006 May 17
4
.rjs templates undesiered output problem
Hello everyone, I am working with rjs templates in rails, and I''m amazed
of how simple it is to generate code with ajax, however I''am having some
troubles and I can''t seem to find a way to solve''em.
Whenever I put some code in the template, let''s say:
page.visual_effect :highlight, ''sitio37'', :duration => 3
I get the
2010 Sep 15
5
Hide an image in show.html.erb
...t;/p>
<p>
<b> Name </b>
<%= @dicom.name %>
</p>
<p>
<b> Image </b>
</p>
<p>
<%= image_tag @dicom.photo.url , :id => ''dicom_image'' %>
</p>
<%= javascript_include_tag "coordinate" %>
<%= update_page_tag do |page|
page << "drawLine();"
end
%>
<%= update_page_tag do |page|
page << "drawImage();"
end
%>
<%= link_to ''Edit'', edit_dicom_path(@dicom) %>
<%= link_to ''Back'', dicoms_path %>
--
Posted via http://www.rub...
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
2006 Dec 05
5
Render :update and script tags
Hi All!
I''m kind of new o ruby so please apologize my stupid questions on
advanced...
I''m using
render :update do |page|
page.replaca_html :element , :partial => ''apartial''
end
This is working well, since I see in the page the following code:
try
{
Element.update("element", "");
} catch (e)
{
alert(''RJS