Kingsly
Mar 31, 2006, 08:24 PM
I am [trying] to update my widget and its not working! Heres what's going on:
First of all, I am terrible at HTML, java, etc. The only reason this widget exists is probably the massive RDF emitted my my MacBook Pro.
Okay, heres what's going on:
My widget, Tabit, searches for Guitar tab and chords via Ultimate guitar.com
They recently changed their search function, leaving Tabit stuck searching for bands. I want to search SONGS.
Here is what I've got going on, from tabit.js: function perfomSearch(query){
query = query.replace(/ /g,"+");
var url = "http://www.ultimate-guitar.com/search.php?s="
if (query == ""){
clearSearch() }
else {
widget.openURL(url + query) }
U-G wants a song search to look like this: http://www.ultimate-guitar.com/search.php?s=place song title here&w=songs
Soo... how do I add on that little bit to the end?
I tried: widget.openURL(url + query + &w=songs) }
but it doesn't work, Tabit just sits there looking pretty.
As a side note, I changed the info side to include a URL to my website. Sadly, it doesn't seem to work from dashboard. Heres what I've got, from tabit.html: <p>Developer: <A HREF="http://www.mariposaprod.com">Mariposa Productions</A> <br />
Graphics: Michael Pogran</p>
Thanks, and PM me if you want the actual files to work with!
First of all, I am terrible at HTML, java, etc. The only reason this widget exists is probably the massive RDF emitted my my MacBook Pro.
Okay, heres what's going on:
My widget, Tabit, searches for Guitar tab and chords via Ultimate guitar.com
They recently changed their search function, leaving Tabit stuck searching for bands. I want to search SONGS.
Here is what I've got going on, from tabit.js: function perfomSearch(query){
query = query.replace(/ /g,"+");
var url = "http://www.ultimate-guitar.com/search.php?s="
if (query == ""){
clearSearch() }
else {
widget.openURL(url + query) }
U-G wants a song search to look like this: http://www.ultimate-guitar.com/search.php?s=place song title here&w=songs
Soo... how do I add on that little bit to the end?
I tried: widget.openURL(url + query + &w=songs) }
but it doesn't work, Tabit just sits there looking pretty.
As a side note, I changed the info side to include a URL to my website. Sadly, it doesn't seem to work from dashboard. Heres what I've got, from tabit.html: <p>Developer: <A HREF="http://www.mariposaprod.com">Mariposa Productions</A> <br />
Graphics: Michael Pogran</p>
Thanks, and PM me if you want the actual files to work with!
