0

I am using this image show/hide script

Instead of using a submit button, I want to submit the form by using onchange submit in the file select field. Until here, everything is working fine. However, when I click the cancel button in the (pup-up) file select screen, the loading image won't hide. I have no clue how to solve this, and any suggestions are welcome.

Community
  • 1
  • 1
jc100
  • 11
  • 2
  • do you catch the onclick on the cancel button ? i'd say trigger hideLoading if you click the cancel, and remove the src from the image or the whole img element. – Konstantin Krass Dec 22 '13 at 19:44
  • @KonstantinKrass Is it possible to catch the onlick cancel button from the standard browser file select window, e.g. [here](http://stackoverflow.com/a/4628563/3041290) they say it isn't? When this is possible, I agree that triggering hideLoading would work. – jc100 Dec 22 '13 at 19:58
  • ah you mean the default hmn...yeah maybe check for empty field onchange. it should be empty. and if it's no empty->submit and show loading – Konstantin Krass Dec 22 '13 at 20:05

0 Answers0