Unoffical empeg BBS

Quick Links: Empeg FAQ | RioCar.Org | Hijack | BigDisk Builder | jEmplode | emphatic
Repairs: Repairs

Topic Options
#311281 - 11/06/2008 20:49 Strange HTML Question
Dignan
carpal tunnel

Registered: 08/03/2000
Posts: 12338
Loc: Sterling, VA
I have a really weird issue with iGoogle, mostly due to the fact that I'm trying to force it to do something it can't.

For the longest time I've been using Protopage as a start page. Protopage lets you create a widget that you can enter HTML into. I use this to create search boxes that I can have easily accessible. I can just fire up my browser, type my search term into one of these boxes, and it'll pop up a new tab with the search results on that site. I use these at least 20 times a day.

iGoogle has an "add-on" that's not nearly as friendly as Protopage's, but also lets you enter your own HTML. But when I enter the HTML for my search boxes, it behaves the exact same way as on Protopage except for a single box. It seems that Google has something against the word "pricegrabber." When I try searching with that box, all the boxes disappear, instead of opening a new tab with the results. In the "action" part of the form tag, if I replace "www.pricegrabber.com" with anything else (anything from "www.hello.com" to "www.theempegisthegreatest.com"), it brings up a new tab. Weird, no?

Any ideas? And what do you all use for a start page? I used to roll my own, but it was easier to update services like this.

Here is the code I use for the search boxes, the form in question is the second to last one: *edit* and I know this is sloppy coding, but it works for the most part and I can only do inline styles in this particular case */edit*

Code:
<form action="http://www.google.com/search" method="get" target="_NEW" style="display: inline;">
  <input style="width: 180px; height:15; font-size: 50%;" name="q" value="Google" onfocus="this.className='on';if(this.value=='Google')this.value='';" onblur="this.className='';if(this.value=='')this.value='Google';" type="text">
  <input style="width: 0px; height:15; font-size: 50%;" value="" type="submit" style="line-height: 50%;">
</form>
<br>

<form action="http://www.allmusic.com/cg/amg.dll" method="post" target="_NEW" style="display: inline;">
  <input name="SQL" style="width: 180px; height:15; font-size: 50%;" value="AllMusic (N)" onfocus="this.className='on';if(this.value=='AllMusic (N)')this.value='';" onblur="this.className='';if(this.value=='')this.value='AllMusic (N)';" type="text">
  <input name="P" value="amg" type="hidden">
  <input value="1" name="OPT1" type="hidden">
  <input name="Submit" value="" style="width: 0px; height:15; font-size: 50%;" id="BasicGo" type="submit">
</form>
<br>
<form action="http://www.allmusic.com/cg/amg.dll" method="post" target="_NEW" style="display: inline;">
  <input name="SQL" style="width: 180px; height:15; font-size: 50%;" value="AllMusic (A)" onfocus="this.className='on';if(this.value=='AllMusic (A)')this.value='';" onblur="this.className='';if(this.value=='')this.value='AllMusic (A)';" type="text">
  <input name="P" value="amg" type="hidden">
  <input value="2" name="OPT1" type="hidden">
  <input name="Submit" value="" style="width: 0px; height:15; font-size: 50%;" id="BasicGo" type="submit">
</form>

<br>

<form action="http://www.imdb.com/Find" method="get" target="_NEW" style="display: inline;">
  <input style="width: 180px; height:15; font-size: 50%;" name="for" value="IMDb" onfocus="this.className='on';if(this.value=='IMDb')this.value='';" onblur="this.className='';if(this.value=='')this.value='IMDb';" type="text">
  <input value="All" name="select" type="hidden">
  <input style="width: 0px; height:15; font-size: 50%;" value="" name="Search" type="submit">
</form>

<br>

<form action="http://dictionary.reference.com/search" method="get" target="_NEW" style="display: inline;">
  <input style="width: 180px; height:15; font-size: 50%;" name="q" value="Dictionary" onfocus="this.className='on';if(this.value=='Dictionary')this.value='';" onblur="this.className='';if(this.value=='')this.value='Dictionary';" type="text">
  <input style="width: 0px; height:15; font-size: 50%;" value="" type="submit">
</form>

<br>

<form action="http://en.wikipedia.org/wiki/Special:Search" method="get" target="_NEW" style="display: inline;">
  <input value="Go" name="go" type="hidden">
  <input style="width: 180px; height:15; font-size: 50%;" name="search" value="Wikipedia" onfocus="this.className='on';if(this.value=='Wikipedia')this.value='';" onblur="this.className='';if(this.value=='')this.value='Wikipedia';" type="text">
  <input style="width: 0px; height:15; font-size: 50%;" value="" type="submit">
</form>

<br>

<form action="http://www.newegg.com/Product/ProductList.asp" method="get" name="UISearch" target="_NEW" style="display: inline;">
  <input name="Submit" value="Go" type="hidden">
  <input name="DEPA" value="0" type="hidden">
  <input name="type" value="" type="hidden">
  <input style="width: 180px; height:15; font-size: 50%;" id="Search-1" name="description" tabindex="1" title="search site" maxlength="50" value="Newegg" onfocus="this.className='on';if(this.value=='Newegg')this.value='';" onblur="this.className='';if(this.value=='')this.value='Newegg';" type="text">
  <input value="0" name="Category" type="hidden">
  <input id="Search-3" name="minPrice" tabindex="2" title="min price" maxlength="6" value="" type="hidden">
  <input id="Search-4" name="maxPrice" tabindex="3" title="max price" maxlength="6" value="" type="hidden">
  <input style="width: 0px; height:15; font-size: 50%;" value="" title="Go" name="Go" type="submit">
