Wednesday, February 29, 2012

Re: How to load an external JS-file without calling a function in there

If you know the size of ad ahead of time then iframe?

On Wednesday, February 29, 2012 1:14:35 PM UTC, newnoise wrote:

I'm trying to dynamically add advertisement to our page. Our
advertisement-partner provides us a script which we have to include
like this:
<script type="text/javascript" src="

The output.js just contains one line of code like this:
document.write("<div>some html</div>");

I have no idea how I can add this JS to the page and make it
execute ... I tried just adding it as a HTML-Widget, which correctly
adds the code, but it isnt executed. Also the ScriptInjection doesnt
help, because I need the code somewhere in the <body> and not in

I'm happy for any help!

You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit
To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group at

No comments:

Post a Comment