Page 1 of 1

container HTML

Posted: Tue Oct 29, 2013 11:00 pm
by Wahogna

how do I load a page 'http://wahogna.com/' + localStorage.getItem ('parameters')
inside the container HTML


container HTML

Posted: Tue Oct 29, 2013 11:13 pm
by maxkatz

You can use iframe to load another URL.


container HTML

Posted: Tue Oct 29, 2013 11:17 pm
by Wahogna

Excuse my ignorance but I'm new at this, could you give me an example code please, and where i write the code


container HTML

Posted: Tue Oct 29, 2013 11:24 pm
by maxkatz

You will find an example here: http://docs.appery.io/documentation/b....

You can also search for embedding an iframe in a jQuery Mobile app.


container HTML

Posted: Wed Oct 30, 2013 1:08 am
by Wahogna

I'm sorry but I have not managed to work, I did not show anything on the page, the code I'm using is:

$('', {
name: 'myFrame',
id: 'myFrame',
width: '300',
height: '250',
src: 'http://www.wahogna.com/web'
}).appendTo('body');

where 'myFrame' is the container name, and 'scr' is the URL page to show


container HTML

Posted: Wed Oct 30, 2013 1:09 am
by Wahogna

"$('', {
name: 'myFrame',
id: 'myFrame',
width: '300',
height: '250',
src: 'http://www.wahogna.com/web'
}).appendTo('body');"

excuseme this is the code


container HTML

Posted: Wed Oct 30, 2013 1:24 am
by maxkatz

You need to specify the tag name (iframe):

precode
$('<iframe &#47;>', {
name: 'myFrame',
id: 'myFrame',
width: '300',
height: '250',
src: 'http:&#47;&#47;www&#46;wahogna&#46;com&#47;web'
})&#46;appendTo('body');
/code/pre


container HTML

Posted: Wed Oct 30, 2013 1:33 am
by Wahogna

which means this error in console

Uncaught TypeError: Cannot call method 'getBounds' of undefined
mM
(anonymous function)


container HTML

Posted: Wed Oct 30, 2013 1:52 am
by maxkatz

I don't know, check the embedded page.