1

I found some solution to it using jquery plugin formajax, did well in computers and laptop but got problem in ipad, tablet , mobiles. Is there is anyway to do so, currently i am doing like this

$(document).on('submit','#mulitpartform',function(e){
    e.preventDefault();
    $('#multipartform').ajaxSubmit({
       'method'    :    "url",
       beforeSend  :    function(){
                         //overlay
                        },
       success     :    function(responseText)
                        {
                          // stuffs
                         },
       error       :     function()
                         {

                         },
       complete    :     function()
                         {
                           //trunoff overlay
                         } 
    });
}); 

it works fine in laptop,computers but experience problem in mobile devices; what should i do to get out of it.

7
  • kiran ji i tried it to but didn't work Commented Jan 15, 2016 at 6:31
  • 1
    What did you try and what was the result? Can you describe a bit more? Commented Jan 15, 2016 at 6:34
  • no error as $('#multipartform').ajaxSubmit(); but somehow it couldnot send file to backend, while i try to read Input::file("file_name"); function of laravel it returns empty value; when i comment e.preventDefault () it works; the problem occurs only in mobile devices but works fine in desktop; I use chrome inspector to inspect mobile chrome didnot show any error around it. Commented Jan 18, 2016 at 6:53
  • 1
    It seems you are trying to upload file using ajax. For same purpose I would like to refer link: stackoverflow.com/questions/19447435/ajax-upload-image Commented Jan 18, 2016 at 7:09
  • yes this works fine thanks Commented Jan 18, 2016 at 7:25

0