Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

titanium open new url

I would like to open a new url in the default browser when the user clicks on an image. I have looked into the Titanium.Platform.openURL but don't know how to use it.

any help is appreciated

like image 897
JqueryToAddNumbers Avatar asked Feb 27 '11 01:02

JqueryToAddNumbers


3 Answers

Ti.Platform.openURL("http://m.google.com"); //replace string lit with your url
like image 145
jellyfishtree Avatar answered Nov 19 '22 05:11

jellyfishtree


You just pass the URL you want to open on the click event as the parameter to openUrl

like image 2
Aaron Saunders Avatar answered Nov 19 '22 06:11

Aaron Saunders


make sure the link has "http://" in front or it won't do anything

like image 1
chris raethke Avatar answered Nov 19 '22 04:11

chris raethke