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 ajax, log cross, header error control, different types tools, domain for, data loader, cross domain, async, async javascript code, cross work, post crossdomain, crossdomain, html access control allow, access control allow origin, javascript tracker, crossdomain post, ajax cross domain request, ajax post crossdomain, javascript post request, ajax cross post, ajax crossdomain, ajax jquery div html, crossdomain ajax, enter code, user requirement

Acerca do Empregador:
( 18 comentários ) 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