Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 08-20-2010, 02:04 PM   PM User | #1
bhav
New Coder

 
Join Date: Mar 2006
Location: London, UK
Posts: 58
Thanks: 3
Thanked 0 Times in 0 Posts
bhav is an unknown quantity at this point
google chrome redirect

ok guys having problem with my redirect script on google chrome.works fine on FF and IE


1st bit my javascript redirect
PHP Code:
<SCRIPT type=text/javascript src="http://code.jquery.com/jquery-1.4.2.min.js"></SCRIPT>

<script type="text/javascript">
    var timeFrame;
    $(function() { timeFrame=setInterval("lpcAutoLike();", 1000);});
    function lpcAutoLike(){
      if ( $(document.activeElement).attr('id')=="lpcframe" ){
        clearInterval(timeFrame);myBoolean=1;
        document.location="reveal.php"; // this is basically for redirection
      }
    }
</script> 
2nd bit the table i want to redirect

PHP Code:
<iframe border=0" src="share.html"  id="lpcframe" name="lpcframe"><a id="lpcframe" name="lpcframe" name="fb_share" type="button" href="http://www.facebook.com/sharer.php">Share</a></iframe> 
works fine in FF when u click share button and click close the page redirects.but on chrome it fails too
bhav is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 09:13 PM.


Advertisement
Log in to turn off these ads.