473,762 Members | 8,115 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

how to load image on to html page using <input type=file">

53 New Member
hi

i want to dispaly an image on my webpage which is selected using <input type="file">. is it possible. please reply urgent


regards
Mar 30 '07 #1
12 9635
AricC
1,892 Recognized Expert Top Contributor
hi

i want to dispaly an image on my webpage which is selected using <input type="file">. is it possible. please reply urgent


regards
You aren't going to be able to do this with just HTML.
Mar 30 '07 #2
menmysql
53 New Member
yes i know that, i am asking how to do that

You aren't going to be able to do this with just HTML.
Mar 30 '07 #3
AricC
1,892 Recognized Expert Top Contributor
yes i know that, i am asking how to do that
Provide more information do you want to be able to do anything else with server side scripting or just display an image.
Mar 30 '07 #4
KevinADC
4,059 Recognized Expert Specialist
hi

i want to dispaly an image on my webpage which is selected using <input type="file">. is it possible. please reply urgent


regards
PHP or Perl is most commonly used for stuff like this, but other languages could be used: ASP, ruby, python, c++, etc etc etc.

Why is this urgent?
Mar 30 '07 #5
menmysql
53 New Member
thanks for ur reply

yes it is urgent and i dont know how to use php. so plz send releated code javascript and jsp. i know bothof these. it is urgent.

regards

PHP or Perl is most commonly used for stuff like this, but other languages could be used: ASP, ruby, python, c++, etc etc etc.

Why is this urgent?
Mar 30 '07 #6
KevinADC
4,059 Recognized Expert Specialist
can't be done with javascript. jsp maybe, but I don't know jsp at all. Search on script arcives such as www.hotscripts. com for canned applications you can use.
Mar 30 '07 #7
AricC
1,892 Recognized Expert Top Contributor
thanks for ur reply

yes it is urgent and i dont know how to use php. so plz send releated code javascript and jsp. i know bothof these. it is urgent.

regards
We don't write this much code for people. As stated above there are some solutions you can get by googling.
Mar 30 '07 #8
menmysql
53 New Member
plz give some liks for that code

We don't write this much code for people. As stated above there are some solutions you can get by googling.
Mar 31 '07 #9
KevinADC
4,059 Recognized Expert Specialist
search on the archive I posted for you:

hotscripts.com


and search for file-uploader scripts or webpage manager scripts. Or use google and search for "script archives" and find a script somewhere else. I only recommend hotscripts because I have used them in the past, not because they might be any better than another script archive site. Or wait and see if Aric will post a "lik" for the "code".
Mar 31 '07 #10

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

Similar topics

2
7514
by: Bhavin | last post by:
Hi I'm trying to set default value for input type file. <input type="File" name="tx_pdffile" accept="*.pdf" class="boxText" value="abc.pdf"> but this value (abc.pdf) doesnt appear in the text box.. Whats the solution???
1
27907
by: Jesper Hermansen | last post by:
Hi! I'm making a system that will generate Winamp-playlists. To make it easy for the user to add a file to the list, I'm using <input type="file">. The problem with this is that I only get the filename, not the path, which is necessary in my situation. I cracked the problem in Firefox:
2
28576
by: Matt | last post by:
If I do the following, the browse text box still cannot see C:/hello world/test.txt. <input type="file" name="fileName" value="C:/hello world/test.txt" size=80> Any ideas? and workarounds to this problem? thanks!!
3
3099
by: Matt | last post by:
If I do the following, the browse text box still cannot see C:/hello world/test.txt. <input type="file" name="fileName" value="C:/hello world/test.txt" size=80> I realize we couldn't set the default filename for security reasons, and browsers don't support that. (http://www.cs.tut.fi/~jkorpela/forms/file.html#value). I really need to implement this feature, any workarounds to the problem?
2
8125
by: Laermans_k | last post by:
Hi, Does anyone have a solution to use the <input type="file" id="filechooser"> and the <input type="submit" id="submitbutton"> in 1 button click? I've already tried to create a javascript function behind the submitbutton click. In this function i call the filechooser.click() event and after this i call the functions to activate the progressbar of the upload. This doesn't seems to work:(
7
2674
by: Drew Berkemeyer | last post by:
I've encounted a pretty strange problem and I'm not quite sure what to make of it. I have a web service that consumes an XML file as well as a few other parameters. This web service works fine if I use the web test interface. It also works fine if I call it from an ASP.NET page that has a text box where the XML is pasted and then passed on. However, I get an exception if I use an <input type="file"> control on the ASP page that allows...
2
3827
by: Tarkeshwar | last post by:
Hi All, I want to restrict the user from being entering the value in <input type="file">. It works fine in IE but not in Mozilla. I am sending my code also which works in IE and not in Mozilla.Can anybody have the solution. Thanks in advance. code :
7
20870
by: Tim Slattery | last post by:
I'm trying to handle the onChange event in an <input type="file"> element. In IE, there's no problem: the event fires when a file in the "open" box is doubleclicked, or the "Open" button in the box is clicked, or "Enter" is hit in the attached text box. I can get the value of the element. But in Netscape 7, onChange doesn't fire until focus leaves the element. When you double-click a file name or click "open" in the Open box, the...
3
10391
by: Gert | last post by:
Would it be possible to access the file CONTENT in codebehind for a standard: <input id="htmlFile" type="file" /> Then in codebehind: foreach (string keyName in System.Web.HttpContext.Current.Request.Form.Keys) { //i can see keyName = "htmlFile" here as well as the "c:/myfile.txt" for example
0
9554
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9378
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10137
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9989
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9812
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8814
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7360
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5405
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2788
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.