PDA

View Full Version : JavaScript variable to Java Function



gamodg
09-19-2008, 07:34 AM
Hi
I have a function
function verifyIP(IPAddress){
var errorString="";
var returnval;
if(IPAddress=="0.0.0.0" || IPAddress=="255.255.255.255"){
errorString=errorString+IPAddress+" is a special IPAddress";
returnval=false;
alert(errorString);
form.ipaddr.value="";
form.ipaddr.focus();
}
else{
Here i want to use IPAddress variable and pass it to java function Boolean connect(String ip){}
// ID of IPAddress text field is ipaddr
returnval= false;
}
return returnval;
}
Please help me