jquery method is not allowed

christymn

New Member
How can allow this page to run on IIS server...It does not work on localhost..... it works when I open it directly... It gives the error "it is not allowed...!The working Example..! I want this.. ""the Erorr: <html><head><script src="http://stackoverflow.com/questions/3722216/jquery.js" type="text/javascript" language="javascript"></script><script src="http://stackoverflow.com/questions/3722216/jquery.xml2json.js" type="text/javascript" language="javascript"></script><script>function sayHello(msg){ alert(msg);}function dcSetRate(obj,value){document.getElementById(obj).value = http://stackoverflow.com/questions/3722216/value.toFixed(4);}function dcSet(obj,value){document.getElementById(obj).value = value;}(function(usedUrl) { //All currencies quoted against the euro var fetchService = function() { /*USD/RUBEUR/RUBUSD/EURUSD/TL*/ $.get('http://www.ecb.europa.eu/stats/eurofxref/eurofxref-daily.xml', function(xml) { var jsonObj = $.xml2json(xml); //alert(jsonObj.Cube.Cube.Cube[0]["currency"] + 2); var usd=jsonObj.Cube.Cube.Cube[0]["rate"]; var rub=jsonObj.Cube.Cube.Cube[16]["rate"]; var eur= 1 //jsonObj.Cube.Cube.Cube[1]["rate"]; var ytl=jsonObj.Cube.Cube.Cube[17]["rate"]; var usd_rub= rub/usd; var eur_rub =rub/eur; var usd_eur = eur/usd; var usd_ytl= ytl/usd; dcSetRate("USD_RUB",usd_rub); dcSetRate("EUR_RUB",eur_rub); dcSetRate("USD_EUR",usd_eur); dcSetRate("USD_YTL",usd_ytl); }); getMicex(); // assuming your elements are <img> document.getElementById("text1").value = http://stackoverflow.com/questions/3722216/getDt(); // if not you could also set the background (or backgroundImage) css property // document.getElementById(elements.shift()).style.background ="url(" + images.shift() + ")"; ///sayHello(usedUrl); setTimeout(fetchService, 10500); } window.onload = fetchService;}(['URL URL']))function getMicex(){$.get('http://www.micex.com/issrpc/marketdata/stock/index/daily/short/result.xml', function(xml) { var jsonObj = $.xml2json(xml); var indexValue = http://stackoverflow.com/questions/3722216/jsonObj.row["CURRENTVALUE"]; dcSet("Micex",indexValue); });}function getDt(){var currentTime = new Date()var hours = currentTime.getHours()var minutes = currentTime.getMinutes()var seconds = currentTime.getSeconds()if (minutes < 10){minutes = "0" + minutes}var ama;if(hours > 11){ama ="PM";} else {ama ="AM";} return hours + ":" + minutes + " : " + seconds + " " + ama;}</script></head><body> <input type="text" name="fname" id="text1"/><br/> USD_RUB<input type="text" name="fname" id="USD_RUB"/><br/> EUR_RUB <input type="text" name="fname" id="EUR_RUB"/><br/> USD_EUR <input type="text" name="fname" id="USD_EUR"/><br/> USD_YTL <input type="text" name="fname" id="USD_YTL"/><br/> Micex<input type="text" name="fname" id="Micex"/><br/></body></html onLoad="sayHello()">
 
Back
Top