RJS/link_to_remote error

Hi Joe,

Joe Smith wrote:

page.replace_html("ftp_div" , :partial => "list_files" ,
:object => @list)

So basically, the user should be able to click on the
directory and the directory listing should be updated
without a page refresh. Instead I get this error when
click on one of the links:

RJS error:

TypeError $(element) has no properties

I think it's trying to tell you it can't find a unique DOM element with that id. One thing you might check is to ensure that the tag <div id='ftp_div'> appears once, and *only* once, in the html page you're producing.


Joe Smith wrote:

I changed it and all is well. Thank you for your help.

Congrats and you're welcome.

Best regards,