var str = document.forms.elementName.value;
Hi Eric Thanks for such a quick response. However, how would I add the value as a parameter. The input control has already fired and the only event I can get would be onchange. Unless I do a real ugly kludge or two buttons and attached the js function call to the second to get the value of the path and submit the form from within the js function. I shudder to think about it. Correct?
Joined: Nov 08, 2001
I have no clue what in the world you are talking about.
Hi Eric Sorry I was so maladroit. My problem in understanding is that I want to read the local path of the file the user chooses and post it as a parameter to the action. I need that path b/c the file is not moving and I just want to record its current location in a database. So my understanding is that I can only get a js function to "fire" if I attached the function to an js event handler. The only event handler I have is onsubmit when they submit their choice.
My problem is how do I use js to grab the value of the full file path, rewrite the action with the value as a parameter, and allow the submit to continue(didnt realize the s&m in programming, grin).
If I understand it correctly then there is a submit button clicking on which would call your action class and you need to pass the fileName along to that action class from where you will store this URL in the database.
If it is then you can do something like this. Have an hidden field and set url to this hidden field on submit.
Hope this helps.
Joined: Aug 27, 2005
Hi Sarithia Excellent. Thank you, a learning experience.