jquery - Multiple data values in ajax - going directly into exception -


Hi, I am trying to keep several values ​​in data with Ajax, but I'm going to an exception instead of success. It works fine with a data parameter. I have written the data with the correct syntax, can you please consider it.

I suspect you are getting an error because you are not responding properly to the last point Remove dependency on Jquery and just test your post with something like curl from your command line.

  curl --data "recipeName = some_value and reprocess type = some_value" http: //your-site.com/image/reprocessImage  

if tat Works Confirms that your data setup is correctly $. Create packets out of AJAX and log in to the console.

  var data = {"recipeName =": l_sRecipeName, "reprocessType =": m_enumReprocessFrom}; Console.log (data); $ AJAX ({data: data, ...});  

Comments

Popular posts from this blog

sqlite3 - UPDATE a table from the SELECT of another one -

c# - Showing a SelectedItem's Property -

javascript - Render HTML after each iteration in loop -