Hi All, I''m trying to add a marker with an info_window on my map in a rjs request using a partial. ---- new.js.rjs ---- marker = GMarker.new([@bar.lat, @bar.lng], :info_window => render (:partial => "/foo/bar", :object => @bar)) page << @map.record_global_init(marker.declare(''new_bar'')) # declare js variable page << @map.overlay_init(marker) page << @map.record_init("new_bar.openInfoWindowHtml(\"# {marker.info_window}\");\n") ----end new.js.rjs ---- ----_bar.html.erb---- hello ----end _bar.html.erb---- The above works fine. However if I add a new line or other html to my partial the marker and info_window do not appear. ----_bar.html.erb---- hello there ----end _bar.html.erb---- All the examples I could find use very simple text for the info_window contents. Any help would be greatly appreciated. Thanks. --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---