Thanks, how do I stop the current event from firing also as at the moment it fires when I have selected a file to upload
Main Topics
Browse All TopicsQuick question. I the moment the following code adds to a list ready for uploading upon browsing and picking a file, I have added a new 'add' submit button I dont want this button to submit the page but to do what currently happens when a user picks a file i.e. adds file to list.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
I don't understand your question. What "current event" are you referring to?
I ran the script you posted on my pc (replacing the ColdFusion parts). What I got was 1 file selector, 1 text input, and 1 submit button. I also assume they're wrapped in a <form> element.
When I select a file, a few things happen:
1. The name of the selected file is printed at the bottom of the form along with a "delete" button.
2. A new file selector is created and has the same behavior.
When I "delete" a selected file:
1. The filename disappears from the list.
2. The respective file browser disappears as well.
The text input seemingly does nothing.
What you you want this text input to do?
Ass soon as a file is selected, it's added to the list, what's the button for?
In short, the problem is that your code is tooo "coupled" (http://en.wikipedia.org/w
Check it out:
Business Accounts
Answer for Membership
by: asafadisPosted on 2009-11-07 at 20:15:34ID: 25769372
The trick is going to be "return false".
ascript/on click-retu rn-false/
ry something like:
More info here: http://www.bradino.com/jav
T
Select allOpen in new window