Re: TypeError: html has no properties

Glen
Thu, 16 Aug 2007 16:46:48 -0000

It should still be there.  At this point in the application that div
has been updated at least twice but I don''t use replace anywhere.

Is there a way to pass data forward so that I could test with
rendering a partial?  I would need to set the @report variable again
somehow for the partial.

On Aug 16, 10:35 am, William Pratt
<bi...-YbheRAKfYF4eIZ0/mPfg9Q@public.gmane.org>
wrote:
> To clarify, look at you source html and make sure there is an element on
> the page that has ''body'' as it''s id. i.e.:
>
>
>
>
> William Pratt wrote:
> > Typically that means that there is not an element on the page with
that id.
>
> > Glen wrote:
>
> >> I''m trying to update a div after form submission, for
some reason it
> >> is dying on this line:
>
> >> render :update do |page|
> >>   page[:body].replace_html :url => body_report_show(:id =>
> >> params[:report_id])
> >> end
>
> >> I get an alert window that says
>
> >> RJS error:
>
> >> TypeError: html has no properties
>
> >> Help??
>
> --
> Sincerely,
>
> William Pratt
>
> http://www.billpratt.net
> bi...-YbheRAKfYF4eIZ0/mPfg9Q@public.gmane.org