(function($){ $(document).ready(function(){ var otelname = ''; $.ajax({ type: 'GET', dataType: "jsonp", crossDomain: true, url: "http://lila-book.otelms.com/widget/loadcalendar/gr4047/4047/?lang=en", success:function(json){ $('#widgetContainer').html(json.TXT); }, error: function (responseData, textStatus, errorThrown) { alert('...'); } }); }); })(jQuery);