I have a JavaScript widget which provides standard extension points. One of them is the beforecreate function. It should return false to prevent an
beforecreate
false
function getURL(url){ return $.ajax({ type: "GET", url: url, cache: false, async: false }).responseText; } //example use var msg=getURL("message.php"); alert(msg);