Weird Google Ads problem
Moderator: General Moderators
Weird Google Ads problem
When I've inserted google ads onto my website, I can see them in Opera and IE but however they are not visible in Firefox. I checked to see if some extension is causing this but then, there's nothing that is interferring. I don't know where to start looking for the problem. Any help please?
- WaldoMonster
- Forum Contributor
- Posts: 225
- Joined: Mon Apr 19, 2004 6:19 pm
- Contact:
- WaldoMonster
- Forum Contributor
- Posts: 225
- Joined: Mon Apr 19, 2004 6:19 pm
- Contact:
It is a good idea to first validate the page with:
Online: http://validator.w3.org/
Firefox plugin: http://users.skynet.be/mgueury/mozilla/
Online: http://validator.w3.org/
Firefox plugin: http://users.skynet.be/mgueury/mozilla/
Yes I've cleared the cache. Firebug says that there's an erro in Line 2 and gives me this thing when I put a breakpoint at show_ads.js
Code: Select all
undefined
c has no properties
[Break on this error] var K=document;function N(){var c=K.cookie,b=Math.round((new Date).getTime()/100...
show_ads.js (line 2)
1var input_red='input-warn';var input_green='input-ok';var input_ok_box='input-ok-content';var input_warn_box='input-warn-content';var img_blank='blank.gif';var img_tick='aff_tick.gif';var img_cross='aff_cross.gif';var uagent=navigator.userAgent.toLowerCase();var is_safari=((uagent.indexOf('safari')!=-1)||(navigator.vendor=="Apple Computer, Inc."));var is_opera=(uagent.indexOf('opera')!=-1);var is_webtv=(uagent.indexOf('webtv')!=-1);var is_ie=((uagent.indexOf('msie')!=-1)&&(!is_opera)&&(!is_safari)&&(!is_webtv));var is_ie4=((is_ie)&&(uagent.indexOf("msie 4.")!=-1));var is_ie7=((is_ie)&&(uagent.indexOf("msie 7.")!=-1));var is_moz=(navigator.product=='Gecko');var is_ns=((uagent.indexOf('compatible')==-1)&&(uagent.indexOf('mozilla')!=-1)&&(!is_opera)&&(!is_webtv)&&(!is_safari));var is_ns4=((is_ns)&&(parseInt(navigator.appVersion)==4));var is_kon=(uagent.indexOf('konqueror')!=-1);var is_win=((uagent.indexOf("win")!=-1)||(uagent.indexOf("16bit")!=-1));var is_mac=((uagent.indexOf("mac")!=-1)||(navigator.vendor=="Apple Computer, Inc."));var I'm sorry... I didn't mean it... THe page was displaying correctly in my window... Anyways sorry [s]abt[/s] about that...
[url=http://forums.devnetwork.net/viewtopic.php?t=30037]Forum Rules[/url] Section 1.1 wrote:11. Please use proper, complete spelling when posting in the forums. AOL Speak, leet speak and other abbreviated wording can confuse those that are trying to help you (or those that you are trying to help). Please keep in mind that there are many people from many countries that use our forums to read, post and learn. They do not always speak English as well as some of us, nor do they know these aberrant abbreviations. Therefore, use as few abbreviations as possible, especially when using such simple words.
Some examples of what not to do are ne1, any1 (anyone); u (you); ur (your or you're); 2 (to too); prolly (probably); afaik (as far as I know); etc.
- superdezign
- DevNet Master
- Posts: 4135
- Joined: Sat Jan 20, 2007 11:06 pm
Thanks but I didn't understand which div to change... 
Oh My God!
Its a problem of Google itself... I've got this information from my IPB customer area...
Oh My God!
Code: Select all
IPB strips the ability in Firefox to retrieve the cookies via javascript. This is done as an added protection against XSS attacks
that are presently unknown (in other words, we know of no current XSS attacks - however if one were to get through, this would prevent the
attack from being able to get your sensitive cookie data, which is typically the goal of an XSS attack).
Google is trying to access the cookies, which we prevent. Outside of Google updating their code, which is unlikely, there is little that
can be done.
The block of code that was previously posted in this report can be deleted entirely (the entire if statement and code inside it) - just
note that this added protection will be missing in Firefox. In IE it is not necessary, because IE supports the "http-only" flag. As of
version 2.0.0.5, Firefox also supports the http-only flag, so the javascript is a bit redundant for more recent versions of Firefox
anyways.