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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T06:58:34+00:00 2026-05-28T06:58:34+00:00

In jQuery I wrote this simple ajax call to convert from one currency to

  • 0

In jQuery I wrote this simple ajax call to convert from one currency to another using Yahoo’s YQL service.

function changeCurrency(amount, currency_from, currency_to) {
    var query = "select%20*%20from%20yahoo.finance.xchange%20where%20pair='" + currency_from + currency_to + "'";
    var urlservice = "http://query.yahooapis.com/v1/public/yql?q=" + query + "&diagnostics=true&env=store%3A%2F%2Fdatatables.org%2Falltableswithkeys";
    $.ajax({
        type: "GET",
        url: urlservice,
        dataType: "xml",
        success: function(xml) {

            $(xml).find('rate').each(function() {
                var rate = $(this).find('Rate').text();
                var result = Math.round(amount * rate * 100) / 100 ;
                $("#result").html(result + currency_to);
            });
        },
        error: function(xhr, status, error) {
            $.jGrowl(xhr + ' ' + status + " " + error);

        }
    });
}

Heres a live version at jsfiddle.

Its working fine in Chrome, FF and Safari but fails in IE (9) with error message “Access denied”. I guess it has to do with security but don’t know how to solve it, any suggestions?

  • 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-28T06:58:35+00:00Added an answer on May 28, 2026 at 6:58 am

    Have you seen this question on Stack Overflow? Its quite similar problem and I think you might find the solution for your problem there 🙂

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

Sidebar

Related Questions

I wrote a simple jQuery function to submit data from a textarea. The script
I'm learning JQuery and I wrote a simple AJAX external script for my homepage
I'm using jQuery 1.5.2 trying to dynamically load a div from one source into
I want to create a jQuery dialog from HTML returned by an AJAX call.
before this I wrote all jquery-code into main fail. Now I want to move
I am trying to use jQuery with MYSQL and I wrote something like this
So I wrote the code below: jQuery('#contentWrapper').delegate(.addButton, click, function(){ addRow(jQuery(this)); }); function addRow(thisButton){ var
Take a look on this code, what I wrote: http://pastebin.com/TZpUAWpA , and this jQuery,
$(function(){ $('a').each(function(){ var x=this.href; this.href=www.somesitename.com/filter+this.href; }); }); i wrote the above jQuery script to
I'm trying to write a simple search server, using Django with AJAX. The server

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.