Board index » delphi » Dynamically change form's action
Vernon
![]() Delphi Developer |
Dynamically change form's action2005-02-05 03:13:10 AM delphi163 Hi all, This is more of a java script question than a web broker question but I'm hoping someone has run across similar before. I would like to set the action of a form on the fly and then submit... seems reasonable enough.. I have the function funtion MySubmit( sAction, AForm ) { AForm.action = sAction; .... AForm.submit(); } the function is called on the page like MySubmit( 'myweb.com/my_isapi.dll/hello', MyFormName ) MyFormName is defined as: <form name="MyFormName" method="POST"> <input type="hidden" name="myaction" value=""> </form> It doesn't seem to set the action variable... not sure why.. no errors.. Any ideas, Thanks |