toni 2 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 post Share on other sites
x11 119 Posted May 28, 2020 Share Posted May 28, 2020 use tel: <a href="tel:+380673697312">+380673697312</a> Link to post Share on other sites
x11 119 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 post Share on other sites
toni 2 Posted May 28, 2020 Author Share Posted May 28, 2020 I'm sorry, but nothing happens pressing the Dial button Link to post Share on other sites
toni 2 Posted May 28, 2020 Author Share Posted May 28, 2020 Sorry, I've changed the mobile and now works Link to post Share on other sites
x11 119 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 post Share on other sites
Mehmet Emin 43 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 post Share on other sites
Recommended Posts