Php\Javascript web-app on Windows 8.1 issue -


i have small web-app in php minor javascript wrote on windows 7 using xampp server showing spinner when ajax loading. worked fine on win7.

now when i'm setting same environtment on windows 8.1 loading spinner :

  • in case of ie11, running in left-bottom region of page.
  • in case of other browsers it's firstly hidden when run 1 , javascript function pop in left-bottom region , stays there same ie11.

anyone point me i'm doing wrong , i'm missing behave normally?

here's code:

  1. php page element :

    <div id="ajaxloading">trwa ładowanie, <br/>proszę czekać...</div> 
  2. javascript:

    jquery.fn.center = function () { this.css("position","absolute"); this.css("top", ( $(window).height() - this.height() ) /       2+$(window).scrolltop() + "px"); this.css("left", ( $(window).width() - this.width() ) / 2+$(window).scrollleft() + "px"); return this; }  $(function() { // pokaż spinner w czasie wykonywania żądań ajax $('#ajaxloading') .hide() .ajaxstart(function() {     $(this).center();     $(this).show();  }) .ajaxstop(function() {     $(this).hide(); })  ; });     function usunpoz(idnadstan, link)  {   var odp = confirm("czy na pewno chcesz usunąć tą pozycję?");      if(odp) {   $.post(   "nadstan.usun.php",         { id : idnadstan},          function(response) {         if(response == 'ok') {     $(link).parent().parent().find('td').css('textdecoration', 'line-through');     $(link).parent().html("");     location.reload();            } else {     alert('wystąpił błąd przy przetwarzaniu zapytania. prosimy spróbować ponownie.'); } } );  }   }       

thank in advance.

apparently problem on win 8.1 machine default protocol https , in whole php there 1 script on-line resource absolute url reffered http protocol.

src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" 

so downloaded compressed version , changed access path protocol-relative paths like

src="js/jquery.min.js" 

Comments

Popular posts from this blog

javascript - AngularJS custom datepicker directive -

javascript - jQuery date picker - Disable dates after the selection from the first date picker -