Quantcast
Channel: HomeSeer Message Board
Viewing all articles
Browse latest Browse all 4847

json post syntax

$
0
0
I've been using json with jQuery ajax functions to build a quick and dirty web app and it is really great...

Example:
PHP Code:

$.get("/JSON"
  {
"request":"getcontrol""ref":test},
  function (
jResult){
    
alert(JSON.stringify(jResult.ControlPairs.length));
  },
  
'json'
); 

I would like to use post actions instead of get requests and cannot seem to get the proper syntax.

Just changing the get to post does not work. Is there any additional documentation besides the SDK?

Cheers,

Wade

Viewing all articles
Browse latest Browse all 4847

Trending Articles