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

My HTML document is not linking to my CSS stylesheet properly -

php array slice every 2th rule -

node.js - Sending sockets to client side, Error: Converting circular structure to JSON -