473,774 Members | 2,147 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Copy File Field Value to Dynamic File Field Value

Firefox showed me a security error when I was copying a value of file
field object into new DOM created input file field. Can I do something
about it?
Thanks.

Nov 7 '07 #1
19 6072
VUNETdotUS wrote:
Firefox showed me a security error when I was copying a value of file
field object into new DOM created input file field. Can I do something
about it?
Nope, it's a security issue, you're not able to manipulate file fields.

--
# Regards || piotr[.]solnica[at]gmail[.]com || jid : s0****@jabster. pl #
# s0lnic || http://blog.solnic.in5.pl || icq : 385935391 #
Nov 7 '07 #2
On Nov 7, 9:55 am, s0lnic <l...@my.sigwro te:
VUNETdotUS wrote:
Firefox showed me a security error when I was copying a value of file
field object into new DOM created input file field. Can I do something
about it?

Nope, it's a security issue, you're not able to manipulate file fields.

--
# Regards || piotr[.]solnica[at]gmail[.]com || jid : s0l...@jabster. pl #
# s0lnic ||http://blog.solnic.in5.pl || icq : 385935391 #
can I copy input as a DOM object to another form (thus keeping its
value)?

Nov 7 '07 #3
VUNETdotUS said the following on 11/7/2007 9:33 AM:
Firefox showed me a security error when I was copying a value of file
field object into new DOM created input file field. Can I do something
about it?
Yes. Stop trying to copy the value of a file input.

--
Randy
Chance Favors The Prepared Mind
comp.lang.javas cript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Nov 7 '07 #4
On Nov 7, 12:51 pm, Randy Webb <HikksNotAtH... @aol.comwrote:
VUNETdotUS said the following on 11/7/2007 9:33 AM:
Firefox showed me a security error when I was copying a value of file
field object into new DOM created input file field. Can I do something
about it?

Yes. Stop trying to copy the value of a file input.
Sounds inspiring.
>
--
Randy
Chance Favors The Prepared Mind
comp.lang.javas cript FAQ -http://jibbering.com/faq/index.html
Javascript Best Practices -http://www.JavascriptT oolbox.com/bestpractices/

Nov 7 '07 #5
VUNETdotUS said the following on 11/7/2007 1:41 PM:
On Nov 7, 12:51 pm, Randy Webb <HikksNotAtH... @aol.comwrote:
>VUNETdotUS said the following on 11/7/2007 9:33 AM:
>>Firefox showed me a security error when I was copying a value of file
field object into new DOM created input file field. Can I do something
about it?
Yes. Stop trying to copy the value of a file input.

Sounds inspiring.
Whether inspiring or not, it is true.

--
Randy
Chance Favors The Prepared Mind
comp.lang.javas cript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Nov 7 '07 #6
On Nov 7, 3:40 pm, VUNETdotUS <vunet...@gmail .comwrote:
On Nov 7, 3:28 pm, Darko <darko.maksimo. ..@gmail.comwro te:
s0lnic. cloneNode seems to be not browser compatible, doesn't it? I'll
try to test now...
Thanks.
Obviously, IE doe snot support. Is anyone familiar with cross browser
idea for cloning?
Nov 7 '07 #7
VUNETdotUS wrote:
Obviously, IE doe snot support. Is anyone familiar with cross browser
idea for cloning?
Oh well ;) Why do you want to clone them anyway? What do you want to
achieve?

--
# Regards || piotr[.]solnica[at]gmail[.]com || jid : s0****@jabster. pl #
# s0lnic || http://blog.solnic.in5.pl || icq : 385935391 #
Nov 7 '07 #8
On Nov 7, 5:05 pm, s0lnic <l...@my.sigwro te:
VUNETdotUS wrote:
Obviously, IE doe snot support. Is anyone familiar with cross browser
idea for cloning?

Oh well ;) Why do you want to clone them anyway? What do you want to
achieve?

