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
Post a Comment