Is it possible to make the Search Box useable in a google gadget such where I could type in the item I'm looking for and it would open a new window that opens the thottbot search results?
I've seen the two gadgets out there and neither one do that. The one opens the thottbot search results in the tiny iFrame, and the other just does a google content search to which I have to click another link to get to thottbot.
I'm just looking for a way to put the scripts from your example into a google gadget in the hopes that it will jump to thottbot in a new window but I know nothing about the google gadget api xml programming.
I played with the editor on their site and got this to show the search box but it doesn't open a new window:
<?xml version="1.0" encoding="UTF-8"?><Module><ModulePrefs title="Thottbot Search" /><Content type="html"><![CDATA[<script src="http://i.thottbot.com/power.js"></script><script>T.searchbox()</script>]]></Content></Module>
I tried adding the bold code to the javascript and hosting it on my own server but it didn't work, it would no longer load the graphic and form:
I tried downloading your power.js file and hosting it on my server un-edited and it's not comming up, I'm at work and need to actually get back to work :( but is there something I'm missing other than hosting the power.js file? Does it need other files on your site to run or something (I haven't had a chance to scour through the file since it's all wrapped on one line)
I've seen the two gadgets out there and neither one do that. The one opens the thottbot search results in the tiny iFrame, and the other just does a google content search to which I have to click another link to get to thottbot.
I'm just looking for a way to put the scripts from your example into a google gadget in the hopes that it will jump to thottbot in a new window but I know nothing about the google gadget api xml programming.
I played with the editor on their site and got this to show the search box but it doesn't open a new window:
<?xml version="1.0" encoding="UTF-8"?><Module><ModulePrefs title="Thottbot Search" /><Content type="html"><![CDATA[<script src="http://i.thottbot.com/power.js"></script><script>T.searchbox()</script>]]></Content></Module>
I tried adding the bold code to the javascript and hosting it on my own server but it didn't work, it would no longer load the graphic and form:
| <input type='submit' value='Search' OnClick='newwindow();' style='width:16px'></form><script>function newwindow(){ window.open("","ThottbotSearch","width=800,height=600,toolbar=0");var a = window.setTimeout("document.TBSearch.submit();",500);}</script>");};T.searchbox=function(){return T.sbox('Thottbot');};T.twinbox=function(){return T.sbox('im/evil');};T.sba=function(el){el.onfocus=null;el.value='';el.style.color='';}; |
I tried downloading your power.js file and hosting it on my server un-edited and it's not comming up, I'm at work and need to actually get back to work :( but is there something I'm missing other than hosting the power.js file? Does it need other files on your site to run or something (I haven't had a chance to scour through the file since it's all wrapped on one line)