You are not logged in.

  • Login

Dear visitor, welcome to Coder Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Tuesday, June 10th 2008, 11:44am

Fake ProgressBar

Hey,
wie schaff ich es, dass bei meinem Formular

PHP Quellcode

1
2
3
4
<form name="test" action="upload.php" method="post" enctype="multipart/form-data"> 
<input type="file" name="file" value="Durchsuchen"> 
<input type="submit" value="Abschicken"> 
</form>

beim klick auf submit eine gif-datei geladen wird, wie beispielsweise bei youtube.com.
Mir ist klar, dass ich irgendwas mit "onsubmit" anstellen muss, jedoch weiß ich nicht, wie onsubmit auf diese gif-datei dann zugreifen soll und diese (von mir aus auch in einem neuen fenster) lädt.
Vielen dank schon einmal im voraus.
Lg

2

Tuesday, June 10th 2008, 12:29pm

Hallo Grundlegend würde ich das mit Ajax machen. Schau mal in die Suche da gibt es mehrere Möglichkeiten vom einfachen Ladebalken bis hin zur OnTheFly anzeige.
http://www.easy-coding.de/index.php?form…Ladebalken+Ajax
http://www.easy-coding.de/index.php?form…&q=Uploadbalken

Similar threads

Social bookmarks