Yes, true, I wrote it wrong on the post. But the problem stays. Every
time I call a $.get or $.ajax it loads the page. When the settimeout
time reaches, the page reloads with only the banner, no other content.


On Sep 25, 11:23 pm, ricardobeat <[EMAIL PROTECTED]> wrote:
> there is no $(document).write() function, I think you mean $
> (document).ready() right?
>
> On Sep 25, 12:43 pm, Ditikos <[EMAIL PROTECTED]> wrote:
>
> > Hello,
>
> > I am trying to implement a code that will load a banner zone from
> > openx (openx.org), AFTER the rest of the site loads. I have the
> > invocation code (either javascript or php) but when I am calling the
> > code from a local file, for example testban.php (the php version), The
> > page loads but when it comes to load the banner it redirects to the
> > banner, instead of loading the banner to a div.
>
> > My Code is as follows:
>
> > on the $(document).write(function() {}); block I have included a
> > setTimeout("loadBanner()",1000); function, as the last line before
> > bracket closing.
>
> > immediately after the block ends, I declare my function as follows:
>
> > function loadBanner()
> > {
> >  $("#banner").load("testban.php");
>
> > }
>
> > testban.php has the banner fetching code only.
>
> > The fetching banners have a <script type="text/javascript"></script>
> > declaration on them. Is this responsible for the new page opening?

Reply via email to