lukeprog
03-13-2004, 06:40 PM
Hey everyone. Here's a cool puzzle, I wonder if any of you can solve it, cuz I can't :-)
I'd love to create a VERY small website that exists for no other reason that to allow AMG All Music Guide (www.allmusic.com) searches via the Google Deskbar. So far, customized searches in the Google Deskbar only support URL searches. An example is a simple Google Deskbar search of imdb.com: http://www.imdb.com/find?tt=on;nm=on;mx=20;q={1} - where the contents of {} are replaced with the search term. It works perfectly. However, allmusic.com uses a dll search.
Now, the source code for allmusic.com front page show that the search is conducted in the following form:
<form action="/cg/amg.dll" method="POST" target="_top" name=d><input type="HIDDEN" name="P" value="amg">
...and with the following input box:
<input type="textfield" name="sql" size="25" maxlength="30">
Radio button also in the form determine if the search is for artist, album, style, etc., but I can worry about that later.
So, what I'm thinking is that perhaps I can set up my own site where a Google Deskbar customized search would send the user to, say:
http://www.lukesearch.com/search?=metallica
...and when the page loads it will automatically use Javascript to put the term (in this case, "metallica") into a variable, and then use that variable as the text submitted to the "http://www.allmusic.com/cg/amg.dll" form, remotely.
Is this kind of thing even possible? I haven't used Javascript or HTML for a couple years now and I'm a little rusty.
If that's not possible, is there another way of pulling this off that you can think of?
Thanks SO MUCH for your time, everyone!
I'd love to create a VERY small website that exists for no other reason that to allow AMG All Music Guide (www.allmusic.com) searches via the Google Deskbar. So far, customized searches in the Google Deskbar only support URL searches. An example is a simple Google Deskbar search of imdb.com: http://www.imdb.com/find?tt=on;nm=on;mx=20;q={1} - where the contents of {} are replaced with the search term. It works perfectly. However, allmusic.com uses a dll search.
Now, the source code for allmusic.com front page show that the search is conducted in the following form:
<form action="/cg/amg.dll" method="POST" target="_top" name=d><input type="HIDDEN" name="P" value="amg">
...and with the following input box:
<input type="textfield" name="sql" size="25" maxlength="30">
Radio button also in the form determine if the search is for artist, album, style, etc., but I can worry about that later.
So, what I'm thinking is that perhaps I can set up my own site where a Google Deskbar customized search would send the user to, say:
http://www.lukesearch.com/search?=metallica
...and when the page loads it will automatically use Javascript to put the term (in this case, "metallica") into a variable, and then use that variable as the text submitted to the "http://www.allmusic.com/cg/amg.dll" form, remotely.
Is this kind of thing even possible? I haven't used Javascript or HTML for a couple years now and I'm a little rusty.
If that's not possible, is there another way of pulling this off that you can think of?
Thanks SO MUCH for your time, everyone!