I am trying to access website http://www.billing.mppkvvcl.org/wzltbill.asp. On this page I need to choose "Service Number" and provide service number in text box.
In the background it executes
form id="ActionForm" name="LTViewFrm" class="atnbill" method="post" action="wzltatnpay.asp" onsubmit="return yav.performCheck('LTViewFrm',LTViewArray,'classic');"
I am trying to use HttpURLConnection to do this but I am having some problem in accessing asp class and asp method.
Please let me know if someone has any idea to do this.
Thanks.
You should look into httpclient library, as it provides feature on form submission. Check out this example code on how to submit form using the library.
Related
A client would like us to add a Captcha to their form at http://www.vilaswi.com/contact/. However, they use a 3rd party to run their authentication through http://www.innline.com/mailforms/vilasform/Record.asp so the form data displayed to the user is really the only thing I have control over. It looks like I can't add the Google reCaptcha PHP to the form as the action is already specified (see below).
<form action="http://www.innline.com/mailforms/vilasform/Record.asp" method="post" name="frmInfo" id="frmInfo" onsubmit="return validateForm()" class="contactform">
Google recommends download verify.php and adding that to the action. Is there another method I could use?
I have tried the honey pot method and that has not curbed the amount of spam submitted.
Thanks in advance for any help!
I have a jsp form which takes in user details. On submit button it goes to a jsp page where the details are entered into the database. But before that I would like to check if the username is available as soon as the user clicks the check availability button. How can this be done?
2 ways:
Just redisplay the same page after submitting the form wherein you conditionally display the validation message. This is rather trivial and already covered in the Hello World example in our Servlets wiki page.
Use Ajax to send an asynchronous HTTP request and manipulate the HTML DOM based on the response of the request. This requires a bit more in depth understanding of how websites really work and what JavaScript is. You can find some concrete examples in How to use Servlets and Ajax?
Use AJAX(Asynchronous Javascript and Xml). Its the best web2.0 technology. You can manipulate DOM based on the answer from server
i m new to phonegap, can please anyone tell me what will be the jquery.ajax/jquery.post call structure for getting the data from action class? or in other words what i have to give in URL attribute of call? to call action of server from mobile page?
thanx
Please take a look at http://api.jquery.com/jQuery.post/ to know how to make ajax calls using jquery.
In general URL would be < action name >.do (.action depends on struts config property) unless you are trying to access cross domain site.
Parameters are specified in data field.
Hope this answer helps you.
I am using sharepoint Office Designer 2007, to validate a checkbox (terms and conditions) through JavaScript.
Details:
I have created a custom list and in the custom there is a field called terms and conditions.
I have inserted the custom list in new .aspx page. I have changed the sharepoint checkbox to asp checkbox.
And I am trying to validate it through client validation function by aspx custom validator.
My code looks like
function TermsValidate(sender, args)
{
args.Isvalid=documnent.getelementById("ff2_1").checked);
}
The validation looks like it triggering but object required error comes up.
Did any one face or come across this problem?
Many thanks, I have figured out the way to access the checkbox control. run the code and go to viewsource from the browser get the id generated by the browser on the client.
And validate it thru the custom validator function.
Thanks everyone who tried to help me.
I would like to have a user redirected to an external credit card gate. Of course I have to POST some user info to that gate, but I don't know how exactly can I do this.
I know that I could do this by generating a html form with hidden or read-only fields and have a user click "Submit" button. But this solution is not perfect, because all the form data could be easily changed using e.g. Firebug. I think you cannot do this using $this->_redirect(...). But maybe there is some other solution?
Many thanks for any tips or suggestions.
I would like to have a user redirected to an external credit card gate. Of course I have to POST some user info to that gate, but I don't know how exactly can I do this.
Using a form is the only method available. The RFC states that the user should explicitly agree to sending a POST (i.e. click on a submit button).
I know that I could do this by generating a html form with hidden or read-only fields and have a user click "Submit" button. But this solution is not perfect, because all the form data could be easily changed using e.g.
It is no more secure that using a redirect as the header data can be modified without too much of a problem. There are even Firefox plugins to do it.
use cURL to post data
http://framework.zend.com/manual/en/zend.http.client.adapters.html