pfr = "";
      $.get("pfc.html", function (pfc) {
      from(pfc);
     });
     function from(pfc) {
         pfr = pfc;
          }
     ptr = "";
   $.get("pdate.html", function (ptc) {
          to(ptc);
        });
 function to(pc) {
        ptr = pc;
     }
                //alert(pfr);
                console.log(pfr);
                console.log(ptr);
The Problem is when i removed comments of alert(pfr) the console shows two empty strings , when i uncommented it, i am getting values of what i want. Actually These works fine with ajax calls too. The problem here is i want to make one more ajax call or get call but in that case everything is showing empty string.
I want the data from 3 ajax calls and save them as variables and access it globally for further use in script Any Ideas?
Thanks in advance
 
    