web developing
11 Jun
Well if both style=”border:[0|none]” is working and border=”0″ attribute doesn’t help, and all this is not working only on IE, the solution is …
frameborder=”0″ attribute
<iframe frameborder=”0″ … ></iframe> is helping
10 Jun
Recently I wrote an article about the Google Adsense problem with page load blocking and than the solution was simple and elegant. You must put your ad in a separate .html file and to include it into your page with an iframe. That gives the page the ability to “breath” and to load faster.
You can see the entire article here.
Yes as usual every browser loaded the iframe correclty, except … Read the rest of this entry »
10 Jun
Everyone dealing with Google Adsense knows how it looks like as JavaScript code. When you register, apply and receive the code chunk, you receive actually an inline chunk of js describing the width and height of the code and the key, uniquely identifying the page ad and an included javascript file.
<script type="text/javascript"><!-- google_ad_client = "pub-9858850710257888"; /* 250x250, google ad 09-5-19 */ google_ad_slot = "0062396170"; google_ad_width = 250; google_ad_height = 250; //--> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.co/..."> </script>
The problem with the page load is that inline scripts included somewhere in the page, the case with adsense is just like that, blocks every page load until the script is executed. Of course when you’ve two or three ads somewhere in your page that causes huge delay of page load. Sometimes that may delay the page twice as much as if there were no ads from Google.
The simple workaround is to place your ads <script> inline, included or both in a separate .html file and to include it as <iframe>. Such a solution gives the page the ability of render before the iframe is executed and the page load event is fired in an early stage.
<iframe src=”/path_to_the_banner.html”></iframe>
8 Jun
Yes, the link <a … tag is really strange sometimes. We all know how to define :hover for a given a tag class, but if your code doesn’t apply under IE6 just take a look if you have the href attribute, if not the a tag is not an a tag under that strange, strange browser.
27 May
Recently we (Petar Atanasov and me) were working on a Zend Framework project, which requires more than one database connections. The framework as a typical MVC architecture does not allow that functionality forcing the user to use one single connections. However there is the setDefaultAdapter in ZF which is enough to think about switching the default adapter between the different connections.
The detailed tutorial how to make it work you can find on my colleague’s blog here.