The .live event may be what you're looking for.

http://docs.jquery.com/Events/live#typefn

On Apr 3, 4:38 am, neville34 <nevill...@gmail.com> wrote:
> hey
>
> I am having trouble applying thckbox and other scripts to newly
> created objects which are created when an ajax call is made. i think
> the problem is because thckbox is applied in the document.ready
> function and the new elements are not present at the time is there any
> way to reapply thckbox and other scripts to newly created objects
>
> //thick box set in header
>
> <script>
> $(document).ready(function() {
>   $('a[rel*=facebox]').facebox()})
>
> </script>
>
> //then an ajax call is made and a table returned however the new rows
> arnt  connected to thickbox like they //should be
> function update_NewOrder(){
>         $.post("modules/ecommerce/inc.table-NewOrders.php", {}, function(data)
> {
>         $("#ecom-home-newOrder").empty();
>         $("#ecom-home-newOrder").append(data);
>
> });
>         return false;
> }

Reply via email to