php - How to upload a file from a page called already through Ajax? -


the form upload works if not called through ajax first, if tab/page loaded

$.get(page+".php", {type: type}, function(d){ $('#maincontent').html(d); }); 

then malsup jquery plugin doesn't work , redirect url listed in forms action section.

how work same way if directly on page?

i believe on success of ajax request have re-bind malsup plugin dom gets updated. have add rebinding in success handler.this may solve problem.


Comments

Popular posts from this blog

jQuery Mobile app not scrolling in Firefox -

c++ - How to add Crypto++ library to Qt project -

php array slice every 2th rule -