AJAX CROSS DOMAIN SCRIPT DEVELOPMENT
$30-250 USD
Pagado a la entrega
I need an AJAX script developing that will retrieve data across domains, then put the data into a list/menu then when a option is selected in the menu i need the script to retrieve data from another domain and display it in a form text field.
I also need the script to handle error (display an alert if there is no results on the external domain)
I have had ago off doing the script myself but it is taking me far to long as i am not very good with JavaScript
You can base the new script on the script below or re-write a new one.
<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 += data[key];
}
var divName = 'dynamicInput';
var newdiv = [url removed, login to view]('div');
[url removed, login to view] = "<input type='text' name='myInputs[]' value=" + txt + ">";
[url removed, login to view](divName).appendChild(newdiv);
}
var url = "[url removed, login to view]";
</script>
Nº del proyecto: #1588433