toni Posted May 28, 2020 Share Posted May 28, 2020 Hi It is possible to make a call to a phone I have tried with FMSoft \ Framework \ uniGUI \ Demos \ Touch \ PhoneBook and it does not work thanks Link to comment Share on other sites More sharing options...
x11 Posted May 28, 2020 Share Posted May 28, 2020 use tel: <a href="tel:+380673697312">+380673697312</a> Link to comment Share on other sites More sharing options...
x11 Posted May 28, 2020 Share Posted May 28, 2020 this button works UniSession.AddJS('window.location.href="tel://'+DataSource1.DataSet.FieldByName('Phone_Number').AsString+'"'); Link to comment Share on other sites More sharing options...
toni Posted May 28, 2020 Author Share Posted May 28, 2020 I'm sorry, but nothing happens pressing the Dial button Link to comment Share on other sites More sharing options...
toni Posted May 28, 2020 Author Share Posted May 28, 2020 Sorry, I've changed the mobile and now works Link to comment Share on other sites More sharing options...
x11 Posted November 22, 2020 Share Posted November 22, 2020 when i tap on a Toolbutton with code UniSession.AddJS('window.location.href="tel://' + sTel + '"') then the dialing window opens (with phone namber), but in the browser the session ends or restarts @Sherzod Link to comment Share on other sites More sharing options...
Mehmet Emin Posted November 24, 2020 Share Posted November 24, 2020 Because assigning window.location.href redirects from current uniGUI context. Try one of the approaches from this url https://stackoverflow.com/questions/7554108/javascript-window-location-in-new-tab?lq=1 window.open("tel://' + sTel + '"', '_blank'); 1 Link to comment Share on other sites More sharing options...
Recommended Posts