answersLogoWhite

0

If the task is just to send an array, I would do the following:

$.post("test.php", { name: "John", time: "2pm" } );

But if you need to process the returned data, do this:

$.post("test.php", { name: "John", time: "2pm" },

function(data){

alert("Data Loaded: " + data);

});

User Avatar

Wiki User

14y ago

What else can I help you with?

Related Questions

What is the difference between jquery and Ajax?

JQuery is a Javascript code library that helps you do dynamic changes to your website. Ajax has the same idea, but more used to make dynamic changes to your website to and from a database. They really go hand and hand.


How do you get HTML DOM nodes from a separate web page?

you can fetch the content of DOM nodes via AJAX calls - google "jquery ajax" for that


Is there a script either in Ajax or JQuery or JavaScript so a user can rotate an image either left or right on your website?

No[Priti] : Yes JQuery helps in this. Please refer link Jquery Flip. >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>.>>>Yes you can but the easiest way is to just rotate it on gimp or any photo viewer and save it


Why is the request super global not populating on Ajax requests in ubuntu with php5 and apache2?

It is working fine on normal page submissions, but when i send a request via ajax for some reason the values get stripped out. Using Firebug i can see that the $_POST is correctly populated, but when i do a var_dump in the ajax PHP file, i get an empty array. Note: this script worked perfectly in windows, and everything else appears to be running fine. Thank you :)


What are types of web technologies?

Web technologies related to the interface between web servers and their clients. So there are a large number of interfaces available these days. A few of them are: CGI Perl PHP Jquery & AJAX Struts2 (MVC 2 Arch.) JSP ASP ASPX and various others...


Validating a form within Ajax tabs with PHP?

If you know jquery it will help to write javascript easily to accomplish, what is needed. There should not be any difficulties because the form is inside a ajax tab. if you will write on $(document).ready(function(){ // here all validation should work })


How you can use jquery in HTML?

jQuery is like JavaScript, you can code inside your html file using the <script> tag. Or you can use an include tag and call an external sheet with your jQuery code.


When was JQuery created?

JQuery was created on 2006-08-26.


When was JQuery UI created?

JQuery UI was created in 2006.


Who is the main developer for jQuery?

Kris Borchers is the main developer for jQuery.


What are the advantage creating Java Script file?

Javascript allows client-side validation, modifying the designs on css files and also with ajax and jquery allows dynamic exchange of data between client and server. Database, XML files data can be retrieved by use of AJAX dynamically. It also allows manipulation of objects via JSON


What is the use of jQuery Update module?

As of my knowledge cutoff in September 2021, the jQuery Update module is a module used in Drupal, a popular content management system. The jQuery Update module allows website administrators to update the version of jQuery used by their Drupal site. jQuery is a JavaScript library that simplifies HTML document traversal, event handling, and animations on websites. Different versions of jQuery may have different features and capabilities, and some modules or themes in Drupal may rely on specific versions of jQuery. The jQuery Update module provides the ability to update the jQuery version used by Drupal to a newer version than the default one included with Drupal core. This can be useful when you want to take advantage of the latest jQuery features or when you need to use modules or themes that require a specific jQuery version. By installing and configuring the jQuery Update module, site administrators can select the desired jQuery version and ensure that their Drupal site uses the appropriate version of jQuery for compatibility with the site's modules and themes. Please note that the information provided here is based on the state of Drupal and its modules as of September 2021. It's always recommended to refer to the official documentation or the module's website for the most up-to-date information on the jQuery Update module and its usage. If you want to learn jQuery Course, and looking for the best jQuery Online Training then, my suggestion is to contact Croma Campus. Further information call on this number ;- 9711526942