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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T20:19:26+00:00 2026-05-30T20:19:26+00:00

Someone answered in my past question and provided me with the code necessary to

  • 0

Someone answered in my past question and provided me with the code necessary to pull a datetime from a server. All is well it’s just that I don’t know how to execute it! for example, I want to the action to happen on pageload, how can I do that?

here’s the Ajax/JSONP code I was given:

$.ajax({
    url: 'http://timeapi.org/utc/now.json',
    dataType: 'jsonp'
})
.done(function(response) {
    // response = {"dateString":"2012-03-06T02:18:25+00:00"}
    console.log(response.dateString);// "2012-03-06T02:18:25+00:00"
});

P.S. does the “$” refer to JQuery? I am not very familiar with this syntax…the $.ajax and the .done?

  • 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-30T20:19:27+00:00Added an answer on May 30, 2026 at 8:19 pm

    You definitely have to check out jQuery.

    Basically, $ refers to the jQuery object, and .ajax() and .done() are functions which are properties of this object. They can be concatenated by a common technique of returning the jquery-context at the end of each function.

    Simplified you have something like this:

    jQuery.function(parameters).anotherfunction(parameters)

    You should start with this basic tutorial.

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

Sidebar

Related Questions

On some StackOverflow question about GWT cons and pros from 2009 someone answered that:
This is a simple question that can be answered fast by someone who's more
This question has been answered. The problem was that myEventMoveTrainManaul() was being called from
I have just asked a question on SuperUser regarding Microsoft Excel. Thankfully someone answered
I previously asked this question, which was answered, but someone gave a suggestion that
This question was asked earlier by someone else but never answered: MKAnnotation - Map
I just answered a question where I advised removing parentheses around a statement and
It's simple - All I want to do is set who answered the question
I just asked (and was kindly answered) This question: SQLite3 select field by numeric
Update: someone answered and suggested that I write a plugin, but that is 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.