jeanpaul1979
12-06-2010, 04:36 PM
Hi, I'm having a bit of trouble with this here...
Before I submit the form with JS I update an input field with js like this:
Code:
document.getElementById('IC_Checksum').value = data;
imaginaryform.submit();
The problem is that the updated value is not sent along with the post data. Instead the old value is sent along.
When i submit the form with a button afterwards though (not auto submit after the value is set), then the value is sent along fine.
But that's not how I want it to work...
Can anyone tell me how I can send the value that I'm setting with JS along with the post data like this?
Before I submit the form with JS I update an input field with js like this:
Code:
document.getElementById('IC_Checksum').value = data;
imaginaryform.submit();
The problem is that the updated value is not sent along with the post data. Instead the old value is sent along.
When i submit the form with a button afterwards though (not auto submit after the value is set), then the value is sent along fine.
But that's not how I want it to work...
Can anyone tell me how I can send the value that I'm setting with JS along with the post data like this?