Coder Social home page Coder Social logo

Problem with Firefox. about writecapture HOT 7 CLOSED

bbaruela avatar bbaruela commented on August 16, 2024
Problem with Firefox.

from writecapture.

Comments (7)

iamnoah avatar iamnoah commented on August 16, 2024

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.

bbaruela avatar bbaruela commented on August 16, 2024

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.

iamnoah avatar iamnoah commented on August 16, 2024

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.

bbaruela avatar bbaruela commented on August 16, 2024

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.

iamnoah avatar iamnoah commented on August 16, 2024

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.

bbaruela avatar bbaruela commented on August 16, 2024

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.

iamnoah avatar iamnoah commented on August 16, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.