Hi, Mohan,

If the script is external, you can use the jQuery.getScript() - or simply
$.getScript() -, and pass the script URL as the first argument, inside the
$(document).ready callback.

If it's internal, you can use container$object.append('<script
type="text/javascript">/* their script here */</script>').

Hope it's usefull,

Diogo



On Mon, Dec 22, 2008 at 10:21 AM, mohan <[email protected]> wrote:

>
> Hi,
> In my application, I have some ads which are from other sites.
> They gave us the Javascript to display their ads. Its taking time to
> load the entire page, because of their ads.
> So I am trying to load their script after loading the page.
> How can i do this?
> Can anyone help me.
>
> Thanks,
> Mohan
>
> >
>


-- 
Diogo Baeder
http://www.diogobaeder.com.br

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery Development" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/jquery-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to