>From PHP (or whatever language you're using..):

$my_array['script'] = '$(document).ready....';
$my_array['html'] = '<div id="my_div">blabla...</div>';

die(json_encode($my_array));

>From javascript, the function called on ajax success:

function return(msg)
{
   $('#foo').html(msg['html']);
   eval(msg['script']);

}

This is just a way to do it... Maybe not the best, but I hope you'll
get the idea...
On 7 mai, 14:21, vimal <[EMAIL PROTECTED]> wrote:
> i already have a base javascript file containing $
> (document).ready()......
>
> but i am loading a content using ajax into a div container
> for those items i just need to load a js file with a $
> (document).ready()....
>
> can any one help me....
>
> regards
> vimal das

Reply via email to