facebook

Embed HTML Page without iFrame?

  1. MobiOne Archive
  2.  > 
  3. Getting Help – General
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #336453 Reply

    ehpdesigns
    Member

    I know this has been an ongoing question and the current solution is to display a page in a pop-up or new window.

    I’ve found a jquery/javascript solution that is supposed to be able to display an external page in the HTML widget but it doesn’t seem to be working for me. Can someone take a loot at this and let me know if this would be possible or if I should just scrap this dream:

    <script>$("#loadFBRush").load("https://m.facebook.com/RapidCityRush", function(response, status, xhr) {
       if (status == "error") {
          var msg = "Sorry but there was an error: ";
          alert(msg + xhr.status + " " + xhr.statusText);
       }
     });</script> 
     <div id="loadFBRush"></div>
    #336455 Reply

    Brandon
    Member

    The ajax load function is restricted by the cross domain policy. So most likely you wont be able to load a page from a different domain unless they specifically allow it.

    #336456 Reply

    ehpdesigns
    Member

    Had thought that was my issue, but was hoping Facebook would allow something like that. Guess not lol

    Thanks for the input =)

    #336461 Reply

    Brandon
    Member

    No problem.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Embed HTML Page without iFrame?

You must be logged in to post in the forum log in