- this.xmlhttp.open("GET", url ,true);
- this.xmlhttp.send();
- this.xmlhttp.obj = this;
- this.xmlhttp.onreadystatechange=function(){
- if (this.readyState==4){
- if (this.status==200) {
- cb(this.obj, this.responseText);
- } else {
- document.getElementById(this.obj.widgetid).innerHTML="Error loading widget.";
- }
- }
- }
-
- },
-
- requestcb: function(obj, responseText) {
- document.getElementById(obj.widgetid).innerHTML=responseText;
- },
-
- load : function (){
- this.getXHRObj();
- this.dorequest(null, this.requestcb);
+ console.log(this.widgetid);
+ console.log(document.getElementById(this.widgetid));
+ document.getElementById(this.widgetid).innerHTML = '<iframe style="border:0px; width: '+this.width+'; height:'+this.height+'" src="'+url+'"></iframe>';