Javascript

Discussion in 'ASP .Net' started by =?Utf-8?B?dmluYXk=?=, Jan 31, 2007.

  1. Hi

    i want to UPLOAD documents using JAVASCRIPT on Client Side.

    My Q is how to read the DOCUMENT on the CLIENT mc and pack it in an XML
    below, i will be streaming the XML to the Server (Dont bother abt the
    streaming part).

    <FILE_MSG>
    <FILENAME>filename<FILENAME>
    <FILESIZE>filesize<FILESIZE>
    <FILECONTENT>fileCntnt</FILECONTENT>
    </FILE_MSG>



    =====
    vInAypAtHi
    o__
    ---_,>/'_------
    (_) \(_)
    ---------------
    =?Utf-8?B?dmluYXk=?=, Jan 31, 2007
    #1
    1. Advertising

  2. =?Utf-8?B?dmluYXk=?=

    bruce barker Guest

    the only way with the browser is to use the <input type="file"> element.
    the javascript cannot see the file content (unless the server
    posts it back). to do what you want you would need to write an active/x
    control.

    -- bruce (sqlwork.com)


    vinay wrote:
    > Hi
    >
    > i want to UPLOAD documents using JAVASCRIPT on Client Side.
    >
    > My Q is how to read the DOCUMENT on the CLIENT mc and pack it in an XML
    > below, i will be streaming the XML to the Server (Dont bother abt the
    > streaming part).
    >
    > <FILE_MSG>
    > <FILENAME>filename<FILENAME>
    > <FILESIZE>filesize<FILESIZE>
    > <FILECONTENT>fileCntnt</FILECONTENT>
    > </FILE_MSG>
    >
    >
    >
    > =====
    > vInAypAtHi
    > o__
    > ---_,>/'_------
    > (_) \(_)
    > ---------------
    bruce barker, Jan 31, 2007
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. mcdeveloper
    Replies:
    1
    Views:
    4,185
    mcdeveloper
    Jun 13, 2006
  2. CRON
    Replies:
    24
    Views:
    200,638
    Adrienne Boswell
    Jun 20, 2006
  3. Mark Rae

    JavaScript or not JavaScript

    Mark Rae, Sep 5, 2006, in forum: ASP .Net
    Replies:
    36
    Views:
    1,085
    Paul Sture
    Sep 9, 2006
  4. Nathan Sokalski
    Replies:
    4
    Views:
    577
    PJ on Development
    Nov 8, 2007
  5. Lisa Calla
    Replies:
    0
    Views:
    269
    Lisa Calla
    Nov 9, 2004
Loading...

Share This Page