Dibatalkan

Simple Ajax Cross Domain Script

I need a Ajax Cross Domain script written I have made a quick mock-up script but i don't have time to finish and test it.

The script is for an address management site,

Here is what i need the script to do;-

1. A user enters a postcode on an external site.

2. The script sends the postcode via GET to the external domain and retrieves a list of address's

[url removed, login to view] script creates a menu and populates it with the possible address's

[url removed, login to view] the user selects an address the menu is removed and replaced with form text field with the address populated in the form fields.

I made a quick mockup script below as an example,

<script type="text/javascript">

function xss_ajax(url) {

var script_id = null;

var script = [url removed, login to view]('script');

[url removed, login to view]('type', 'text/javascript');

[url removed, login to view]('src', url);

[url removed, login to view]('id', 'script_id');

script_id = [url removed, login to view]('script_id');

if(script_id){

[url removed, login to view]('head')[0].removeChild(script_id);

}

// Insert <script> into DOM

[url removed, login to view]('head')[0].appendChild(script);

}

function callback(data) {

var txt = '';

for(var key in data) {

txt += key + " = " + data[key];

txt += "\n";

var counter = 1;

var limit = 3;

var divName = 'dynamicInput';

var newdiv = [url removed, login to view]('div');

[url removed, login to view] = "Entry " + (counter + 1) + " <br><input type='text' name='myInputs[]' value=" + data[key] + ">";

[url removed, login to view](divName).appendChild(newdiv);

counter++;

}

}

var url = "[url removed, login to view]";

</script>

Kemahiran: AJAX, Javascript, jQuery / Prototaip

Lihat lebih lanjut: ajax cross domain, what's ajax, what is data entry 10 key, what is a 10 key data entry, php script null, mock data, get external data, data entry 10 key test, data entry 10 key quick test, 10 key data entry test, what is ajax, callback url, 10 key data entry, javascript mockup, dom, cross domain, script head http, ajax management, javascript callback, php head script, ajax simple insert, script src, insert txt, ajax example, data entry form ajax

Tentang Majikan:
( 1 ulasan ) Upton, United Kingdom

ID Projek: #1587763

4 pekerja bebas membida secara purata $100 untuk pekerjaan ini

harish1984

Hi, Could I help you regarding this project?

$49 USD dalam sehari
(27 Ulasan)
4.8
aasol

Ready to start, please check your inbox for details, Thanks.

$100 USD dalam sehari
(4 Ulasan)
3.3
UrielOliveira

Hi my name is Uriel and I have large experience with PHP and web development. I've already written a script like you're asking so I will do the job very fast.

$100 USD dalam sehari
(0 Ulasan)
0.0
Jaydensoftware

PLEASE CHECK PMB

$150 USD dalam 3 hari
(0 Ulasan)
0.0