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 7985873
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T11:41:00+00:00 2026-06-04T11:41:00+00:00

I have a list which contains various docIds. When the information is to be

  • 0

I have a list which contains various docIds. When the information is to be submited, a JQuery function is called which then collects all of the list values. I then need these list values to be sent via Ajax to a classic ASP page where the values will be formatted and then sent back to the original page to then populate a textarea. Here is my JQuery code:

$("#create").click(function() {

    var strDocIDs = $.map($('.doc_list:visible').find('li[value]'), function(li) { return $(li).attr("value") }).join(",");
    alert(strDocIDs);

    $.ajax({
           type: "GET",
           url: "newslettercreate_action.asp",
           data: { strDocIDS: strDocIDs },
           success: function(result) {
               var newsletter_string = $(result);
               $("#scratch").val(newsletter_string);
               }
        }); 
});

And my ASP code:

result = Request("strDocIDs")

The information that I get returned into my textarea is:

[object Object]

My form method is currently set to POST. And would it matter between my using a submit button vs a traditional button to trigger the function?

  • 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-04T11:41:01+00:00Added an answer on June 4, 2026 at 11:41 am

    Because you are wrapping the response in $ and it become and object. Remove that line and it will work, If your ASP page is returning some content.

    And I am sure you may want to stop the default behaviour of the button click by calling thte preventDefault method

    $(function(){
    
       $("#create").click(function(e) {
          e.preventDefault();
    
          var strDocIDs = $.map($('.doc_list:visible').find('li[value]'), function(li) { return $(li).attr("value") }).join(",");
          alert(strDocIDs);
    
           $.ajax({
               type: "GET",
               url: "newslettercreate_action.asp",
               data: { strDocIDS: strDocIDs },
               success: function(result) {              
                  $("#scratch").val(result);
                }
           });
       });
    
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a class called Person, which contains various properties such as first name,
I have an ActiveRecord called Name which contains names in various Languages . class
I have a List which contains a list of objects and I want to
I have a list which contains a dictionary of ExpandoObjects. Im binding this to
I have a list which contains some items of type string. List<string> lstOriginal; I
I have a list which contains dictionaries. Each dictionary has an attribute description which
I have a list a simple dialog box which contains a few checkboxes, I
I have an array list named newSymptomList which contains a list of Symptom id's
I have an List<int> which contains 1,2,4,7,9 for example. I have a range from
I have an Object X which contains a list of Objects X. I do

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.