jquery/JavaScript - Delay until upload complete -


My jQuery script looks like this (submitting file to upload form):

  

I $ ("#"); $ ("# output"). Val (""); $ ("#") UpTar "), unless the form submission is complete ( This file is uploaded and PHP script has responded.)

Edit

#uptar is the goal of an iframe and form submission. / P>

Thank you!

The code after the solution I want to display #uptar only when its content form from the action script Generate $ ('# UpTar'). (Function () ($ {"($ #" ("# addMore") (function () {$ ("# progForm"). Up ("", "block"); $ ("#head, #obj, #theory, #code, #output, #conc") Val ("");});}); There is no way to javascript in the browser "Waiting" for anything.

In this case, there are some things you can do:

  1. You set the goal & lt; CSS changes can be added to "load" event handlers for iframe & gt; ; $ ('# UpTar') load (function ($ ("$ (" # upTar "). Css (" display "," block "); $ (" #title, #obj, #theory, #code, #output, #conc "). Val (" ");}

  2. You can enter the code from & lt; iframe & gt; In response to the POST form executed.

      $ (function () {(function ($) {$ ("# (" # "," # "," # ",". $); });      

Comments