Re: TypeError: html has no properties

William Pratt
Thu, 16 Aug 2007 16:35:04 -0000

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??
>>
>>
>>
>>
>>