iamnoah / writeCapture

Utility to assist the Ajax loading of HTML containing script tags that use document.write. Mailing List: http://groups.google.com/group/writecapturejs-users
http://iamnoah.github.com/writeCapture
Other
241 stars 38 forks source link

Having to repeat call to writeCapture twice in order to get ad to render #29

Closed jeromecovington closed 13 years ago

jeromecovington commented 13 years ago

Hi I'm having to repeat my call to writeCapture in order to get the ad to show up. (Snippet of code below.) If I do not call writeCapture twice, the ad does not show up.

function injectDartScript() {
    wrapper.writeCapture().html(script);
    wrapper.writeCapture().html(script);
}

function init() {
    wrapper = $('#dart-site-banner');

    getCookieParams();
    createDartScript();
    injectDartScript();
}
iamnoah commented 13 years ago

I can't really help you without knowing what 'script' is. A live URL demonstrating the problem would be ideal.

jeromecovington commented 13 years ago

Sorry about that, I thought might have been a known issue. I will put a demo together.

Regards, Jerome

On Aug 3, 2011, at 12:01 PM, iamnoahreply@reply.github.com wrote:

I can't really help you without knowing what 'script' is. A live URL demonstrating the problem would be ideal.

Reply to this email directly or view it on GitHub: https://github.com/iamnoah/writeCapture/issues/29#issuecomment-1719189

iamnoah commented 13 years ago

Please open a new ticket if you can get a working demo.

jeromecovington commented 13 years ago

Well it seems to be a result of using Hashsignal JS in conjunction with writeCapture, so a "working" demo has been hard to recreate. Maybe I will have some time for experimentation soon.

Regards, Jerome

On Aug 11, 2011, at 9:16 PM, iamnoahreply@reply.github.com wrote:

Please open a new ticket if you can get a working demo.

Reply to this email directly or view it on GitHub: https://github.com/iamnoah/writeCapture/issues/29#issuecomment-1787467