Note that there are some explanatory texts on larger screens.

plurals
  1. POimageslider working in chrome but in mozilla works only after printing some alert message
    primarykey
    data
    text
    <p>I have image slider code it is working fine chrome and other browser but it is not working on mozilla .on page load if i print alert() then only it works in mozilla . i am reading image details from xml file. may be with alert at the back it gets time to load all image details.</p> <pre><code>$(document).ready(function () { getData(); alert('START'); }); </code></pre> <p><strong>GetData function :::</strong></p> <pre><code>function getData(){ $.get('photos.xml', function(xml) { $('item', xml).each(function (k) { frontimg.push($(this).find('frontImg').text()); stripimg.push($(this).find('stripImg').text()); frontText.push($(this).find('frontTxt').text()); fTitle.push($(this).find('title').text()); fCity.push($(this).find('city').text()); fYear.push($(this).find('compYear').text()); fLoc.push($(this).find('loc').text()); fType.push($(this).find('type').text()); fRole.push($(this).find('role').text()); arrBackImg.push($(this).find('backImg').text()); backText.push($(this).find('backTxt').text()); frontDiv.push("&lt;h2&gt;"+fTitle[k]+"&lt;/h2&gt;"+ "&lt;h3&gt;"+fCity[k]+"&lt;/h3&gt;&lt;hr&gt;&lt;h4&gt;YEAR OF COMPLETION&lt;/h4&gt;"+fYear[k]+"&lt;hr&gt;&lt;h4&gt;LOCATION&lt;/h4&gt;"+fLoc[k]+"&lt;hr&gt;&lt;h4&gt;PROPERTY TYPE&lt;/h4&gt;"+fType[k]+"&lt;hr&gt;&lt;h4&gt;MAPLETREE'S TYPE&lt;/h4&gt;"+fRole[k]); $('#myImageFlow').append('&lt;div id="id'+k+'" alt="div'+k+'" class="sliderImage" width="280" height="425" style="visibility:hidden"&gt; &lt;div class="frontText" id="f'+k+'"&gt;'+frontDiv[k]+'&lt;/div&gt;&lt;div class="borderdiv" id="b'+k+'"&gt;&lt;/div&gt;&lt;div class="borderdiv1" id="b'+k+'"&gt;&lt;/div&gt;&lt;div class="reflection" id="ref'+k+'"&gt;&lt;/div&gt; &lt;/div&gt;'); }); $('font', xml).each(function (k) { var fontSize = $(this).find('size').text(); var fontFamily = $(this).find('family').text(); var fontColor = $(this).find('color').text(); $(".frontText").css("font-family",fontFamily); $(".frontText").css("font-size",fontSize); $(".frontText").css("color",fontColor); }); $('label', xml).each(function (k) { fSize = $(this).find('fsize').text(); fFamily = $(this).find('ffamily').text(); fColor = $(this).find('fcolor').text(); fpos=$(this).find('fpos').text(); ftext=$(this).find('ftext').text(); spos=$(this).find('spos').text(); stext=$(this).find('stext').text(); tpos=$(this).find('tpos').text(); ttext=$(this).find('ttext').text(); totalimages=$(this).find('totalimages').text(); //alert("label pos is ="+tpos); }); }); } </code></pre> <p>any suggestion if i can stylise alert box aur print some welcome in div so that it will work in mozilla.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload