jQuery ajax JSON to php -


i hope can help. have following js code:

if ((width >= 360) && (width <= 2400) && (drop >= 360) && (drop <= 2400)){             $.post("file.php",{                 change: change,                  width: width,                  drop: drop,                  typeselect: typeselect,                  colour: colour,                 variations: vari             },function(data){                 var info = jquery.parsejson(data); 

vari in firebug comes as

[{"variation_id":"1110","attributes":{"attribute_colour":"chocolate","attribute_type":"tape-38mm"},"image_title":"wooden-chocolate-tape","image_alt":"","price_html":"<span class=\"price\"><span class=\"amount\">£36.00<\/span><\/span>","availability_html":"","sku":"","weight":" kg","dimensions":"","min_qty":1,"max_qty":0,"backorders_allowed":false,"is_in_stock":true,"is_downloadable":false}] 

for reason isn't posting variations. firebug says post is:

change  drop colour   drop    360 typeselect   width   360 

i'm assuming vari in json format.

any great. mark


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -