Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #8129

Re: Upload and Preview Image with Javascript with making any server calls

Path csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!nx02.iad01.newshosting.com!newshosting.com!news-out.readnews.com!transit3.readnews.com!postnews.google.com!e15g2000vba.googlegroups.com!not-for-mail
From "Michael Haufe (TNO)" <tno@thenewobjective.com>
Newsgroups comp.lang.javascript
Subject Re: Upload and Preview Image with Javascript with making any server calls
Date Tue, 8 Nov 2011 04:51:28 -0800 (PST)
Organization http://groups.google.com
Lines 25
Message-ID <2bd2fc51-c63d-4570-9aca-9f657105bc6e@e15g2000vba.googlegroups.com> (permalink)
References <10505808.1085.1320594668508.JavaMail.geo-discussion-forums@yqhd1>
NNTP-Posting-Host 99.41.106.49
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1
Content-Transfer-Encoding quoted-printable
X-Trace posting.google.com 1320756688 8510 127.0.0.1 (8 Nov 2011 12:51:28 GMT)
X-Complaints-To groups-abuse@google.com
NNTP-Posting-Date Tue, 8 Nov 2011 12:51:28 +0000 (UTC)
Complaints-To groups-abuse@google.com
Injection-Info e15g2000vba.googlegroups.com; posting-host=99.41.106.49; posting-account=hYRygAoAAABkmvJVmPilz9Q1TOjgPQAq
User-Agent G2/1.0
X-Google-Web-Client true
X-Google-Header-Order HUALESNKRC
X-HTTP-UserAgent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:7.0.1) Gecko/20100101 Firefox/7.0.1,gzip(gfe)
Xref x330-a1.tempe.blueboxinc.net comp.lang.javascript:8129

Show key headers only | View raw


On Nov 6, 9:51 am, kiran <kiranmb...@gmail.com> wrote:
> HI All,
>
> I have a requirement here wherein I have to upload a image preferably JPEG and Preview it to the users.I know there are some ways of doing it like uploading the image and storing it in the server via ajax or server side programs and then bringing it back to the user for preview. But I do not want to go that way,
>
> I was thinking it is possible that user upload the image, JS somehow stores the image data in the variable  in the runtime and then displays it in the predefined area to the user and once he is satisfed with image, then maybe he can save it to the server.

See this:

<https://hacks.mozilla.org/2011/01/how-to-develop-a-html5-image-
uploader/>

Note that for older browsers this will not work. For example, in
Internet explorer you cannot get the path to the file but instead a
fakepath. For non-compliant browsers you'll have to use the server or
fallback to Java/Flash/HTA to do the file browsing portion to get the
appropriate path.

Back to comp.lang.javascript | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Upload and Preview Image with Javascript with making any server calls kiran <kiranmbadi@gmail.com> - 2011-11-06 07:51 -0800
  Re: Upload and Preview Image with Javascript with making any server calls kiran <kiranmbadi@gmail.com> - 2011-11-07 16:27 -0800
  Re: Upload and Preview Image with Javascript with making any server calls Elegie <elegie@anonymous.invalid> - 2011-11-08 10:06 +0100
  Re: Upload and Preview Image with Javascript with making any server calls "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2011-11-08 04:51 -0800
    Re: Upload and Preview Image with Javascript with making any server calls kiran <kiranmbadi@gmail.com> - 2011-11-08 17:21 -0800
      Re: Upload and Preview Image with Javascript with making any server calls Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2011-11-09 02:51 +0100
    Re: Upload and Preview Image with Javascript with making any server calls kiran <kiranmbadi@gmail.com> - 2011-11-08 17:22 -0800
      Re: Upload and Preview Image with Javascript with making any server calls kiran <kiranmbadi@gmail.com> - 2011-11-08 19:20 -0800

csiph-web