|
Rank: Newbie Groups: Member
Joined: 5/22/2008 Posts: 3
|
Greetings!
I am trying to build a wizard like interface for the uploader. I have placed eo_Multiview inside of the layout template of an eo_Uploader inside an eo_dialog so i can break the elements down and place them on different pages. My problem is once the file is selected, if the user cancels the dialog before its uploaded it leaves garbage the next time the dialog is opened.
I'm sure it has to do with the uploader filling in the placeholder, but how can i reset it?
Thanks!!
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,193
|
Hi Bill,
We tested with a very simple page and it seems to be working fine. Can you post your page source so that we can try and see the problem at here? Make sure the page can run because otherwise we won't be able to make the problem happen here.
Thanks!
|
|
Rank: Newbie Groups: Member
Joined: 5/22/2008 Posts: 3
|
Any chance for an email address so i can attach a file? The code is ugly and i want to save me the embaressment of it being public. :)
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,193
|
Hi Bill,
I have sent you a private message with the email address.
Thanks!
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,193
|
Hi,
We looked into the sample page you sent to us. When you say "it leaves garbage the next time the dialog is opened", do you mean the old selected file name still appears in the textbox? We though you meant some screen artifacts.
The file name will stay there when you did not upload the file. It can not be cleared by JavaScript because browser disallows a file input's value to be changed by JavaScript (otherwise people will be able to write webpage that automatically grabs files from user's machine). It will only be cleared if:
1. The file is either uploaded or canceled half way; 2. The page is reloaded;
In your case obviously condition 1 can not be met. Option 2 can be met by causing a page postback. You can do that by calling __doPostBack. And you can use an UpdatePanel to avoid full page reload.
Thanks
|
|