Peter,
You can't do this via the onclick as the file has not yet been sent to the server at that time.
You do it in the server-side cgi script using a move instead of a copy.

As I mentioned in response to your previous thread -
Check out this thread on the Net.data forum. It references another link that contains an example of how to process a file upload.

http://dtwdude.com/index.html?SID=20101206081915314871&NRL=1

Peter

-----Original Message-----
From: web400-bounces@xxxxxxxxxxxx [mailto:web400-bounces@xxxxxxxxxxxx] On Behalf Of Peter_Vidal@xxxxxxxx
Sent: Thursday, 9 December 2010 9:38 a.m.
To: web400@xxxxxxxxxxxx
Subject: [WEB400] Pull a value from Javascript to be used in a DTW_DIRECTCALL

Hi list:

Based on this code (a CGI program with HTML and JS, using Net.Data):

=======================
<form method=post name=upform action="/cgi-bin/some-script.cgi"
enctype="multipart/form-data">
<input type=file name=uploadfile>
<p>
<input type=button name="Submit" value="Submit"
onclick="LimitAttach(this.form, this.form.uploadfile.value)"> </form>

@SndPCFile("YES", WAREHOUSE, PCFILE)
=======================

If I want to copy the value that exist here "this.form.uploadfile.value"
into the field PCFILE so I can eventually use it on the Net.Data DTW_DIRECTCALL for SndPCFile: what I need to do?

If I need to clarify it more let me know...

TIA!


PETER VIDAL
PALL CORPORATION
SR System Analyst | WH Application Development 10540 Ridge Rd., Suite 203, New Port Richey, FL 34654-5111
727-844-2414 | Fax: 727-815-3120 | www.pall.com

"Imagination is more important than knowledge"
Albert Einstein (1879 - 1955)
--
--------------------------------------------------------------------------------

Attention:

This communication may contain information that is confidential, privileged and/or exempt from disclosure under applicable law.
If you are not the intended recipient, please notify the sender immediately and delete the original, all attachments, and all copies of this communication.


--------------------------------------------------------------------------------
Visit our website www.vedaadvantage.com. It has a new design with improved navigation and search capabilities; and customer friendly interface with more relevant insights and solutions to help you make informed decisions.

#####################################################################################

This correspondence is for the named person's use only. It may contain confidential
or legally privileged information, or both. No confidentiality or privilege is waived
or lost by any mistransmission. If you receive this correspondence in error, please
immediately delete it from your system and notify the sender. You must not disclose,
copy or rely on any part of this correspondence if you are not the intended recipient.
Any views expressed in this message are those of the individual sender, except where
the sender expressly, and with authority, states them to be the views of Veda Advantage.
If you need assistance, please contact Veda Advantage on either :-
Australia 1300-921-621 or New Zealand +64 9 367 6200

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.