dynamic form manipulation

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
mzfp2
Forum Contributor
Posts: 137
Joined: Mon Nov 11, 2002 9:44 am
Location: UK
Contact:

dynamic form manipulation

Post by mzfp2 »

Hi

Im trying to manipulate a forms input before submitting it dynamically like this

function submitForm(str_Action)
{
document.forms.frm_Categories.ActionType.Value = "str_Action";
document.forms.frm_Categories.submit();
}

however the new value never appears on the action page, the form seems to retain its original value for ActionType

Unfortunately I'm using ASP to process this form (not by choice), but Im sure ive done the same thing before using a PHP script to process it and its workes fine!
User avatar
Wayne
Forum Contributor
Posts: 339
Joined: Wed Jun 05, 2002 10:59 am

Post by Wayne »

try

Code: Select all

function submitForm(str_Action) 
{ 
document.frm_Categories.ActionType.Value = str_Action; 
document.frm_Categories.submit(); 
}
Post Reply