If the script being loaded from banners.php uses document.write you're
out of luck, it's not going to work. You have to change it to use a
proper DOM manipulation methods.

- ricardo

On Jan 9, 8:54 am, ChristophN <christ...@uddebo.net> wrote:
> Hi there,
>
> I tried to use the AJAX load or get-functions to receive output from a
> file
> banners.php, that creates mixed javascript and html, and tried to use
> this
> output for placing into a div named banners, e. g. via
>
> $("#banners").load("banners.php")
>
> to be sure that all jquery submit- and click- functions really work
> before
> all banners are going to be loaded (which won´t be the case without
> the solution
> above) through the banner-management, OpenX.
>
> However, the above does not work, the output is behaving very
> strangly,
> moving the browser to an empty page only showing the banners. Can´t
> either
> make this work with getScript either, as the output from the remote
> file,
> banners.php, will not only contain javascript, but also html,
> generaded by OpenX.
>
> Alerting the data returned from banners.php shows me the code
> correctly, but not when it´s placed into a DIV with id #banners.
>
> Any ideas on how to solve this?
>
> Cheers,
>
> Christoph

Reply via email to