How to get a serialized array from a client form to a server using the GM_xmlhttpRequest

Posted by DKinzer on Stack Overflow See other posts from Stack Overflow or by DKinzer
Published on 2010-01-22T15:44:35Z Indexed on 2010/04/07 21:03 UTC
Read the original article Hit count: 270

I used JQuery.serializeArray() on a form to create an array of objects on a GreaseMonkey application:

[
  {
    name: a
    value: 1
  },
  {
    name: b
    value: 2
  },
  {
    name: c
    value: 3
  },
  {
    name: d
    value: 4
  },
  {
    name: e
    value: 5
  }
]

I need to use GM_xmlhttpRequest to serve these fields back to a server side application. What is the best way to return these fields?

Thanks in advance,

D

© Stack Overflow or respective owner

Related posts about JSON

Related posts about gm-xmlhttprequest