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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T17:15:28+00:00 2026-05-15T17:15:28+00:00

From googling/forums I think there could be two issues, neither of which I know

  • 0

From googling/forums I think there could be two issues, neither of which I know how to fix:

1) I need to do something with the jsonp callback in the node.js request (which was generated automatically by jquery b/c of the callback=? param) – either add it to the header (where? and how?) or add it to the json response (again, where? and how?)

2) There could be some issue with the node.js request connection staying open, and therefore never signaling the callback?

jquery code:

url = http://nodeapp.com/users?screen_name=s&callback=?
$.getJSON(this_url, function(data){
     var users = data
     $.each(users, function(i, item){
     $("#users").append(item...);
})

node.js/express.js (coffee script) code:

get '/user', ->
   users.all... =>
      @header("Content-Type", 'application/javascript')
      @respond 200, JSON.stringify(users)
  • 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-15T17:15:28+00:00Added an answer on May 15, 2026 at 5:15 pm

    I am not familiar with RoR but when you request http://nodeapp.com/users?screen_name=s&callback=foo, the response should look like this:

    foo({ first_name: 'John', last_name: 'Smith' });
    

    and not:

    { first_name: 'John', last_name: 'Smith' }
    

    As far as the callback=? parameter is concerned you don’t need to modify it, jQuery will pass a random value so that the anonymous callback could be invoked.

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

Sidebar

Related Questions

After exhaustive googling and visiting many forums, I am yet to find a good
I need to know the maximum character length for the name of an instance
y = x?0:0x80 From googling the colon seems to be a ternary operator.
I need to Reload a Safari extension from the command line (and also build
I have a scenario. (Windows Forms, C#, .NET) There is a main form which
Ok, so this seems like a common need. A little googling finds a lot
I need to prevent user from selecting text (select all or select a portion
I have some code which creates stores on the fly from an ajax request
From googling around, I found that using while loops or using variables is discouraged.
I am trying to call a legacy stored function in an Oracle9i DB from

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.