</form>

<br>



<form action="http://www.pricegrabber.com/search.php" method="get" target="_NEW" style="display: inline">
  <input name="form_keyword" style="width: 180px; height:15; font-size: 50%;" value="Pricegrabber" onfocus="this.className='on';if(this.value=='Pricegrabber')this.value='';" onblur="this.className='';if(this.value=='')this.value='Pricegrabber';" type="text">
  <input style="width: 0px; height:15; font-size: 50%;" value="" type="submit">
</form>

<br>



<!-- TV.com search -->


<form name="searchform" action="http://www.tv.com/search.php?tag=search;button" target="_NEW" style="display: inline;">
<input id="searchtext" name="qs" style="width: 180px; height:15; font-size: 50%;" value="TV.com" onfocus="this.className='on';if(this.value=='TV.com')this.value='';" onblur="this.className='';if(this.value=='')this.value='TV.com';" type="text">
          <!--<div class="btn" onClick="document.forms['searchform'].submit();"></div>-->
  <input style="width: 0px; height:15; font-size: 50%;" value="" type="submit">

    <input name="type" value="11" type="hidden">
    <input name="stype" value="all" type="hidden">
  </form>


Edited by Dignan (11/06/2008 20:51)
_________________________
Matt

Top
#311282 - 11/06/2008 22:42 Re: Strange HTML Question [Re: Dignan]
wfaulk
carpal tunnel

Registered: 25/12/2000
Posts: 16706
Loc: Raleigh, NC US
Originally Posted By: Dignan
what do you all use for a start page?

about:blank

I don't understand why people want any web page to come up every time they open a browser window.

I do have my home page set to four sites that I usually want open in a long-term browser session, but it's mostly just so I can hit Alt-Home to get them to come up.
_________________________
Bitt Faulk

Top
#311283 - 11/06/2008 23:12 Re: Strange HTML Question [Re: wfaulk]
larry818
old hand

Registered: 01/10/2002
Posts: 1039
Loc: Fullerton, Calif.
Originally Posted By: wfaulk

about:blank


I use my company's web page (it's my company) so I can see if it's still alive or not. The web page, not the company.

Top
#311295 - 12/06/2008 09:41 Re: Strange HTML Question [Re: Dignan]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14493
Loc: Canada
Originally Posted By: Dignan
what do you all use for a start page?

I use Firefox as my primary browser, and have it pointed at its own bookmarks.html file for the start page. Rather handy, that.

cheers

Top
#311308 - 12/06/2008 14:12 Re: Strange HTML Question [Re: mlord]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31597
Loc: Seattle, WA
Originally Posted By: Dignan
what do you all use for a start page?


I do something similar to what you're trying to do. I compose my own HTML start page, which has a navigation bar on the left, and it contains a lot of input fields for things like my favorite search engines. It also has a few strange features that other people might not understand, but which I find incredibly useful:

- Fedex and UPS tracking fields. Each time I use them, it saves the field contents as a cookie, so that the next time I boot up the system I merely have to click on the field once, and *pop* there's the last tracking number. (Because I am obsessive about checking and re-checking for a package to arrive.)

- A guitar key/capo transposition tool. I put in a few chords, such as Am D G, and a capo level, such as 5, and out pops the new chord chord forms at that capo level (in this case Em A D).

_________________________
Tony Fabris

Top
#311311 - 12/06/2008 14:48 Re: Strange HTML Question [Re: Dignan]
LittleBlueThing
addict

Registered: 11/01/2002
Posts: 612
Loc: Reading, UK
Originally Posted By: Dignan
And what do you all use for a start page?

Start?
You mean you shut your browser down?

smile

I use sessions. Of course that means I currently have 40 tabs open (mostly gtk/glib reference for my new N800 at the moment).

Another advantage to having a dual 1920x1200 layout is that you get a *lot* of little icons in the toolbar....
_________________________
LittleBlueThing Running twin 30's

Top
#311325 - 12/06/2008 19:46 Re: Strange HTML Question [Re: Dignan]
Roger
carpal tunnel

Registered: 18/01/2000
Posts: 5683
Loc: London, UK
Originally Posted By: Dignan
And what do you all use for a start page?


http://www.differentpla.net/~roger/links.xml

It's a simple XML file, along with some fairly simple XSLT that the browser uses to generate some fairly simple HTML. Then there's a CSS file.

There also used to be an ASP page for running the stylesheet server-side (back when IE couldn't do it itself, and I was using IIS as the server, rather than Apache).
_________________________
-- roger

Top
#311326 - 12/06/2008 19:47 Re: Strange HTML Question [Re: Roger]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31597
Loc: Seattle, WA
Add xkcd.com to "What's Funny". smile
_________________________
Tony Fabris

Top
#311332 - 13/06/2008 04:47 Re: Strange HTML Question [Re: tfabris]
Roger
carpal tunnel

Registered: 18/01/2000
Posts: 5683
Loc: London, UK
Originally Posted By: tfabris
Add xkcd.com to "What's Funny". smile


I would, but xkcd has got an RSS feed, so it's in my RSS reader (along with Dilbert, Penny Arcade, PvP, Goats and Ctrl+Alt+Del in the Comics category), rather than on my home page.
_________________________
-- roger

Top