Comments (7)
Hmmm, so I don't think we can really say that it works in all other browsers. In Safari, FF and Chrome at least, 2 document.write calls are getting through, so I'd be surprised if the ads actually work like this.
Out of curiosity, what are you trying to do here? Why are you loading Google ads this way?
from writecapture.
We do this way because we have a tag manager where we can choose which ads or tags are going to be loaded to the browser.
from writecapture.
Do you have a public URL where I can view the ads as they're supposed to work and one replicating the problem? I don't see the same errors as you.
from writecapture.
Yes. You may try this:
http://qatracking.clanteam.com/test_pages/browser/ads/tn_browser_ads_dc_publisher.php
Open that link to a Firefox with firebug installed for you to see the error message. And if you want to see what it will display when it has no error, open it to another browser such as chrome.
from writecapture.
I'm not getting the same results as you.
So in Chrome, I see the table but nothing happens. In Firefox, I see the table and an adsense add underneath. In Safari, the page is overwritten by the ad. There is too much going on here, can you simplify the page down to a minimal HTML file with only the bare minimum JS needed?
Also, what version of Firefox is this in?
from writecapture.
I made this html page that contains online the writeCapture call and includes the jquery and writeCapture js file.
Here is the link: http://animalianz.com/tntest.html
I'm using Firefox 3.6.8 with firebug installed. And to see the ad display, I'm using Chrome 4.0.249.43.
Hope this help you.
I really need help.I'm stock to this. Thank You.
from writecapture.
It's actually not working in Chrome either. The ad is overwritting the whole page. You see the ad, but all other content is wiped out. It looks like the latest Firefox has a problem with the script, which is why you see an error, but it's not working in any case.
Unfortunately, the adsense code is heavily obfuscated, so debugging this isn't really feasible. writeCapture can't be 100% compatible with everything out there, and it's possible that the Adsense code is specifically designed to prevent dynamic loading like this.
I've added a section to the README entitled "What to try when writeCapture fails". I think the iframe approach might work for what you're trying to do. If you do find a way to make writeCapture work, please let me know.
from writecapture.
Related Issues (20)
- Problem with writeCapture + Pointroll ads HOT 16
- TypeError in replaceWith (nolib-support.js) HOT 2
- Ads not respecting destination div#id and loading in the wrong place HOT 3
- Incompatible with AdSense/DFP? HOT 2
- Using writeCapture to change ads through a gallery HOT 1
- How Do I Install This Plugin? HOT 3
- Ad fails in IE with writeCapture HOT 7
- Fails with <script foo="bar"src="baz"> HOT 1
- Two ads on a page causing type error HOT 2
- el is undefined when calling the function before currents adds have finished HOT 1
- Wait to finish before next capture? HOT 3
- Ajax callbacks not firing properly HOT 8
- doXDomainLoad fails to make a network request HOT 1
- In safari 5.1 writeCapture dosent work properly HOT 3
- Problem in safari browsers & problem in working with writeCapture 2 HOT 1
- Ad load for specific ad format blocks other successive ads on page. HOT 1
- Error: no element in writen markup with id __ executing code: <proxyGetElementById - finish> HOT 1
- Ads code loading into wrong destination HOT 1
- Does not emulate document.write properly with Rich Ads HOT 2
- [enhancement] Add missing bower.json.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from writecapture.