I have a strange problem remotely loading tab content that I just can't figure out. After days of troubleshooting I have narrowed it down to an adsense script, but can't understand where the problem lies.
When clicking on Page3 tab of the following code under Firefox 3.6, the screen blanks and the script hangs. I can't tell if it's a coding problem, script, or tab issue. The problem does not happen under Chrome, although I think the script may still be hanging. The problem goes away if I remove the adsense script.
I am banging my head against the wall, and my lack of experience prevents me from troubleshooting this any further. Does anyone know what may be happening here, and how to remedy it? Thanks, any help will be greatly appreciated!
- <html><head>
- <link type="text/css" href="js/jquery-ui-1.8.2.custom/css/jqtheme/jquery-ui-1.8.2.custom.css" rel="stylesheet" />
- <script type="text/javascript" src="js/jquery-ui-1.8.2.custom/js/jquery-1.4.2.min.js"></script>
- <script type="text/javascript" src="js/jquery-ui-1.8.2.custom/js/jquery-ui-1.8.2.custom.min.js"></script>
- <script type="text/javascript">
- $(document).ready(function(){
- $('#tabs').tabs();
- });
- </script>
- </head><body>
- <div id="tabs" >
- <ul>
- <li><a href="#page1"><span>Page1</span></a></li>
- <li><a href="page2.php"><span>Page2</span></a></li>
- <li><a href="page3.php"><span>Page3</span></a></li>
- </ul>
-
- <div id="page1">
- This is page 1
- <br/>Page2 does not contain any adsense ads
- <br/>Page3 contains adsense ads, and fails miserably under Firefox
- </div>
- </div>
- </body></html>
- Page 3, containing the following adsense code
- <script type="text/javascript"><!--
- /*google_ad_client = "ca-pub-xxxxxxxxxxxxxxx";
- /* Short and wide */
- google_ad_slot = "5686850449";
- google_ad_width = 468;
- google_ad_height = 60;
- */
- //-->
- </script>
- <script type="text/javascript"
- src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
- </script>