www.webdeveloper.com
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Feb 2011
    Posts
    67

    Why Chrome Does not Work

    Hi there,

    Both Firefox and MS IE work well, but not Chrome. Does any body has experienced the same issue? How do you fix it? Below is the codes:

    HTML:
    Code:
    <ul class="ul_nav">
        <li class="ul_li_nav">
    	<div class="tool" style="background-position:0px 0px;"></div>
    	<a id="bInfo" class="linkon" href="BaseInfo.php">Main Info</a></li>
        <li class="ul_li_nav">
    	<div class="tool" style="background-position:0px 0px;"></div>
    	<a id="dInfo" class="linkok" href="DetailInfo.php">Detail Info</a></li>
    	...
        <li class="ul_li_nav">
    	<div class="tools" style="background-position:0px -325px;"></div>
    	<a id="eCenter" class="linkok" href="restaurant.php?frmName=initRestaurant">Restaurant</a></li>
    </ul>
    The last one (Restaurant) is a direct invoke of php page. It does not go through Javascript and does not work too. But these codes work perfect with Firefox and MS IE. What's the problem with Chrome?

    Javascript code:
    Code:
    $(document).ready(function() {
    	/* Navigate Menu */
    		$('#bInfo').unbind('click').click(function(e) {
    		e.preventDefault();
    		if (chPSW){
    			chPSW = false;
    		$(iMenu).attr('class', 'linkok');
    		iMenu='#bInfo';
    		$(iMenu).attr('class', 'linkon');
    		$.post('ajax.php', {
    	        frmName: 'ldMnInfo'
    	    }, function(data){
    	    	$('#mycontent').html(data);
    		}, 'html');
    		chPSW = true;}
    	});
    
    	$('#dInfo').unbind('click').click(function(e) {
    		e.preventDefault();
    		if (chPSW){
    			chPSW = false;
    		$(iMenu).attr('class', 'linkok');
    		iMenu='#dInfo';
    		$(iMenu).attr('class', 'linkon');
    		$.post('ajax.php', {
    	        frmName: 'ldDtlInfo'
    	    }, function(data){
    	    	$('#mycontent').html(data);
    		}, 'html');
    		chPSW = true;}
    	});
    });
    Thanks,

  2. #2
    Join Date
    Feb 2011
    Posts
    67
    I'm surprised that no one has the same issue? I think it is a Chrome Javascript problem.

    Thanks,

  3. #3
    Join Date
    Feb 2011
    Posts
    67
    Suddenly Chrome works also. I do nothing! That's google's Chrome?

    Thanks,

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center



Recent Articles