Durham David Contr 805 CSPTS/SCE wrote the following on 9/14/2004 10:05 AM:
Considering that "action" was a parameter passed to a javascript function...
Here's the original code:
function swapAction( formName, action) { formAction = document.getElementById( formName ).action; newAction = '<html:rewrite page="/'+action+'.do"/>'; document.getElementById( formName ).action = newAction; }
Would you be happier if it looked like:
function swapAction( formName, actionName) { formAction = document.getElementById( formName ).action; newAction = '/myContext/'+actionName+'.do'; document.getElementById( formName ).actionName= newAction; }
all the html:rewrite does is help me write out a String for the action name in my form. I'm not sure what the big deal is.
-- Rick
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]