- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have website which offers some mp3 downloads. if i try to click those link through IntelXDK InApp browser ...it does nothing.
if i open through inside intelxdk for example this link then it opens in defualt web browser.
I can't update each time my app...I want to open a download link from website in IOS & Android default web browser.
Please help
- Tags:
- HTML5
- Intel® XDK
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Are you using cordova-plugin-inappbrowser?
With this plugin, I use> cordova.InAppBrowser.open(URL, '_blank', 'location=yes');
URL can be http://xxxxxxx, mailto:yyy@kkkkk, etc.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@Hamilton Tenório da Silva yes i m using cordova-plugin-inappbrowser.
can u give me a example for this link http://domain.com/sample.mp3
how do i put this on my website?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sure. In my app I have a function like this:
function funAbreURL(cURL) { cordova.InAppBrowser.open(cURL, '_blank', 'location=yes'); }
This function is called when occurs a click:
$(document).on("click", "#spaLinkHTS", function () { funAbreURL("http://www.hts-net.com.br"); });
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
i am very beginner to all this.
I know only html and i have website. it got many download links.
i dont know anything...please it will be helpful if you put complete demo project. (Complete Code)
please help
Thank u very much
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hamilton Tenório da Silva wrote:
Sure. In my app I have a function like this:
function funAbreURL(cURL) { cordova.InAppBrowser.open(cURL, '_blank', 'location=yes'); }This function is called when occurs a click:
$(document).on("click", "#spaLinkHTS", function () { funAbreURL("http://www.hts-net.com.br"); });
I am finding a solution on how to open a link in a browser. Tried you sample code but dont work on mine. Can you help me figure out whats wrong on my code?
<script> $(document).on("click", "#join_browser", function () { join_browser("https://www.example.com/page/join"); }); $(document).on("click", "#password_browser", function () { password_browser("https://www.example.com/retrieve"); }); function join_browser(joinURL) { cordova.InAppBrowser.open(joinURL, '_blank', 'location=yes'); } function password_browser(passURL) { cordova.InAppBrowser.open(passURL, '_blank', 'location=yes'); } </script> <label class="text-style text-center">Don't have an account? <a href="#" id="join_browser"> Register here. </a> </label> <label class="text-style text-center">Forgot password? <a href="#" id="password_browser"> Click here. </a> </label>
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Oops.. don't worry. I got this workin now. I have to use a button not an "<a>" tag link to work. Thanks for idea anyway!

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