Note: The parameters in Navigate2 must be defined as olevariant types, and arguments must be passed using variables and cannot be directly assigned constant values.
Unit Unit1;InterfaceUsesWindows, Messages, sysutils, variants, Classes, Graphics,
First, HTML is a static Hypertext Markup language, and JS does not belong to HTML
Either HTML or JS, you cannot get the parameters passed by Form form {method (post or get)}.
The parameters passed through the form are to be obtained by the
GET behavior is relatively simple, and POST is more complicated
GET behavior is relatively simple, and POST is more complicated
There are two ways to choose from: first, handwriting code. Second: Use the HttpClient php class library
Method
Jspost is actually very easy to submit data. We only need to create a form using js and set form method to post. We have organized the following two instances and hope to help you.
Example 1
The Code is as follows:
Copy code
I divided three pages: 1. display 2. Display js3 and server-side display (index. php): htmlheadscripttypetext?criptsrcjquery. jsscriptscripttypetext=criptsrcjs. Digest (js.
I divided three pages: 1. display 2. js 3. display of server processing
This method has been found on the Internet:
$.ajax ({
//请求类型,这里为POST type: 'POST', //你要请求的api的URL url: url , //是否使用缓存 cache:false, //数据类型,这里我用的是json dataType: "json", //必要的时候需要用JSON.stringify() 将JSON对象转换成字符串 data: JSON.strigify({key:value}),
SegmentFault (www. sf. gg) is a leading developer technology community in China. We hope to provide programmers with a pure and high-quality technology exchange platform to learn, communicate and grow with developers and create an era for developers!
There is a dedicated command for retrieving form data in php. $ _ POST [] is the function. here is a simple example :? Phpecho #39; Hello, #39; n... there is a dedicated command to get form data in php. $ _ POST [] is the function. here is a simple
I am not busy with my recent work. I would like to take some time to learn about Ajax and learn from my previous experiences.
ArticleSource: http://www.cnblogs.com/oneword/archive/2011/06/04/2072593.html
Preface:
The first
Want to let the front desk to the text box mobile phone number submitted to the background, and then adjust the background method to send text messages to the phone
function SendMessage () {
Curcount = count;
Set button effect to start timing
$ ("#
There are two very important headers in the HTTP request, namely get and post. For Baidu this kind of server access, do not need to pass what parameters, convenient and quick access, mostly with get. When you need to enter your account password or
I want to use post to upload the value of a page form to another page. When I click default. when the send and submit button of aspx is used, the default2.aspx page is displayed. At this time, an error is reported, and the error message is
2010-01-26
Java code
Package COM. zxc. action; public class xiaozaction { private int id = 0; private string name = NULL; Public int GETID () { return ID; } Public void setid (int id) { This. id = ID; } Public String getname () { return
Use the Post simulation method to submit comments to http: // localhost: 81/clientpost/post. php.Using system. net;
Using system. IO;
Private void btnpost_click (Object sender, eventargs E)
{
WebClient WC = new WebClient ();
System. Collections.
There are two ways to choose from: first, handwriting code. Second: Use the HttpClient php class library
Method 1:
Copy codeThe Code is as follows: $ Flag = 0;
// Data to be post
$ Argv = array (
'Var1' => 'abc ',
'Var2' => '');
// Construct the
Ajax synchronous requests are generally as follows:Copy codeThe Code is as follows:Var conn = Ext. lib. Ajax. getConnectionObject (). conn;Conn. open ("POST", 'HTTP: // localhost: 8080/struts2study/TreeDDGet? Node =-1 ', false );// The conn object
Note:The $. Get () and $. Post () methods are global functions in jquery. The load () method mentioned above is used to operate jquery objects.
1. $. Get () method
The $. Get () method uses the get Method for asynchronous requests.
Its syntax
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.