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

The Archive Base Latest Questions

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

here is my ajax call $j.ajax({ url: http://www.earthtools.org/timezone/40.71417/-74.00639, dataType: jsonp, complete: function(data){ console.log(data); }

  • 0

here is my ajax call

$j.ajax({
  url: "http://www.earthtools.org/timezone/40.71417/-74.00639",
  dataType: "jsonp",
  complete: function(data){
    console.log(data);
  }
});

the url returns back xml but I need to use jsonp to avoid cross site scripting….any ideas on how to avoid this error

missing ; before statement
[Break On This Error]   

<timezone xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceS...

-74.00...7653717 (line 2, col 10)

Any ideas…i need the localtime out of this call

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

    you can not get xml cross domain in javascript due to cross domain policies…there are 100’s of similar threads on SO

    You can use a proxy if API doesn’t deliver jsonp. Another handy tool is Yahoo YQL. They have a sandbox console can set your url up in minutes and get a YQL url to get data from in choice of xml or jsonp

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

Sidebar

Related Questions

I have a ajax image upload script which i found here http://www.fengcool.com/2009/06/ajax-form-upload-local-image-file-without-refresh/ The problem
Here is my code <html xmlns=http://www.w3.org/1999/xhtml> <head runat=server> <title></title> <script type=text/javascript src=<%= ResolveUrl(Scripts/jquery-1.3.2.min.js) %>></script>
I am doing an AJAX call that returns some HTML and jQuery: <div id='selected'>Here
I am getting an error in an ajax call from jQuery. Here is my
I am downloading files through IFRAME method described here: http://encosia.com/2007/02/23/ajax-file-downloads-and-iframes/ And am showing progress
Error recieved (Chrome): Uncaught SyntaxError: Unexpected token : Script, call: var frypeurl = 'http://www.draugiem.lv/say/ext/like_count.php';
I have ajax calls that have the url http://localhost:80/Push/GetContacts?id=23 and the following servlet mapping:
I have a JavaScript file here http://www.problemio.com/js/problemio.js and I am trying to place some
I'm making a script which has one ajax call inside an each function. The
i am having a little trouble with the following ajax call; function question() {

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.