Software Archive
Read-only legacy content
Announcements
FPGA community forums and blogs have moved to the Altera Community. Existing Intel Community members can sign in with their current credentials.
17060 Discussions

Iframe element don't loads a url

Jonathan_S_
New Contributor I
621 Views

Hi, I'm using the xdk, but when I apply a iframe with a url to show the content, the iframe no load the address, just to load a facebook page url. 
how I can solve this?

(note: I'm using framework7 via modal)

 

$(document).on("click", ".uib_w_6", function(evt)
    {
        /* Modals are created using custom js 
         For examples and documentation visit http://www.idangero.us/framework7/docs/modal.html */
        myApp.modal({
          title: 'Facebook',
          text: "<iframe style='width:100%;' src='www.facebook.com.br'></iframe>",
          buttons: [
            {
              text: 'Fechar',
              close: true,
              height: '5em'
            }
          ]
        }) 
         return false;
    });

 

 

0 Kudos
1 Reply
Diego_Calp
Valued Contributor I
621 Views

Hi,

Add http:// to the iframe src parameter:

text: "<iframe style='width:100%;' src='http://www.facebook.com.br'></iframe>",

Regards,

Diego

0 Kudos
Reply