473,466 Members | 1,377 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

picture preview not working in firefox

pradeepjain
563 Contributor
Hii guys,
I used http://javascript.internet.com/forms...d-preview.html

for picture preview .Its working in IE but not in firefox .and ya he has said directly that works only in IE.how to make it work on firefox
Oct 14 '08 #1
5 2343
acoder
16,027 Recognized Expert Moderator MVP
JavaScript cannot access the local file system (except in lower security settings/privileges enabled/changed user settings), so the only way (in a normal internet application) is to upload the image and then show the preview from the server-side.
Oct 14 '08 #2
pradeepjain
563 Contributor
JavaScript cannot access the local file system (except in lower security settings/privileges enabled/changed user settings), so the only way (in a normal internet application) is to upload the image and then show the preview from the server-side.
oh ok..Do you have any example of this which i can refer to....
Oct 14 '08 #3
acoder
16,027 Recognized Expert Moderator MVP
You could use an Ajax file upload (example) and then display the uploaded file. If not all previewed files are uploaded, you may want to upload them to a temporary directory which is periodically emptied. You may also want to ask yourself if having an image upload preview is essential.
Oct 14 '08 #4
pradeepjain
563 Contributor
You could use an Ajax file upload (example) and then display the uploaded file. If not all previewed files are uploaded, you may want to upload them to a temporary directory which is periodically emptied. You may also want to ask yourself if having an image upload preview is essential.

Hey my earlier forms did not have any preview feature users were directly uploading their picture (I had a disclaimer saying that there is no preview option so choose picture properly) .I that of creating a preview function which i can use for later use.Hey what is the standard followed everywhere .As per i have seen preview of picture is shown when i select my picture ...
Oct 14 '08 #5
acoder
16,027 Recognized Expert Moderator MVP
You could leave it up to the user. Keep the feature in case users use browsers which allow it or change their settings to allow it.

If you want all users to have this preview feature, another alternative is to post to a new window and display the uploaded file, but then you'd have the problem of pop-up windows.
Oct 14 '08 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

16
by: Neo Geshel | last post by:
I'm helping on a web site, and it's got our knickers in a knot. We're using the same basic CSS files (with mods) and same headers as from our other sites, but the "print preview" won't work...
13
by: Jim Carlock | last post by:
I have over a hundred pictures I would like to present. Is it practical to create and parse an array of pictures, picture paths, et al using server-side scripting to accomplish this? I...
4
by: NASAdude | last post by:
I'm working on distributing a database using VS Tools for Office, and am having trouble with linked images on forms/reports. The image objects have a default path\file set on the .Picture property,...
3
by: Jim S. | last post by:
ok, am trying to do a picture preview before i upload a picture, but i have a tiny problem , it used to work but, not anymore. here is the partial code (u do not need more to find the problem):...
3
by: Michael A. Covington | last post by:
How easy is it to extend OpenFileDialog so that when a file is selected (clicked), my code will be called to extract some information from the file and display a picture?
1
by: loupet | last post by:
Hello all I am new here and this is my first post. I have tried several javascripts to preview an image on a web page using the "input type=file" to Browse and preview the image. Using IE...
9
by: igotyourdotnet | last post by:
I need to create a print preview page BUT my page I need to print has a grid and in the grid I have 2 or 3 columns that have links I want to hide the columns with the links on my print preview page...
3
by: narayana143reddy | last post by:
<html dir="ltr" xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head><title>table print preview test</title></head> <body> <table style ="vertical-align:top;border:40px,50px">...
6
by: Joaquim Amado Lopes | last post by:
Greetings. Is there any way, in Javascript, to put in 2 variables the width and height of a picture, given the filename and without the picture being displayed in the webpage? Thank you,...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.