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).
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).
Hello -- try this JS code:
codewindow.open(URL, '_blank');
window.focus();/code
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"
Hello John!
Yes, try Image- Click- Run JS
Replace 'URL' with your URL.
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?
Hello,
You can add "Panel" component with code:
code
<iframe name="iframeName"></iframe>
/code
after that you can open webpage in an iframe on the click event
code
window.open("http://appery.io/", "iframeName");
/code
where should i paste iframe name="iframeName"iframe as its html code i think
and this window.open("http://appery.io/", "iframeName");
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.
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