Solved

Can user pass array or object to ajax POST or GET

Posted on 2014-09-16
2
312 Views
Last Modified: 2014-09-16
Dear experts,

I wish to know if user can pass an array or object to another page through ajax with POST or GET? Is it possible with JSON? Are there other ways?  Will manipulation of DOM object works?

I am trying to post the data of my table into an array and pass it to another php page with ajax.  Thanks
0
Comment
Question by:Kinderly Wade
2 Comments
 
LVL 58

Assisted Solution

by:Gary
Gary earned 250 total points
ID: 40326015
What kind of data?
The simple solution is to just use JSON
0
 
LVL 109

Accepted Solution

by:
Ray Paseur earned 250 total points
ID: 40326168
JSON is the right tool.  In order to give a better answer we would need to see your test data.
http://json.org/
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
This article discusses four methods for overlaying images in a container on a web page
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question