Forum: Ruby on Rails replace_html adding observe_field gives non-fatal error

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
8e7e5b934fcbcdfb475072685755457f?d=identicon&s=25 Taylor Strait (taylorstrait)
on 2006-12-29 09:35
Using this function:

    render :update do |page|
      page.replace_html 'state_options', :partial => 'state_options'
      page.replace_html 'city_options', :partial => 'city_options'

on this partial:

<div id="state_options">
    <select name="state_id" id="state_id">
    <%= options_from_collection_for_select(@states, :id, :name) %>
          <%= observe_field "state_id",
               :url     => {snip!}
               :with    => "state_id",
               :update  => "city_id" %>

generates an "Illegal Character" error in the Firebug java console.
However, my application still runs fine.  Without Firebug, the user
would never know.  This seems to be a result of dynamically adding a
field observer.  Is there any reason I should be concerned about this?
This topic is locked and can not be replied to.