Page 1 of 4

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

Posted: Sat Jul 27, 2013 4:18 am
by John6086644

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).


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

Posted: Sat Jul 27, 2013 1:01 pm
by Illya Stepanov

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


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

Posted: Sun Jul 28, 2013 2:55 am
by John6086644

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"


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

Posted: Sun Jul 28, 2013 5:00 am
by Alena Prykhodko

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


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

Posted: Sun Jul 28, 2013 7:18 am
by John6086644

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?


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

Posted: Sun Jul 28, 2013 9:41 am
by Igor

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


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

Posted: Sun Jul 28, 2013 10:56 am
by John6086644

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


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

Posted: Sun Jul 28, 2013 11:03 am
by John6086644

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.


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

Posted: Sun Jul 28, 2013 11:07 am
by Igor

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

Posted: Sun Jul 28, 2013 11:23 am
by John6086644

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