Hello javascript users,
I recently started building a large web application in python.
In order to get erroneous data from the client side i created a secure xmlrpc server that handles the submitted data.
I know for sure this server works correctly because with a client side written in python the extracted values are correct. The problem i'm experiencing is that i just don't have the know how to transfer this code into javascript code
i'll post the python code below hope someone can help me convert this to javascript code.
import xmlrpclib
server = xmlrpclib.Server(' # a server object is created
print server.add(1,2)
print server.div(10,4)
print server.mult(3,7)
this is a very basic example where 3 methods are created in the server add / div and mult. These methods all need 2 variables to calculate the result.
thanks in advance for your help,
regards,
richard mendes
I recently started building a large web application in python.
In order to get erroneous data from the client side i created a secure xmlrpc server that handles the submitted data.
I know for sure this server works correctly because with a client side written in python the extracted values are correct. The problem i'm experiencing is that i just don't have the know how to transfer this code into javascript code
i'll post the python code below hope someone can help me convert this to javascript code.
import xmlrpclib
server = xmlrpclib.Server(' # a server object is created
print server.add(1,2)
print server.div(10,4)
print server.mult(3,7)
this is a very basic example where 3 methods are created in the server add / div and mult. These methods all need 2 variables to calculate the result.
thanks in advance for your help,
regards,
richard mendes