views:

13

answers:

0

In our project, we have a drop down box with a list of actions. We need to somehow implement functionality where if the user selects a certain item in the drop down box and presses the button next to it, a file upload box will be triggered. However, if anything else is selected in the drop down box, it should not trigger the file uploader.

We are using Pyjamas to develop the interface, so if there is a solution within the Pyjamas API, that would be better than standalone Javascript. The main problem we are running into is cross-browser compatibility. We should be able to run the click() method on the file input, but that is not supported in Firefox, while it is supported in Chrome and IE.

Our codebase is on Google Code here: http://code.google.com/p/cooper-redhen/source/browse/#svn/trunk/html

related questions