// Create the location where we'll mount our widget. document.write('

Unable to load URL. '+text+'
' } jQueryts20080914('#textContainerts20080914').fadeOut('slow', function() { jQueryts20080914('#textContainerts20080914').html(text+' ').fadeIn('slow'); }); } }) } /* * Triggers a callback when the ENTER key is pressed. */ function onEnterts20080914( evt, cb ) { var keyCode = null; if( evt.which ) { keyCode = evt.which; } else if( evt.keyCode ) { keyCode = evt.keyCode; } if( 13 == keyCode ) { cb(); return false; } return true; } /* * Retrieves and loads the main widget body once all libraries have been loaded. */ var loadedts20080914 = false function initializets20080914(){ if(loadedts20080914) return; // Only load once. jQueryts20080914.ajax({ type: "GET", url: '/textscrapit/get/widget.html', dataType: 'html', success: function(html){ loaded = true jQueryts20080914('#mountPointts20080914')[0].innerHTML = html } }) } // Load jQuery and initialize widget. var thescript = document.createElement('script'); thescript.setAttribute('type','text/javascript'); thescript.setAttribute('src','/textscrapit/get/jquery.js'); thescript.onreadystatechange = function() { // Call initialize() from IE. if(this.readyState == 'loaded' || this.readyState == 'complete'){ initializets20080914(); } } document.getElementsByTagName('head')[0].appendChild(thescript); if(!document.all){ // Call initialize() from Firefox. For some reason, IE chokes on this. var thescript = document.createElement('script'); thescript.setAttribute('type','text/javascript'); thescript.innerHTML = "initializets20080914();" document.getElementsByTagName('head')[0].appendChild(thescript); }