Phone link href="tel" shows up twice/double in Andoid phone - android

When the number is clicked, it is shown twice in the phone like this...
12345678910,12345678910
...instead of...
12345678910
Here's the code:
{#if order.salesRep}
<div class="info">
<span>Sales rep:</span>
{order.salesRep}
{#if order.salesRepPhone}
<a href="tel:{order.salesRepPhone}">
<i class="fas fa-phone" />
</a>
{/if}
</div>
{/if}

I managed to solve it. It was my fault.
The SQL query had double columns, not double data.

Related

Whatsapp linking

Im currently working on a website for a client and am having some trouble getting a whatsapp link working on an Iphone. There is a button that should be redirecting the user to a whatsapp number, and it is doing to on my pc, but when I take it to my iphone suddenly it no longer works. Any ideas on what is happening?
<a id="app" target="_blank" href="https://wa.me/0896168600?text=I'm%20interested%20in%20man%20with%20a%20van"> <div class="whatsapp">
<div class="left">
<p>Contact on WhatsApp</p>
<p>089 61 68 600</p>
</div>
<div class="right">
<img src="/WhatsApp.svg.png" alt="">
</div>
</div>
</a>
Here are some images of the problem in action aswell as the link to the website and the whatsapp documentation used to write the code.
https://i.stack.imgur.com/YW5nW.png
https://faq.whatsapp.com/iphone/how-to-link-to-whatsapp-from-a-different-app/?lang=en
https://fiverrtestsite.netlify.app/
Please try this for mobile
So for a danish number +45 1234 5678 it would be
4512345678
Change 45 to your contry code
<a id="app" target="_blank" href="whatsapp://send?phone=4512345678"> </a>
OR
<a id="app" target="_blank" href="https://api.whatsapp.com/send?phone=4512345678"> </a>
This will only work for mobile, not for desktop. You shuld make a modal so when its clicked they can choose to open mobile or desktop version of the link.

IONIC: unable to get records from two `ng-repeat`

I am new with ionic framework.Currently i am working on ionicsidemenu app. I want to show records according to date, having date as heading and respective date having multiple records.
For this i have two web services one is for heading date another is for date-wise records. In my HTML file i have two ng-repeat one is for display heading date. Now i am not able to understand how to get records of particular date as date has to be sent to web service for getting records.
I have tried this:
<div ng-repeat="d in dates track by $index">
<h2>d.edate</h2>
<div ng-init="datewiserecords(d.edate);" >
<div ng-repeat="n in res1 track by $index" class="text-white" >
</div></div></div>
but its not working.Please help me.
I am not sure what you are looking for, but the way I understand the question makes me to give you a solution as below:
My Solution:
<!DOCTYPE html>
<html>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js"></script>
<body>
<div ng-app="myApp" ng-controller="myCtrl">
<ul>
<li ng-repeat="get_date in dates">
<h2>{{get_date.date}}</h2>
<h4>{{get_date.data}}</h4>
</li>
</ul>
</div>
<script>
var app = angular.module('myApp', []);
app.controller('myCtrl', function($scope) {
$scope.dates = [{date:"1",data:"One"},{date:"2",data:"Two"},{date:"3",data:"Three"}];
});
</script>
</body>
</html>
Hope This is helpful

Parse only content from bold tag Jsoup

<div class="item all clearfix">
<div class="pic all">
<a href="/terrace.jpg"/></a>
</div>
<div class="text all">
<a href="/link/test" class="title">
Some random title
</a>
<strong>STRONG TEXT</strong>
Some random subtitle…
</div>
</div>
I'm trying to get the text from the bold tag only, but whenever I parse it, it shows the complete. I also tried to remove the a class, but there was text left out below - "Some random subtitle".
I tried by:
Element strong_title = el.select("strong").first();
And then by retrieving strong_title.text().
Nevermind, it was a project-related code mistake.
The following code:
document.select("strong"); works just fine.

Bootstrap-RTL Buttons don't work on mobile

On some of the mobile devices the bootstrap buttons don't respond(Galaxy S3,S4).
Here is the code:
<div class="text-center" style="padding-top:2em;">
<a class="btn btn-large btn-info" href="/cook_register/">some-rtl-text</a></div>
I tried all day long to fix this.Please help.

how to create telephone links in xhtml MP

I'm trying to construct a little mobile optimized web. This web list a set of results for business and I need that android interpret the telephone link.
I have watch other webs and android show an especial intem for telephone links (with a telephone green image in a grey button) but when I try it, it seems like a usual link.
I have tried with microformars (vcard) and it not works.
My code:
<ul id="search-results">
<li class="vcard" id="i53380"><!-- pro//ginecologo_madrid/clinica-dam/ -->
<p class="fn">
<a class="url" href="/ginecologo_madrid/clinica-dam/">Name of bussiness</a>
</p>
<p class="adr"><span class="street-address">Street - zipcode</span> <span class="locality">Locality</span></p>
<p class="tel">
<a href="tel://+34 XXXXXXXXX" class="value" >+34 XXXXXXXXX</a>
</p>
</li>
<!-- more results -->
Any idea?
There should be no // after the :
its
tel:+34 XXXXXXXXX
and NOT tel://+34 XXXXXXXXX

Categories

Resources