/** * @author Fabio Comuni */ var f9a_widget_$widget_id = { width: "$width", height: "$height", entrypoint : "$entrypoint", key : "$key", widgetid: "$widget_id", argstr: "$args", load : function() { var args = new Array(); args['k']=this.key; args['s']=window.location.href; args['a']=this.argstr; var urlencodedargs = new Array(); for(k in args){ if (typeof args[k] != 'function') urlencodedargs.push( encodeURIComponent(k)+"="+encodeURIComponent(args[k]) ); } var url = this.entrypoint + "?"+ urlencodedargs.join("&"); console.log(this.widgetid); console.log(document.getElementById(this.widgetid)); document.getElementById(this.widgetid).innerHTML = ''; } }; document.writeln("
"); (function() { f9a_widget_$widget_id.load(); })();