- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Bom dia queridos colegas.
Quando clico em determinado item do menu, preciso que abra um link no iframe do aplicativo. É possível? Como faço?
- Tags:
- HTML5
- Intel® XDK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello:
In your menu item event put this code:
$('#myIframeID').attr('src', 'http://www.google.com');
Regards
Diego
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello:
In your menu item event put this code:
$('#myIframeID').attr('src', 'http://www.google.com');
Regards
Diego
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Obrigado Diego.
Trabalho com javascript a mais de 5 anos, mas sempre utilizei a linguagem nativa, ou seja, o mesmo codigo que me forneceu eu faria desta forma:
window.open('http://www.google.com.br', "corpo");
Posso utilizar assim, ou devo migrar para a forma que me passou?
Onde encontro conteúdo para estudar este framework? Qual o nome dele?
Obrigado pela atenção.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Using the inAppBrowser plugin and use the API provided by it. You are not in a browser when you write a Cordova app, thus some of those things that work in a browser do not work in a webview. Your code is not associated with a server or a domain, which also causes some issues and confusion.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Lucas,
The codeI suggested is using jquery. To work with XDK you could use documentation about javascript, html5 and cordova for any aplication, and depending on your project settings, read about the framework you are using (don't know which one you selected, I suggest Bootstrap) and jquery if you are including it in your projects (XDK adds it automatically, but is optional).
Good luck,
Diego
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Paul F. (Intel) wrote:
Using the inAppBrowser plugin and use the API provided by it. You are not in a browser when you write a Cordova app, thus some of those things that work in a browser do not work in a webview. Your code is not associated with a server or a domain, which also causes some issues and confusion.
lucas s. wrote:
I understand, but where to find content to study?
Lucas -- Google is your best friend:
- see the plugin documentation > https://github.com/apache/cordova-plugin-inappbrowser <
- and this short article > https://software.intel.com/en-us/xdk/articles/cordova-core-plugin-inappbrowser-short-code-example <
- and this from the Cordova docs > https://cordova.apache.org/docs/en/latest/reference/cordova-plugin-inappbrowser <
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Realizando os testes em SIMULATE, funcionou perfeitamente, porém quando gerei o APK e instalei em meu celular não abre o conteúdo no iframe, o que posso fazer?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
lucas s. wrote:
Performing tests in SIMULATE, it worked perfectly, but when generate the APK and installed on my mobile phone does not open the content in the iframe, what can I do?
Use the Debug tab to get the best debug environment.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Realizei o teste usando a opção TEST do Intel XDK e transferi para o App Preview, funcionou 100%, mas quando realizo a instalação não funciona.
O nome do App na Play Store é: At the CLUB
Ficaria grato se alguém testasse e informasse o problema.

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page