Encerrado

Javascript Cross Domain Ajax that works in IE 7+ and ALL Browsers

Hi All,

I need two different types of scripts created. One that will post a request to a server, and the other that will post a request to a server and enter the return into a div. The server will respond with the correct Access-Control-Allow-Origin Header. I have been using jQuery but the $.ajax doesn't work on cross domain for the older IE browsers.

REQUIREMENT 1: ALL CODE NEEDS TO HAVE A TIMEOUT SET SO IF THE SERVER IS DOWN, IT WON'T AFFECT THE USER.

REQUIREMENT 2: EXTREMELY LIGHT-WEIGHT - NO ADDITIONAL PACKAGES ALLOWED

REQUIREMENT 3: DONE IN 24 HOURS

REQUIREMENT 4: Payment will be released once tested.

Here is the first function that needs to be converted to a non-jquery code that works in all browsers.

// TRACKER

function log() {

$.ajax({url:"[url removed, login to view]", dataType:"html", type:"POST", cache:false, timeout:1000, data:{item:"ITEM1", session:"SESSIONKEY"}});

}

setTimeout("log();", 500);

// DISPLAYER

function getTools() {

$.ajax({url:"[url removed, login to view]", dataType:"html", type:"POST", cache:false, timeout:6000, crossDomain:true, async:false, beforeSend:function() {

$("#ccont #selling-tools").html('<div class="boxset" style="width:95%; margin:20px 2%;padding:20px 0.5%; margin-bottom:0;"><img src="[url removed, login to view]" align="center" /></div>').show();

}, error:function() {

$("#ccont #selling-tools").html("");

}, data:{item:"ITEM1", session:"KEY1"}}).done(function(html) {

$("#selling-tools").html(html);

});

}

Habilidades: AJAX, Javascript, Arquitetura de software

Ver mais: types of ajax, log cross, html 5 img, html 5 align, header error control, different types of tools, domain for, data loader, cross domain, cross com, async, async javascript code, cross work, post crossdomain, access control allow origin html, crossdomain, html header set access control allow origin, html access control allow, html access control allow origin header, html header access control allow origin, access control allow origin html header, html access control allow origin, header set access control allow origin, access control allow origin, jquery access control allow origin

Acerca do Empregador:
( 20 comentários ) pompano beach, United States

ID do Projeto: #5149291

2 freelancers estão ofertando em média $20 para este trabalho

jp4win

I'm ready to do this work for you.. We will have a call to discuss further if you are interested.......

$25 USD in 3 dias
(0 Comentários)
0.0
PSWai

Hi, I'm a front-end web app developer with several years of experience in JavaScript, working on online file transfer. Regarding your request, the requirement that I understand is that: - IE7 support is required. Mais

$15 USD em 1 dia
(0 Comentários)
0.0