Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Jonathan_S_
New Contributor I
42 Views

Iframe element don't loads a url

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;
    });

 

 

Tags (2)
0 Kudos
1 Reply
Diego_Calp
Valued Contributor I
42 Views

Hi,

Add http:// to the iframe src parameter:

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

Regards,

Diego

Reply