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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T00:01:28+00:00 2026-05-31T00:01:28+00:00

I want to use a getJson call like this $.getJSON(cfc/getMember.cfc?method=getUser&returnformat=json&queryFormat=column,{memberID:userID}, function(res,code) the userID is

  • 0

I want to use a getJson call like this”

$.getJSON("cfc/getMember.cfc?method=getUser&returnformat=json&queryFormat=column",{"memberID":userID}, function(res,code)

the userID is stored as a cookie – so I thought I’d simply use:

function checkCookie(){ 
 var userID=getCookie("UID");
}

Now (as I’m sure you cal tell) I’m new to javascript so that might be my problem – but I’m after some advice on how to use a cookie value in the getJSON call.

Thanks!

Simon

  • 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-31T00:01:30+00:00Added an answer on May 31, 2026 at 12:01 am

    Assuming your getCookie() function is already defined and correctly retrieves your cookies, then all you need to do is define the userID before you make the call to $.getJSON:

    var userID=getCookie("UID");
    $.getJSON("cfc/getMember.cfc?method=getUser&returnformat=json&queryFormat=column", {"memberID":userID}, function(res,code) {});
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to use geoJSON-formatted Data in my iPhone app. THere is a JSON
Im doing a $.getJson call which I want to be able to reuse for
I use jquery ajax method, set datatype json, I get a jsonp response from
I want to use this api that returns the place matching a zipcode e.g.
$.getJSON(http://192.168.1.9:8983/solr/db/select/?wt=json&&start=0&rows=100&q=+query+&json.wrf=?, function(result){ //$.each(result.response.docs, function(result){ if(result.response.numFound==0) { $.ajax({ url: http://192.168.1.9:8983/solr/db/select/?wt=json&&start=0&rows=100&q=+query+&spellcheck=true&json.wrf=?, async:false, success: function(result){ $.each(result.spellcheck.suggestions, function(i,item){
I want to convert following Jquery code to use $.ajax intead of $.getJSON, what
I want to use jQuery.getJSON function in ASP.NET MVC 3.0, so I wrote the
I was trying to use $.getJSON to go through the json arrays from the
I want use php curl with oauth to get the JSON data from twitter
I have two json files and I want to do an ajax call to

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.