Advertisement

08.26.2006 at 09:27AM PDT, ID: 21968439
[x]
Attachment Details

Onchange Please READ 500 Points

Asked by Scripter25 in JavaScript

Tags: javascript, onchange, get

Ok here it goes I posted this under the ASP section already with no reply so hopefully I get a reply under the javascript section


I know Dundas Upload is a bit old but it was free so I took it and believe it or not it works well so far on server 2003

Ok I need to get the filename from the file box (text box) before it is uploaded to the server.

This is why
I do not like the unique file name feature they have for it but seeing as how there will definately be some schmuck out there that willl upload the a different file with the same name and overwrite the first one I need to use it only in those instances.

So here it goes I need to check the filename that is in the filebox prior to it being uploaded and verify that it is not already on the server

So I am not sure how to get that name using the Dundas control but I am pretty sure that I could use a javascript function on that filebox by utilizing the Onchange() ..... Now here is the million dolloar question how do you write a javascript function that will take the value of the filebox and take everything away execpt for the filename? I could have that the javascript function automatically post that into a hidden field so that I can pass that over to the second form.


If that is not the best way to go about it and someone has a better way please let me know.....

Start Free Trial
[+][-]08.26.2006 at 09:33AM PDT, ID: 17396356

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: JavaScript
Tags: javascript, onchange, get
Sign Up Now!
Solution Provided By: Roonaan
Participating Experts: 2
Solution Grade: A
 
 
[+][-]08.26.2006 at 09:41AM PDT, ID: 17396385

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]08.26.2006 at 09:53AM PDT, ID: 17396422

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.26.2006 at 10:02AM PDT, ID: 17396445

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32