John6086644
Posts: 0
Joined: Sat Jul 27, 2013 4:18 am

how to open webpage in app itself (windows 8 app)

i made one event just to test. event on image -when clicked - navigate to link but it closes the app and opens that link in the web browser.
i want it to open webpage in app (win8).

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

how to open webpage in app itself (windows 8 app)

Hello -- try this JS code:
codewindow.open(URL, '_blank');
window.focus();/code

John6086644
Posts: 0
Joined: Sat Jul 27, 2013 4:18 am

how to open webpage in app itself (windows 8 app)

thank you lllya
should i paste this code -event on image -when clicked- run js and then this code?

i pasted this code on home-page ready -run js and then this code (window.open(URL, 'blank');
window.focus();)
but in visual studio its giving error that "Error in user defined event onready: ReferenceError: 'URL_' is undefined"

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

how to open webpage in app itself (windows 8 app)

Hello John!
Yes, try Image- Click- Run JS
Replace 'URL' with your URL.

John6086644
Posts: 0
Joined: Sat Jul 27, 2013 4:18 am

how to open webpage in app itself (windows 8 app)

Alena i did as you shown, my code is- window.open('[url=http://www.google.com','blank]http://www.google.com','blank[/url]');
window.focus();

its working but when clicked on image its opening the url in my browser and not in the app. i want to open it in the app and not outside it or in browser. it the code correct?

Igor
Posts: 0
Joined: Tue Apr 02, 2013 12:05 pm

how to open webpage in app itself (windows 8 app)

Hello,

You can add "Panel" component with code:
code
<iframe name="iframeName"><&#47;iframe>
/code
after that you can open webpage in an iframe on the click event
code
window&#46;open("http:&#47;&#47;appery&#46;io&#47;", "iframeName");
/code

John6086644
Posts: 0
Joined: Sat Jul 27, 2013 4:18 am

how to open webpage in app itself (windows 8 app)

where should i paste iframe name="iframeName"iframe as its html code i think
and this window.open("http://appery.io/", "iframeName");

John6086644
Posts: 0
Joined: Sat Jul 27, 2013 4:18 am

how to open webpage in app itself (windows 8 app)

its working but when clicked on image its opening the url in my browser and not in the app. i want to open it in the app and not outside it or in browser.

John6086644
Posts: 0
Joined: Sat Jul 27, 2013 4:18 am

how to open webpage in app itself (windows 8 app)

hi,igor...i did as you shown but its opening on the same page, can you please tell me that how do i make it open in new page .i mean that as when clicked and then it opens the site on same page but how to make it open in new window in same app and there it should open the site

Return to “Issues”