Upgrade external resource to v3.0
Good day,
When upgrade from v2.3 to 3.0, with jqm APP, I found that all CSS I made are not working and not reflecting to the page components. Also the below code is keep showing "loading ..place wait" and not reading xml file.
function searchtxt(s) {
showSpinner({
text: 'loading ..place wait',
textVisible: true,
theme: 'f'
});
var result = '';
var counter = 0;
var finaltxt = '';
var n = -1;
var txt="";
var total = 0;
var suraidx;
var ayasound;
var surasound;
var soundfile;
$.get('quran-simple-clean.xml', function(d) {
$(d).find("sura").each(function(i) {
var $sura = $(this);
suraidx = '';
suraidx = $(this).attr("index");
var sname = $(this).attr("name");
var $aya = $(this).find("aya").each(function() {
var ayanum = $(this).attr("index");
var theaya = $(this).attr("text");
n = theaya.search(s);
if (n = 0) {
txt += "";
var rgxp = new RegExp(s, "g");
counter = theaya.match(rgxp).length;
total += counter;
finaltxt = theaya.replace(new RegExp(s, "g"), "span" + s + "/span");
if (ayanum.length == 1) {
ayasound = "00" + ayanum;
} else if (ayanum.length == 2) {
ayasound = "0" + ayanum;
} else {
ayasound = ayanum;
}
if (suraidx.length == 1) {
surasound = "00" + suraidx;
} else if (suraidx.length == 2) {
surasound = "0" + suraidx;
} else {
surasound = suraidx;
}
soundfile = surasound + ayasound + ".mp3";
var ayahead="الأية - ";
txt += ""+ayahead+"span"+convertDigitIn(ayanum.toString())+"/span";
txt+= "";
txt+= "a class="goToSuraFromSearchBtn" href="http://" rel="nofollow""+sname+"";
txt+= "";
Code: Select all
txt += "" + finaltxt + "";
txt += "";
// Buttons
txt += "";
//txt += "أخرى";
txt += " مشاركة ";
//txt += " مؤقت ";
txt += " قراءة ";
//txt += " سماع ";
txt += " تحميل ";
txt += "";
// End of buttons
txt += "";
}
});
});
var countdiv = "نتائج البحث : "+convertDigitIn(total.toString())+"";
$(".result").html(countdiv + txt);
$(".result").trigger("create");
hideSpinner();
});
}
/a