SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Zealot
    Join Date
    Dec 2010
    Posts
    118
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    doucment.location.reload not working in Chrome (but works on firefox &explorer)

    When im calling facebook login and pressing login the callback function is called
    i can see the alert box with the text "here"
    but the window is reloaded to blank page in Chrome
    but works good on firefox/explorer
    why is that happening?
    HTML Code:
    login.facebook_login({ 
    				callback:function() { login.join_community(network_id,false, function() { alert("here"); document.location.reload(true); }); },
    				network_url : this.network_url
    			});

  2. #2
    Non-Member
    Join Date
    Apr 2011
    Location
    no fixed address
    Posts
    851
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by danrevah View Post
    why is that happening?
    location is a property of the window object and not the document object.

  3. #3
    SitePoint Zealot
    Join Date
    Dec 2010
    Posts
    118
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    even when im using window.location its reloading a blank page in the canvas :S


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
  •