Re: [DQSD-Users] need help with broken metacritic search

2006-01-30 Thread Monty Scroggins

Oh rats!..

I cant believe I didnt notice the post URL had changed..   I got off on 
an tangent trying to figure out how the page kicks off the processing...


Mont

Kim Gräsman wrote:

Hi Tom,

I've fixed the search from the copy you posted.

There were a couple of problems:

- parseArgsEx expects the value argument to be first, before all switch
arguments, so crit /music Tom Waits would search the music category for an
empty string, since there's nothing between crit and /music.

- The URL was wrong -- they seem to have moved the post target from
search.metacritic.com/ to www.metacritic.com/

I cleaned up the form to contain as little as possible, while I was at it.

Will commit to CVS as soon as possible.

Cheers,
- Kim

  

-Original Message-
From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] On Behalf Of 
Tom Corcoran

Sent: den 26 januari 2006 22:44
To: DQSD
Subject: [DQSD-Users] need help with broken metacritic search

The search for the metacritic site has been broken for some 
time. I attach an updated search which is NOT working 
however. I cannot figure out why. If anyone has the time i 
would appreciate some other eyes having a look.


Thanks, Tom.




---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642
___
To unsubscribe visit:
https://lists.sourceforge.net/lists/listinfo/dqsd-users
DQSD-Users@lists.sourceforge.net
http://sourceforge.net/mailarchive/forum.php?forum_id=8601


Re: [DQSD-Users] need help with broken metacritic search

2006-01-30 Thread Tom Corcoran

Hi Kim,

New that one needed some new eyes!

I wonder why the wizard never picked up the new action, I redid it and all.

Thanks a lot, I missed that search.

Tom.

Kim Gräsman wrote:

Hi Tom,

I've fixed the search from the copy you posted.

There were a couple of problems:

- parseArgsEx expects the value argument to be first, before all switch
arguments, so crit /music Tom Waits would search the music category for an
empty string, since there's nothing between crit and /music.

- The URL was wrong -- they seem to have moved the post target from
search.metacritic.com/ to www.metacritic.com/

I cleaned up the form to contain as little as possible, while I was at it.

Will commit to CVS as soon as possible.

Cheers,
- Kim
  



---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642
___
To unsubscribe visit:
https://lists.sourceforge.net/lists/listinfo/dqsd-users
DQSD-Users@lists.sourceforge.net
http://sourceforge.net/mailarchive/forum.php?forum_id=8601


RE: [DQSD-Users] need help with broken metacritic search

2006-01-29 Thread Kim Gräsman
Hi Tom,

I've fixed the search from the copy you posted.

There were a couple of problems:

- parseArgsEx expects the value argument to be first, before all switch
arguments, so crit /music Tom Waits would search the music category for an
empty string, since there's nothing between crit and /music.

- The URL was wrong -- they seem to have moved the post target from
search.metacritic.com/ to www.metacritic.com/

I cleaned up the form to contain as little as possible, while I was at it.

Will commit to CVS as soon as possible.

Cheers,
- Kim

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf Of 
 Tom Corcoran
 Sent: den 26 januari 2006 22:44
 To: DQSD
 Subject: [DQSD-Users] need help with broken metacritic search
 
 The search for the metacritic site has been broken for some 
 time. I attach an updated search which is NOT working 
 however. I cannot figure out why. If anyone has the time i 
 would appreciate some other eyes having a look.
 
 Thanks, Tom.
 



---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642
___
To unsubscribe visit:
https://lists.sourceforge.net/lists/listinfo/dqsd-users
DQSD-Users@lists.sourceforge.net
http://sourceforge.net/mailarchive/forum.php?forum_id=8601


[DQSD-Users] need help with broken metacritic search

2006-01-26 Thread Tom Corcoran
The search for the metacritic site has been broken for some time. I 
attach an updated search which is NOT working however. I cannot figure 
out why. If anyone has the time i would appreciate some other eyes 
having a look.


Thanks, Tom.
search function=crit
  namemetacritic/name
  categoryEntertainment/category
  contributorTom Corcoran/contributor
  linkhttp://www.metacritic.com/search/index.shtml/link
  email/email
  descriptionMetacritic compiles reviews from respected critics and publications for film, video/dvd, music and games.br/
div class=helpboxDescLabelsUsage:/div
  	table class=helpboxDescTable
  		trtdcrit [{/all | /film | /music | /games | | /book | /tv}] lt;ititle/igt; /td/tr
  	/table
div class=helpboxDescLabelsExamples:/div
table class=helpboxDescTable
  		trtdcrit /music bright orange bright yellow/td/tr
  		trtdcrit /film bringing down the house/td/tr
  	/table
  /description

  form name=critf
method=post
action=http://search.metacritic.com/search/process;
input type=hidden name=ts value= /
input type=hidden name=tfs value=all /
input type=hidden name=sb value=0 /
input type=hidden name=ty value=0 /
input type=hidden name=movie_videodvd value=true /
input type=hidden name=movie_intheaters value=true /
input type=hidden name=release_date_s value= /
input type=hidden name=release_date_e value= /
input type=hidden name=metascore_s value= /
input type=hidden name=metascore_e value= /
  /form

  script![CDATA[
function crit(q)
{
  if( nullArgs(crit, q) )
return false;
  else
{
  var args = parseArgsEx(q, all,film,music,games,book,tv);

  if( args.switches.length  0 )
for( var j=0; jargs.switches.length; j++ )
  switch( args.switches[j].name )
  {
case all: document.critf.ty.value = 0; break;
case film: document.critf.ty.value = 1; break;
case music: document.critf.ty.value = 2; break;
case games: document.critf.ty.value = 3; break;
case book: document.critf.ty.value = 4; break;
case tv: document.critf.ty.value = 6; break;
  }
}  
  document.critf.ts.value = args.q;

  submitForm(critf);
}
  ]]/script
/search