Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 8 of 8
  1. #1
    New to the CF scene
    Join Date
    Jul 2011
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Uploading a file and displaying progress bar

    Hi,

    I have searched the web for many tools to upload a file and shows it progress, but they all seem to use, flash, codebehindfiles, php etc. I was looking for one that used pure Javascript was wondering if anyone could help?

    Thanks

    Marcel.

  • #2
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    17,731
    Thanks
    202
    Thanked 2,508 Times in 2,486 Posts
    Pure Javascript has no ability to communicate with the server, so cannot do this. You need to use Flash.

    All advice is supplied packaged by intellectual weight, and not by volume. Contents may settle slightly in transit.

    All the code given in this post has been tested and is intended to address the question asked.
    Unless stated otherwise it is not just a demonstration.

  • #3
    Senior Coder rnd me's Avatar
    Join Date
    Jun 2007
    Location
    Urbana
    Posts
    4,184
    Thanks
    10
    Thanked 569 Times in 550 Posts
    watch the recent google video html5: the how and the wow for a complete walk-though of handling files in javascript.

    don't listen to dreadfully misleading BS like "Pure Javascript has no ability to communicate with the server"; i'm sure there's some point he can twist to be semantically "right" in some way, but who cares? the fact remains that there are half a dozen ways browsers and servers can talk.

    you could say the pure js cannot talk to the user, which is just as arguable since to technically display anything you need non-js dom functions like alert or document.write, but it's as meaningless a distinction to make becuase last time i checked, browsers come with window.alert()...


    Philip M: do you need links to a tutorial to introduce you to ajax, jsonp, cookies, FileReader, img pings, or other common ways that Javascript communicates with the server using?
    my site (updated 13/9/26)
    BROWSER STATS [% share] (2014/1/19) IE7:0.2, IE8:6.7, IE11:7.4, IE9:3.8, IE10:4.4, FF:18.3, CH:43.6, SF:7.8, MOBILE:27.5

  • #4
    Regular Coder low tech's Avatar
    Join Date
    Dec 2009
    Posts
    838
    Thanks
    172
    Thanked 90 Times in 90 Posts
    #rnd me


    watch the recent google video html5: the how and the wow for a complete walk-though of handling files in javascript.
    Can you post a link if possible please---- I've searched using those words and loads of stuff comes up but I can't locate the video

    LT

  • #5
    Senior Coder rnd me's Avatar
    Join Date
    Jun 2007
    Location
    Urbana
    Posts
    4,184
    Thanks
    10
    Thanked 569 Times in 550 Posts
    http://www.youtube.com/watch?v=WlwY6_W4VG8

    my favorite part is the jurrassic-park-like 3d file browser using files they drug into the html5 console..

    it's a great demo of using simple combinations of sparse amounts webgl, drag and drop, filereader and localstorage to create an amazing user interaction. "it's a unix system!"...
    my site (updated 13/9/26)
    BROWSER STATS [% share] (2014/1/19) IE7:0.2, IE8:6.7, IE11:7.4, IE9:3.8, IE10:4.4, FF:18.3, CH:43.6, SF:7.8, MOBILE:27.5

  • Users who have thanked rnd me for this post:

    low tech (07-09-2011)

  • #6
    Regular Coder low tech's Avatar
    Join Date
    Dec 2009
    Posts
    838
    Thanks
    172
    Thanked 90 Times in 90 Posts
    Hi rnd

    I was unable to locate it yesterday regardless of seaching.


    Thanks for the link


    LT

  • #7
    Senior Coder rnd me's Avatar
    Join Date
    Jun 2007
    Location
    Urbana
    Posts
    4,184
    Thanks
    10
    Thanked 569 Times in 550 Posts
    Quote Originally Posted by low tech View Post
    Hi rnd

    I was unable to locate it yesterday regardless of seaching.


    Thanks for the link


    LT
    np. i do what i can to spread the love.

    i only invested years in learning JavaScript only upon learning that it can load a file; i take it personally when people spread rumors denigrating its capabilities.
    my site (updated 13/9/26)
    BROWSER STATS [% share] (2014/1/19) IE7:0.2, IE8:6.7, IE11:7.4, IE9:3.8, IE10:4.4, FF:18.3, CH:43.6, SF:7.8, MOBILE:27.5

  • #8
    Regular Coder low tech's Avatar
    Join Date
    Dec 2009
    Posts
    838
    Thanks
    172
    Thanked 90 Times in 90 Posts
    HI rnd me

    Well i'm only in the early years of learning JS (PHP wa wa wa )

    Anyway -- I have several sources of reference at my disposal to learn from --- the JS bible for one ---- but after watching that video I already feel I'm way way way out of date with my materials hahahaa

    Good video, enjoyed it ---- it's like a sneaky peak into the future Scary.


    LT


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •