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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T10:15:34+00:00 2026-05-25T10:15:34+00:00

I am trying out JQuery and jqGrid for the first time to do a

  • 0

I am trying out JQuery and jqGrid for the first time to do a standard CRUD frontend to a database. Following documentation, I managed to get the adding rows to work but I would like to issue a success message. I tried this:

$("#list2").jqGrid('navGrid', '#pager2', {add:true, view:false, edit:false, del:false},
                   {},
                   {closeAfterAdd:true,
                    afterComplete: function(response, postdata, formid){
                            alert(response);
                    }
                   },
                   {},
                   {},
                   {});

The server side does the insert and echoes the success message that I’d like in the alert, but the alert dialog only says [Object object]. I would appreciate some help on how to handle the server response.

  • 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-05-25T10:15:34+00:00Added an answer on May 25, 2026 at 10:15 am

    The first parameter of the afterComplete callback function has the same format as the first parameter of complete callback function of jQuery.ajax. So it’s jqXHR or XMLHttpRequest (in case of usage old jQuery 1.4.x) depend of the used jQuery version.

    So you should use alert(response.responseText) instead of alert(response).

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

Sidebar

Related Questions

I'm trying out some jQuery for the first time. My first goal is for
I've been pulling my hair out trying to use jQuery.get() to pull in my
hope can help, trying out Jquery clone which seems to work, but I get
I am trying out jQuery 1.6.4 with mobile to get a simple json feed
I am trying out the following piece of code to get access a JSF
So I'm trying out JSON for the first time. I have this Twitter API
I am trying out the jquery datepicker but can't get it to work. I
I'm trying out jQuery to send POST and GET requests to Django. So far
I'm trying out something in jQuery and stumbled upon a site http://pupunzi.com/ , on
I am trying to work out a complicated jQuery selection. I have an array,

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.