Page 1 of 2
integrate website URL's returned from database query onto UI as a clickable link to the URL which can also be saved as d
Posted: Thu Jan 23, 2014 5:37 pm
by Chris6603029
We have built a simple database including URL's to pages on our website. We are struggling to work out how to get these URL's returned from a query to the database in the form of a clickable link which can also be set as a default so that next time the app is launched the user can click straight through to their chosen default URL without searching database again.
integrate website URL's returned from database query onto UI as a clickable link to the URL which can also be saved as d
Posted: Thu Jan 23, 2014 7:26 pm
by Maryna Brodina
Hello! You can map to Link, you can also map to any other component and add navigating actions for Link on click element. For example you can open in InAppBrowser or default device browser.
integrate website URL's returned from database query onto UI as a clickable link to the URL which can also be saved as d
Posted: Thu Jan 23, 2014 7:48 pm
by Chris6603029
Hello Maryna, thank you for getting back. Can you tell me what javascript I need to use to get a label or button to navigate to a URL returned from our database?
integrate website URL's returned from database query onto UI as a clickable link to the URL which can also be saved as d
Posted: Fri Jan 24, 2014 8:02 am
by Kateryna Grynko
Hi Chris,
Do you want to add a navigation to link for a button or something else? Do you want to store it in localStorage or in a Link component? Do you want to open it in a new window or in the current?
integrate website URL's returned from database query onto UI as a clickable link to the URL which can also be saved as d
Posted: Fri Jan 24, 2014 9:54 am
by Chris6603029
Hi Katya, I need to store the URL returned from my search query into local storage when say a check box is ticked, then set this URL as a default button on the start screen so that when a user re-opens the app and clicks the button it takes them to their chosen page on our site.
integrate website URL's returned from database query onto UI as a clickable link to the URL which can also be saved as d
Posted: Fri Jan 24, 2014 12:12 pm
by Kateryna Grynko
integrate website URL's returned from database query onto UI as a clickable link to the URL which can also be saved as d
Posted: Fri Jan 24, 2014 1:00 pm
by Chris6603029
Thanks Katya, that's exactly what we need. I will work through it and let you know how I get on.
integrate website URL's returned from database query onto UI as a clickable link to the URL which can also be saved as d
Posted: Fri Jan 24, 2014 5:48 pm
by Chris6603029
Hi Katya, I have worked through this solution but I am still having problems. Is it possible for you to actually see how I have mapped my app? Thanks Chris.
integrate website URL's returned from database query onto UI as a clickable link to the URL which can also be saved as d
Posted: Fri Jan 24, 2014 6:10 pm
by Maryna Brodina
Hello! Could you clarify what is the exact problem you have?
integrate website URL's returned from database query onto UI as a clickable link to the URL which can also be saved as d
Posted: Sat Jan 25, 2014 12:14 am
by Chris6603029
Hello Maryna, I have almost sorted it all out, I just need to know what javascript to use to open my URL within the app rather than a new browser window. I am currently using : window.open(localStorage.getItem('URL'), '_system');
thanks Chris.