Sunday, September 5, 2010
Remove Contact Link From IPAD Safari Browser First of all you have to detect Browser that Ipad safari or not i write below javascript for remove contact link from IPAD Safari browser.
$("#btnDelete").click(function () {
var gvw = document.getElementById("tblCert");
var cnt = gvw.rows.length - 1;
var certno = "";
var twt = 0;
var A = 0; B = 0; newD = 0;
var isiPad = navigator.userAgent.match(/iPad/i) != null; //Check For Browser
var RecordStatusID = "";
for (var i = 1; i < cnt; i++) {
if (gvw.rows[i].cells[15].childNodes[1].childNodes[0].checked) {
if (isiPad == true && gvw.rows[i].cells[11].childNodes.length == 3) {
gvw.rows[i].cells[11].innerHTML=gvw.rows[i].cells[11].childNodes[1].innerHTML; //Here We Remove Link From browser
}
}
on Below Example i got link in IPAd safari browser gvw.rows[i].cells[11].innerHTML in this column i got link in IPAd safari browser.First of all i find that like <a href="tel:34734687468">34734687468</a> According to this first i find Child Node length and browser is ipad or not like below line
if(isiPad == true && gvw.rows[i].cells[11].childNodes.length == 3)
if my column contain then i got length 3 else i got 1
simple solution occure then i assign value like below
gvw.rows[i].cells[11].innerHTML=gvw.rows[i].cells[11].childNodes[1].innerHTML;
finally i remove link from ipad safari browser .for more detail comment us.i reply as soon as possible.