I a using a jQueryUI dialog box which renders very well html code

search.html.haml =====
- content_for :main_content do
#content
= form_tag query_plan_day_meals_path(:plan_id => @plan, :day_id =>
@day), :remote => true do
#error_messages{:style => "display: none;"}
.... form fields

I am now trying to render a javascript block given by our partner

search.html.haml =====
- content_for :main_content do
#content{:style => "width:300px;"}
= render :partial => "myscript"

_myscript.html.erb
<script src="http://platform.fatsecret.com/js/?
key=xxxxxxxxxxx&amp;auto_load=true"></script>


the dialog form is open correctly, but the script is not rendered in
it .. ( #content div is empty)
and no error message .. no request to this url...

why I am wrong ?
thanks for your feedback



--
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@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouprubyonrails-talk @
categoriesrubyonrails
postedNov 3, '11 at 6:54p
activeNov 3, '11 at 6:54p
posts1
users1
websiterubyonrails.org
irc#RubyOnRails

1 user in discussion

Erwin: 1 post

People

Translate

site design / logo © 2021 Grokbase