[web2py] Re: clean upload notnull field after being set

2011-11-29 Thread Anthony
On Tuesday, November 29, 2011 12:54:45 PM UTC-5, thodoris wrote: > > Thanx for the reply, > > Well, whenever i put the cursor on the text area a popup window opens > to choose the file, so i can't edit the text. > You're right -- I guess it depends on the browser. In IE, you can delete the filenam

[web2py] Re: clean upload notnull field after being set

2011-11-29 Thread thodoris
Thanx for the reply, Well, whenever i put the cursor on the text area a popup window opens to choose the file, so i can't edit the text. About the solution with Javascript, how can i reference the field that i want to clear? I could do something like: form.append(INPUT(_type="button", _value="C

[web2py] Re: clean upload notnull field after being set

2011-11-29 Thread Anthony
Unless you're using a special widget, once you select a file for upload, the browser should simply put the filename in the string field next to the browse button. You should be able to put the cursor in that string field and delete the filename. As an alternative, I suppose you could add a butt