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

  • Home
  • SEARCH
  • 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 8929249
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T08:37:57+00:00 2026-06-15T08:37:57+00:00

I currently have a $.getJSON call which is working fine as shown below. var

  • 0

I currently have a $.getJSON call which is working fine as shown below.

var jsonUrl = "http://www.somesite.co.uk/jsonusv.php?callback=?";                   
$.getJSON(jsonUrl,function(zippy){
...some code
}

However, I wish to pass a variable with it so that the PHP script can use its $_GET[”] value and tailor the data.

I tired the fooling but could not get things to work any ideas ?

var jsonUrl = "http://www.somesite.co.uk/jsonusv.php?callback=?&value=65";

The php page looks something like this this had been stripped down. I did try to detect the $_GET[‘value’] but it didn’t work.

<?PHP
header("content-type: application/json");  
$theSqlquery = "SELECT * FROM table ORDER BY timestamp DESC LIMIT 20";   
$result131 = mysql_query($theSqlquery);

     if ($result131)
     {

        //make up Json string in $temp

    echo $_GET['callback'] . '(' . $temp . ');';
     }                 
?>
  • 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-15T08:37:58+00:00Added an answer on June 15, 2026 at 8:37 am
    var jsonUrl = "http://www.somesite.co.uk/jsonusv.php?callback=?";                   
    $.getJSON(jsonUrl,{lastdatetime: "",},function(zippy){....
    

    Seems to work …

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

Sidebar

Related Questions

I currently have a Razor view the makes an AJAX (getJSON) call. The Ajax
I currently have this: $.getJSON('test.json', function(data) { var items = []; $.each(data, function(key, val)
I currently have a table of concentrations, which are linked to a table of
I am working on a basic page with jquery-mobile. I currently have 2 pages
I have the following script that call a http handler. It calls the http
I currently have the following code: function render(url1, url2, message) { utility.messageBoxOpen(message); $.getJSON(url1, function
In the primary application on which I have been working, and with which Stack
I have stripped my getJSON call to the simplest example possible trying to figure
I have an issue in that the $.getJSON segment of code works fine and
Currently have a drop down menu that is activated on a hover (from display:none

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.