error using ul.tabs on my site.

Discussion in 'jQuery' started by Jrmyfr751, Jan 27, 2011.

  1. #1
    Hi All,
    I am using Templatic Real Estate wordpress Theme.
    there is strange error is coming on main page of my site http://openhousesinboston.com Apartments for sale in boston site, its #featured element’s tab is missing some where.... I cannot figure out the problem. where it is....

    here is a test site i have uploaded the orignal theme, http://openhousesinboston.com/test2

    I am also attaching the ie error snap.

    http://www.cssdrive.com/index.php?ACT=24&fid=2&aid=448_aBFaczgeo2BiSVW7Cd23&board_id=1
    Please help me in this regards,

    Thanks in advance,

    Jeremy. :(
     
    Jrmyfr751, Jan 27, 2011 IP
  2. Cash Nebula

    Cash Nebula Peon

    Messages:
    1,197
    Likes Received:
    67
    Best Answers:
    0
    Trophy Points:
    0
    #2
    There are 70 opening div tags and 71 closing div tags. The extra tag is throwing the tabs function. Right at the bottom is this rubbish:
    
    </body>
    </html>		</div> 
         <br /><font color="gray">Checking schedule at 01/02/1111 13:16:16</font>
    
    Code (markup):
    As Adam Savage would say, "Well there's your problem!" :D

    Looks like a conflict between Contact Form 7 and Google analytics.
    I'd need to see the template file to have any chance at resolving that.
     
    Cash Nebula, Feb 1, 2011 IP
  3. Jrmyfr751

    Jrmyfr751 Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thank you sir. You are correct the </div> tag is extra in my code. but i cant figure it out from where it is comming from . Here is my footer.php code
    <div class="bottompart">
    		<div class="aboutus">
    			 <?php dynamic_sidebar(8);  ?>
    		</div>
    		<div class="mortgagecenter">
    			 <?php dynamic_sidebar(9);  ?>
    		</div>
    		<div class="bottom_right_col">
    			 <?php dynamic_sidebar(10);  ?>
    		</div>
    	</div> <!-- bottom part #end -->
        
        
        
        <div class="footer">
    		<div class="copyrights">
    			
                 <?php if ( get_option('ptthemes_footerpages') <> "" ) { ?>
    			<ul>
    			<?php wp_list_pages('title_li=&depth=0&include=' . get_option('ptthemes_footerpages') . '&sort_column=menu_order'); ?>
    			</ul>
    		<?php } ?>	
            
            <p> &copy; <?php the_time('Y'); ?> <?php bloginfo(); ?>  All right reserved.</p>
    
    			
    		</div>
    		<div class="footerright">
    			        
            <p class="author"><img src="http://openhousesinboston.com/wp-content/uploads/2010/05/small.png"  width="75" align="right" alt="Open Houses in Boston MA"></span></p>				
    		</div>
    	</div><!--footer end-->
        </div> <!-- wrapper #end-->
        <script type="text/javascript">
    function addToFavorite(property_id,action)
    {
     	//alert(property_id);
    	<?php 
    	global $current_user;
    	if($current_user->data->ID==''){ 
    	?>
    	window.location.href="<?php echo get_option('siteurl'); ?>/?page=login&page1=sign_in";
    	<?php 
    	}else{
    	?>
    	var fav_url; 
    	if(action == 'add')
    	{
    		fav_url = '<?php echo get_option('siteurl'); ?>/index.php?page=favorite&action=add&pid='+property_id;
    	}
    	else
    	{
    		fav_url = '<?php echo get_option('siteurl'); ?>/index.php?page=favorite&action=remove&pid='+property_id;
    	}
    	$.ajax({	
    		url: fav_url ,
    		type: 'GET',
    		dataType: 'html',
    		timeout: 9000,
    		error: function(){
    			alert('Error loading agent favorite property.');
    		},
    		success: function(html){	
    		<?php 
    		if($_REQUEST['list']=='favourite')
    		{ ?>
    			document.getElementById('list_property_'+property_id).style.display='none';	
    			<?php
    		}
    		?>	
    			document.getElementById('favorite_property_'+property_id).innerHTML=html;								
    		}
    	});
    	return false;
    	<?php } ?>
    }
    </script>	
        <?php include (TEMPLATEPATH . "/library/includes/popup_frms.php");?>
     <?php wp_footer(); ?>
    <script type="text/javascript">
    
      var _gaq = _gaq || [];
      _gaq.push(['_setAccount', 'UA-16358168-1']);
      _gaq.push(['_trackPageview']);
    
      (function() {
        var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
        ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
      })();
    
    </script>
    </body>
    </html>
    PHP:
    from where this code could be inserting?
     
    Jrmyfr751, Feb 12, 2011 IP
  4. Jrmyfr751

    Jrmyfr751 Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    the ul.tabs error was there before using contact form 7 . If you say I can also remove that.
     
    Jrmyfr751, Feb 12, 2011 IP
  5. Cash Nebula

    Cash Nebula Peon

    Messages:
    1,197
    Likes Received:
    67
    Best Answers:
    0
    Trophy Points:
    0
    #5
    I just noticed that this iframe at the bottom has no closing tag (added in red):
    
    <iframe name="submit_information" id="submit_information" width="0" height="0" style="border:0">[COLOR="red"]</iframe>[/COLOR]</body>
    </html>	
    
    Code (markup):
    Both pages have that line but it's not in the footer template. That could be messing up the other scripts and causing the problems mentioned above.
    That line may be from /library/includes/popup_frms.php. Can you post the contents of that file?
     
    Cash Nebula, Feb 12, 2011 IP