Thanks. That sounds like a reasonable solution. My javascript skills are apparently a bit rusty :)
Would you think this behavior would be a good feature for the update_element_function to perform? Tom On 12/6/05, Douglas Forrest <[EMAIL PROTECTED]> wrote: > Bracket it with a try..catch block and leave the catch block empty... > > Tom Davies wrote: > > >I am using the update_element_function to update the text in some > >elements. This works fine, however, if I try to update an element > >that is not on the page anymore, it fails silently and no further > >javascript statements will be executed within that same > >request.responseText. Is there a way to fail gracefully in this > >scenario and ignore the missing elements? > > > >Thanks, > >Tom > >_______________________________________________ > >Rails-spinoffs mailing list > >[email protected] > >http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs > > > > > > > _______________________________________________ > Rails-spinoffs mailing list > [email protected] > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs > _______________________________________________ Rails-spinoffs mailing list [email protected] http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
