Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8433543
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T06:24:54+00:00 2026-06-10T06:24:54+00:00

I currently have a jQuery ajax function which posts a multi-dimensional array to my

  • 0

I currently have a jQuery ajax function which posts a multi-dimensional array to my server.

$.ajax({
  type: "POST",
  url: "Default.aspx/SaveQuoteProcesses",
  data: "{'items':" + JSON.stringify(jaggedArray) + "}",
  contentType: "application/json; charset=utf-8",
  dataType: "json",
  success: function (msg){
    console.log('Success');
  },
  error: function (){
    console.log('Fail');
  }
});

Here is an example of the dataset I’m currently posting to the server:

[
    {"QpcOpsID":"22","QpcQitID":"63"},
    {"QpcOpsID":"20","QpcQitID":"63"},
    {"QpcOpsID":"26","QpcQitID":"63"},
    {"QpcOpsID":26,"QpcQitID":"63","QpcPprID":6,"PprQuestion":"How many colors?","AnswerValue":"4"}
]

I now need to send a regular array to the server in the same AJAX request.

["22", "20", "26"] 

How can I include this new array in the existing javascript object?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T06:24:55+00:00Added an answer on June 10, 2026 at 6:24 am
    var data = {
      items: jaggedArray,
      newArray: ["22", "20", "26"]
    };
    

    And then just JSON.stringify(data).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some jQuery that looks like this: $.ajax({ type: POST, url: /Customer/CancelSubscription/<%= Model.Customer.Id
I'm currently using jquery ajax to call a pagemethod (which works great); $.ajax({ type:
I currently have a jQuery/ajax request which produces a recordset which appears in #contentDiv
*First Post I have a JQuery error handler for my Ajax posts that I
I have a jquery datepicker which is renders the current date by default as
I have a form which I'm using jQuery to post and working to handle
I'm using jQuery's AJAX function, like so: $.ajax ({ url : /note, async :
i have a question in JQuery..I m using $.ajax() in my code (Function 1)
I am currently using the JQuery ajax function to call an exterior PHP file,
I have jQuery draggable set up and working ok on a table row. Currently

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.