drupal程序视图块输出故障

I am attempting to load some pages within my latest dynamically via AJAX.

To this end, I am experimenting with load my views generated block programmatically. By default, the block contains images carouselling around using the views slideshow plugin.

I am using the following code snippet:

<?php
        $view       =   'pagetopimage';
        $block_id   =   'block_1';
        $args       =   array(32);
        print views_embed_view( $view, $block_id, $args );
    ?>

Here's the problem: using the code above, the block gets printed but the carouselling effect is broken.

Can anyone help by suggesting a fix for this problem?

Thanks.

to load the file when it's in the modules place, use:

drupal_add_js(drupal_get_path('module', 'your_module_name') .'/daFile.js');

to load in general (starting from the install root), use:

drupal_add_js('misc/ajax.js');

drupal_add_js is very powerful, see yourself ..