Where to go net Internship Summary: Javaweb using jquery submission form (javaweb)

Source: Internet
Author: User

Originally to do the purpose of data mining in which network, the structure has become a system development ...

But still more serious to do for three months, the teacher is very agree with my work attitude and results ...

The internship is coming to an end, summarizing a few things that have not been noticed before to become habits and problems, to share to everyone.


At the same time to play an advertisement: to which network Internal audit department recruit Javaweb Development intern, Time is very free, a week, Saturday Sunday even can, the time of the small partners to give me a message ah, earn a pocket money, but also a long experience .... (GPA, want to work a senior dog is the most suitable ... )



<span style= "White-space:pre" ></span><script type= "Text/javascript" >function del (ID) {if (! Confirm ("Confirm to delete?") ")) {            <span style=" White-space:pre "></span>window.event.returnvalue = false;        <span style= "White-space:pre" ></span>}else{$.ajax ({type: "Post", <strong>url: "ajaxSubmit.jsp",/ /Send form data to Ajaxsubmit.jsp</strong>data: "Source=delmonitorpoint&submitdata=" +id,contenttype: " application/x-www-form-urlencoded; Charset=utf-8 ", error:function (Request) {alert (" Failed to send requests! },success:function (data) {if (data== "1") {alert ("Operation succeeded!) "); Location.reload ();} Else{alert ("The operation failed! ");}}});}} </script>

ajaxsubmit.jsp page:

<span style= "White-space:pre" ></span><%//solve the problem of garbled, http://blog.csdn.net/wallimn/article/details/ 1380106String Source =  Java.net.URLDecoder.decode (request.getparameter ("source"), "UTF-8"); SYSTEM.OUT.PRINTLN (source); String SubmitData =  Java.net.URLDecoder.decode (request.getparameter ("SubmitData"), "UTF-8"); System.out.println (SubmitData), if (Source.equals ("Delmonitorpointinstance")) {Newmonitorpointinstance Newmonitorpointinstance = new Newmonitorpointinstance (); Newmonitorpointinstance.deletedata (submitData);} Out.print ("1");%>

I know the method above is very water, but the task is tight during the internship, can not find a better way to submit; Because the first contact with Javaweb, those URL: "Ajaxsubmit. Action" or URL: "Ajaxsubmit . do "I don't know what it means .... Seek the guidance of the Great God.

See this blog and know the standard submission method of small partners trouble to leave a link or demo to see, first thanked ^_^

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

Where to go net Internship Summary: Javaweb using jquery submission form (javaweb)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.