The Un-Official Proxomitron Forum

Full Version: Rewrite formdata or change inlinecode
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello,

I'm not familiar with scripting at all, so I aprreciate any help I can get.
What I'm trying to do.

I have an router with a webform (https) and I need to fill out on field with data. When I sent the form this field is checking my input via inline code and is not accepting my input. These checks are nonsense and I need to get rid of these check or at least I need to set another value inside an if-Loop, where the script checks my value if it is between to given values. So I need to extend this.
Or alternativly I need to change my send data after the script checked my input and before sending the data to the router.
But how can I do that. Is there anybody who did something already?
Any help is welcome

Regards
Oliver

This is the code of the Config-Webpage where I need to change the highlighted value:

if(document.forms[0].ZDAT3_mtu.value=="" || isNValidInt(document.forms[0].ZDAT3_mtu.value) || document.forms[0].ZDAT3_mtu.value<1440 || document.forms[0].ZDAT3_mtu.value>1492)
{
alert(mld10_NetzwerkWAN);
document.forms[0].ZDAT3_mtu.value = "";
document.forms[0].ZDAT3_mtu.focus();
return false;
}

break;
}
So your router's configuration page has an address like https://172.16.0.1/ ?
The code from that address contains the value that you want to change?

A Proxomitron filter may modify the value. However, if the code to be modified is encrypted (https), you will need to enable SSL filtering, http://www.proxomitron.info/45/help/CfgT5.html . DLLs at http://www.proxomitron.info/files/index.html .

Code:
[Patterns]
Name = "Sample"
Active = TRUE
URL = "172.16.0.1/"
Limit = 16
Match = "mtu.value<1440"
Replace = "mtu.value<yournumberhere"

Have you used the Proxomitron before?
Do you need to patch your Proxomitron's exe to allow RWIN greater than 32768?

HTH
Reference URL's