--
# Regards || piotr[.]solnica[at]gmail[.]com || jid : s0l...@jabster. pl #
# s0lnic ||http://blog.solnic.in5.pl || icq : 385935391 #
I need it to upload the files without refreshing the page. So, my new
hidden,
dynamically created DOM
form is submitting file value to iframe and user keeps on working with
current
visible form.

Nov 7 '07 #9
VUNETdotUS wrote:
I need it to upload the files without refreshing the page. So, my new
hidden,
dynamically created DOM
form is submitting file value to iframe and user keeps on working with
current
visible form.
Oh, so submit the form and dynamically create a new one...user won't see
anything, don't worry. This method works on every major browser.

--
# Regards || piotr[.]solnica[at]gmail[.]com || jid : s0****@jabster. pl #
# s0lnic || http://blog.solnic.in5.pl || icq : 385935391 #
Nov 7 '07 #10

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

Similar topics

3
5911
by: Tim Pollard | last post by:
Hi I'm not much of a javascripter, so I don't know whether this is possible, but...... I have a pop-up window in my asp web app which lets the user select a record from table1 from an alphabetical list - you know, the A | B | C | D filter thang. At the moment they have to cut and paste the appropriate recordID into
2
2387
by: Marc Elser | last post by:
Hi, I have a html form which is created by a cgi-script which sometimes opens a popup window. This popup window reads it's content from a hidden field in the openers form and writes it through document.write. The content of this popup itself can also be small forms for example a couple of radio button or textfields or things like that and every popup has it's own "save" button, When the user clicks "save" I have to read all the form...
1
1967
by: Simon Gare | last post by:
Hi I need to compare a dynamic field in an asp page to a field in another table, if there is no match then i would like to chane the row colour ( see code below). The problem Im having is that the comparison should be one of many entries in that db field, at the moment it only compares the first field in the db. Please Help
2
3466
by: Robert Fitzpatrick | last post by:
Does COPY require values for each column even though the database field is not set to NOT NULL? I did a COPY TO first to line up the data and then COPY FROM a tab delimited file. Here are the first 5 fields in the first line of the incoming file (omit the quotes, I put them there to see where the start and end of the line is), you should find 3 tabs after the second '1': '1 1 ' I have a table with this structure below and when...
2
7651
by: hotflash | last post by:
Hi All, I found the best pure ASP code to upload a file to either server and/or MS Access Database. It works fine for me however, there is one thing that I don't like and have tried to fix but don't have any luck is to do a form validation. This script requires the files: db-file-to-disk.asp and _upload.asp. There is a DESCRIPTION field in the db-file-to-disk.asp file, what I want to do is the user has to field out this fied before...
2
2917
by: hotflash | last post by:
Hi Master CroCrew, I found a good PURE ASP that will allow you to upload 10MB file to the server and the file contents such as Network, Author, Title, etc... will insert to MS Access at the same time. Below is a working script that I used. Let's say after the file is uploaded to the server and a record created with the file contents above to the MS Access (using the script below). If I want to UPDATE that record let's say, change the...
15
5276
by: lxyone | last post by:
Using a flat file containing table names, fields, values whats the best way of creating html pages? I want control over the html pages ie 1. layout 2. what data to show 3. what controls to show - text boxes, input boxes, buttons, hyperlinks ie the usual. The data is not obtained directly from a database.
4
4890
by: Michael Munch | last post by:
Hi I want to read the value of af text-field, create dynamic, in a form. Se below a small test-site to do that (but readning fails): I use the function Test_Read for reading the value from the dynamic create text-field "txtName". I thanks...
1
19821
DebadattaMishra
by: DebadattaMishra | last post by:
Introduction In case of rich applications, you must have observed that a text field behaves like a dynamic combo box. When the user enters some characters in the text field, a popup will come up with a list of values as suggestions to the user. This feature is called auto completion. In case of Eclipse editor, you must have seen while writing java code, if the developers presses "Ctrl+Space" a dynamic list box come up with multiple...
0
9621
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...
1
10040
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9914
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
8939
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...
0
5355
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5484
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4012
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 we have to send another system
2
3611
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2852
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.