dalupus
2011-May-06 14:28 UTC
only stuff inside of a form display when post a jquery dialog
Hi,
So I open a little test jquery dialog to do some stuff but the thing
is only stuff within a form actually show.
For example my code for the page that is rendered is:
<h2>hello PRE </h2>
<%= form_tag close_now_escalation_path, :id =>
''close_escalation'' do
%>
<h2><%=@escalation.id%></h2>
<h2>hello POST</h2>
<%= submit_tag ''close'', :class =>
''submit'' %>
<% end %>
when it gets called using
$(''a.popup'').click(function() {
$(''<div
/>'').appendTo(''body'').load($(this).attr(''href'')
+ ''
form'').dialog({
title: $(this).text()
})
return false;
only the hello POST displays.
I am at a loss on this one.
Thanks,
Dal
--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.