Created
June 13, 2016 12:02
-
-
Save zindel/bdada1bb0b5a49fba522c1937194a384 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<script id="aaa"></script> | |
<script> | |
function callback ( response ) | |
{ | |
console.log(response); | |
} | |
function loadScript() | |
{ | |
var iframe = document.createElement("iframe"); | |
var url = "http://www.worldfreightrates.com/en/calculator/air/rate?fromId=52d4daf5c44e2dc60a38da12&toId=52d4daf5c44e2dc60a38d71f&fromName=Tel+Aviv+-+Ben+Gurion+International%2C+Israel+(TLV)&toName=Liege%2C+Belgium+(LGG)&oceanType=&commodityName=General+Merchandise&commodityValue=100&includeInsurance=false&includeReefer=false&includeHazardous=false&weight=100&unit=kg&length=1&width=2&height=3&_=1465466691296&callback=test"; | |
iframe.id = 'test'; | |
iframe.src = url; | |
iframe.onload = function() { | |
}; | |
document.body.appendChild(iframe); | |
} | |
</script> | |
<body onload="loadScript();"> | |
ok | |
</body> | |
</html> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment