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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T20:39:32+00:00 2026-05-22T20:39:32+00:00

I am still trying to figure out how to use json.. can someone please

  • 0

I am still trying to figure out how to use json.. can someone please help me understand how to deal with this response. My query is :

$.ajax({
url: s7query,
dataType: 'jsonp',
success: function(){
// how do I deal with the response?
} 
});

The json I am querying returns (with either a 1 or 0):

s7jsonResponse(
{"catalogRecord.exists":"1"},"");

All I need from this is the number and put that into a variable so I can then run conditional logic against that result. Thanks for any help understanding this…

If I try and handle the success with any function firebug just returns that s7jsonResponse is not defined. I tried to define it as a variable outside of the request. Now I see in firebug it is returning the json from all the requests, however it is returning them as errors and now says s7jsonResponse is not a function. I think I am close.. please help!

  • 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-22T20:39:33+00:00Added an answer on May 22, 2026 at 8:39 pm

    Ok, I missed the jsonp part! All you need is to define a method for s7jsonResponse.

    function s7jsonResponse (jsonData, someString) {
        alert(jsonData["catalogRecord.exists"]);
        // deal with the response here
    }
    

    See this for details on JSONP

    initial response

    I noticed that catalogRecord.exists, this has a . in it and it won’t extract. If you don’t have a strong reason to do so, you could change it to catalogRecordExists and use below solution.

    $.ajax({ 
    url: s7query, 
    dataType: 'json', //removed jsonp in the last edit
    success: function(data){ // this is the method that executes on success
                // parseJSON is not required as you already put it in dataType
                // alert(($.parseJSON(data))["catalogRecord.exists"]); 
                alert(data["catalogRecord.exists"]);
             }
    });
    

    Note:
    The data that you send back should = {"catalogRecord.exists":"1"}

    You can use $.getJSON to do the same(it internally calls $.ajax)

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

Sidebar

Related Questions

Still trying to figure this out from yesterday. I am trying to scroll an
I am still trying to figure out frame animation, but I need to use
I'm trying to figure out how I can use recursion to do n-level nested
I've been trying to figure this out for a while, and I just can't.
I am still trying to figure all this out and I am coming across
I am still trying to figure out the right architecture for a complex ASP.NET
I am still really new to SQL functions. I am trying to figure out
I am trying to figure out how to use jquery to take an image
Still a rails and ruby newbie, and I'm trying to figure out why adding
I'm still trying to figure out what is the proper way to add a

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.