简体   繁体   中英

How do you upload a file to a http web page using JavaScript?

I have recently used www.codecademy.com to teach myself HTML, CSS and JavaScript.
I have had minimal coding experience prior to this so I'm not too hot on how everything works and the lessons that I went through only covered general, everyday code.
I have looked online for a suitable tutorial/run down of how to go about it but I haven't found one I think is suitable.
I was wondering if anyone knows of any resources that I could use to help me learn this.

Any help is appreciated.
Thanks.


HTML/CSS learnt:

  • Importing scripts and stylesheets
  • Common HTML tags
  • Creating IDs and Classes
  • Tables, Divs, Spans
  • General CSS and Positioning


JavaScript Learnt:

  • Functions
  • For/While Loops
  • Switch statements
  • Objects and Arrays

There are plentiful of resources regarding javascript (ajax) file upload components out there. There's really no other (good) way to learn this than diving down into some code and trying to get a grip on it. One good place to start would be one of the known javascript frameworks, like jQuery , MooTools etc. Most of them have a decent collection of plugins that might do what you need.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM