Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function something(callback){
- $.ajax({
- type: "GET",
- contentType: "application/x-www-form-urlencoded",
- url: "http:url.com",
- dataType: 'json',
- success:
- callback
- // console.log(data);
- // console.log(JSON.parse(data));
- // window.location.replace("mainkedaabuild.html"+"?#"+data );
- ,
- error: function()
- {
- $('#output').html("Unable to connect");
- // window.location.replace("404kedaa.html");
- }
- });
- };
- var Blue = something(function (data) {
- data; return data;
- console.log(Blue);
Add Comment
Please, Sign In to add comment