473,508 Members | 4,179 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

field.value problem, anyone knows of a solution?

hi guys and gals,
recently u may have seen or noticed that some of your scripts including
mine, for picture preview stoped working especially if u are using IE 7,
since they changed the content of the field.value to contain only the file
name without the path.
so if u are trying to give a picture source the path and file name in
field.value, the result is a source that is wrong.
here is my code (partial) so u can see what am talking about.
<html>
<IMG name=myimg height="100">
<form action="uploadpic.php" method="post"
ENCTYPE="multipart/form-data">
File: <input type="file" name="file" onChange="myimg.src=file.value"
size="30"> <input type="submit" value="Upload!">
<input name="cid" type="hidden" id="cid" value="'.$clientid.'">
</form>
</html>
hey Gurus out there, do u know of any solution?
thanks
Jim
Jun 4 '06 #1
1 1307
Jim S. said the following on 6/4/2006 1:00 PM:
hi guys and gals,
recently u may have seen or noticed that some of your scripts including
mine, for picture preview stoped working especially if u are using IE 7,
since they changed the content of the field.value to contain only the file
name without the path.
so if u are trying to give a picture source the path and file name in
field.value, the result is a source that is wrong.
here is my code (partial) so u can see what am talking about.
<html>
<IMG name=myimg height="100">
<form action="uploadpic.php" method="post"
ENCTYPE="multipart/form-data">
File: <input type="file" name="file" onChange="myimg.src=file.value"
size="30"> <input type="submit" value="Upload!">
<input name="cid" type="hidden" id="cid" value="'.$clientid.'">
</form>
</html>
hey Gurus out there, do u know of any solution?


Upload the image, display it from the server, install a spell checker,
and all is fine.

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Jun 4 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

15
6915
by: keweiming | last post by:
I have a project which needs to open hundreds to thousands of files for writing. The following is a simplified test program I wrote to see if I can use a map<string, ofstream> object to keep the...
1
2751
by: smash2004 | last post by:
I want to keep selected values in select list when i click on another option...with a click on a mouse... if i have 3 options in select list and i click first option..it gets selected..if i then...
1
437
by: dulcie | last post by:
>>When you say "list", I hear 1-to-many relationship. Should you not have a related table with a single record per paper rather than a text/memo field containing a textual list of papers?<<< ...
8
18304
by: Lyn | last post by:
Hi, Can anyone tell me how the initial value displayed in Combo Box is determined when a form is opened? I am loading the dropdown from one field ("CategoryName") of a table, with "ORDER BY ". ...
5
1540
by: Javier Campos | last post by:
WARNING: This is an HTML post, for the sake of readability, if your client can see HTML posts, do it, it doesn't contain any script or virus :-) I can reformat a non-HTML post if you want me to (and...
8
3364
by: nick | last post by:
I have a problem and I've been using a cheezy work around and was wondering if anyone else out there has a better solution. The problem: Let's say I have a web application appA. Locally, I set...
4
4189
by: dtblankenship | last post by:
Hello everyone, I know this question has been asked many times in the forums, and after spending a few days reading, I am still confused as to the answer. I have a ListBox (lstBox),...
5
11389
by: mehere | last post by:
Please excuse me if I am posting in wrong NG. Can someone explain how I can use javascript (I am assuming this is the best way to do it) to add two field values together. I.e. field 1 plus field...
1
2612
by: peck2000 | last post by:
Related to my earleir post ... this is the same project to re-purpose the Classifieds application in BEGINNING ASP 3.0 (Wrox) to a comicbook database ... This is a brainteaser that should have...
0
7332
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
7393
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
7058
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...
1
5057
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
4715
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3206
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...
0
3191
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1565
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
426
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...

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.