Wahogna
Posts: 0
Joined: Fri Oct 25, 2013 10:51 pm

container HTML

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

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

container HTML

You can use iframe to load another URL.

Wahogna
Posts: 0
Joined: Fri Oct 25, 2013 10:51 pm

container HTML

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

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

container HTML

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.

Wahogna
Posts: 0
Joined: Fri Oct 25, 2013 10:51 pm

container HTML

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

Wahogna
Posts: 0
Joined: Fri Oct 25, 2013 10:51 pm

container HTML

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

excuseme this is the code

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

container HTML

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

Wahogna
Posts: 0
Joined: Fri Oct 25, 2013 10:51 pm

container HTML

which means this error in console

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

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

container HTML

I don't know, check the embedded page.

Return to “Issues”