Skip to content

Instantly share code, notes, and snippets.

@zindel
Created June 13, 2016 12:02
Show Gist options
  • Save zindel/bdada1bb0b5a49fba522c1937194a384 to your computer and use it in GitHub Desktop.
Save zindel/bdada1bb0b5a49fba522c1937194a384 to your computer and use it in GitHub Desktop.
<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