I’ve been bashing my head against the wall for hours trying to figure this one out. I’m using a Rabbit Core 4000 module. I have a form that uses the HTML POST method to get the data to the C program (using #web_update). It works flawlessly as long as I call it directly:
If I click “Submit” all works as expected. The rabbitweb variable contains the value from field1.
Now, if I write a basic javascript handler for the form:
function javaSubmit() {
document.myForm.submit();
}
That also works as planned. Calling that function activates my callback function in C and I get the “field1” variable updated.
However, if I try this:
function javaSubmit() {
document.myForm.field1.value = "B";
document.myForm.submit();
}
The callback function is never called and the data is not submitted to the C program.
Note that I tried the same exact program using an Apache web server and PHP to read the POST variable, and it is correctly updated. So why isn’t the Rabbit module picking up the changes?
ED