[DQSD-Users] UK Phone Search (continued)

2004-04-26 Thread Paul Birch



Hello again,

Monty, Tom, thank you.

Paul, maybe you want 
to try with the wizard and have a go creating a search for : http://www2.bt.com/edq_resnamesearch

I think that BT may be doing something fancy 
to monitor and control sessions using this search. I can't get it 
working.

I did use the wizard to mess with your 
ukphone Tom (attached)and added town and street switches (although the 
street switch is pretty useless as it stands because it'll only work for one 
word street names!). I had to put in a bit of a hack with the undefined checks - 
my coding isn't good enough to figure why that's needed.

Thanks for pointing me to the wizard - it's 
really neat.

Cheers,

Paul


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.659 / Virus Database: 423 - Release Date: 15/04/2004
 

  
search function=ukphone
  COMMENT

Even though this XML search will probably load and is a good start
toward a completed search, please be aware that this search will probably
not work as is and will probably require some changes.

  /COMMENT
  nameSearch ukphonebook.com for UK phone numbers/name
  categoryPeople and Places/category
  contributorPaul Birch/contributor
  linkhttp://www.ukphonebook.com/servlet/Search/link
  email/email
  description
  /description
  form name=ukphonef
method=post
action=http://www.ukphonebook.com/servlet/Search;
input type=hidden name=skin value=newest /
input type=hidden name=pagesize value=10 /
input type=hidden name=type value=notspecified /

COMMENT The following field was active (i.e. had focus) when the search was generated. /COMMENT

input type=hidden name=name value= /
input type=hidden name=initial1 value= /
input type=hidden name=initial2 value= /
input type=hidden name=location value= /
input type=hidden name=locextra value= /
  /form
  script![CDATA[
function ukphone(q)
{
  if( nullArgs(ukphone, q) )
return;

  // Parse switches with parseArgs:

  // parseArgs usage:
  // Arguments:
  //q- string from the search function
  //expectedSwitches - list or array of the expected switch values
  //expandSwitches   - optional parameter [default = true] used to determine 
  //   if the switch shortcuts should be expanded (i.e. /f becomes /foo)
  // Returns an object with these properties:
  //q- the input string with the switches removed
  //switches - array of objects with these two properties:
  //  name:   expanded name of the matched switch (i.e. foo as in /foo:bar)
  //  value:  value of switch (i.e. bar as in /foo:bar)
  //switch_val - associative array with the switch name as the key with the switch value 
  // as the value. (i.e. switch_val[foo] = bar as in /foo:bar)

  var args = parseArgs(q, town, street);
  if ( args.switches.length  0 )
  {
switch( args.switches[0].name )
{
  case town:
break;
  case street:
break;
  default:
break;
}
  }

  // FORM variables for ukphonef
  document.ukphonef.skin.value = ;
  document.ukphonef.pagesize.value = ;
  document.ukphonef.type.value = ;

  // The wizard assigned the search string to this form field value because
  // this field was the active element when the search file was generated.
  // Change this to args.q if the search string is parsed with parseArgs.
  document.ukphonef.name.value = args.q;
  document.ukphonef.initial1.value = ;
  document.ukphonef.initial2.value = ;
  if ( typeof args.switch_val[town] != undefined)
	{
		document.ukphonef.location.value = args.switch_val[town];
	}
  if ( typeof args.switch_val[street] != undefined)
	{
  		document.ukphonef.locextra.value = args.switch_val[street];
	}

  submitForm(ukphonef);
}
  ]]/script
  copyright
The following applies if this file is included and distributed with Dave's Quick Search Deskbar:
Copyright (c) 2002 David Bau; Distributed under the terms of the GNU Public License, Version 2 (http://www.gnu.org/copyleft/gpl.txt)
  /copyright
  created_by
This search file was initially created on 04/26/04 at 17:46:03
by Dave's Quick Search Deskbar Search Wizard version 1.0.1 ,
Copyright (c) 2002 Glenn Carr; Distributed under the terms of the GNU General Public License, Version 2
  /created_by
/search

[DQSD-Users] UK Phone Search

2004-04-25 Thread Paul Birch



Hi,

I don't know if this list is the right place 
to ask - does anyone know of a UK phone search for dqsd (or any other UK 
searches for that matter)?

Thanks,

Paul


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.659 / Virus Database: 423 - Release Date: 15/04/2004
 


Re: [DQSD-Users] UK Phone Search

2004-04-25 Thread Monty Scroggins




hmmm I didnt find one on the available list of searches 
- http://www.dqsd.net/tools/dqsdtoc/searchtoc.pl 
so I thought I would install the search wizard, and post a search for http://www2.bt.com/edq_resnamesearch/.

But the links to the wizardare broken, and it appears to 
have two links to different versions on this page - http://www.dqsd.net/searchwizard.htm

Until the links are fixed, could someone 
with the search wizard throw together a search and sling it to the 
list?

Monty


  - Original Message - 
  From: 
  Paul 
  Birch 
  To: [EMAIL PROTECTED] 
  
  Sent: Sunday, April 25, 2004 3:29 
AM
  Subject: [DQSD-Users] UK Phone 
  Search
  
  Hi,
  
  I don't know if this list is the right 
  place to ask - does anyone know of a UK phone search for dqsd (or any other UK 
  searches for that matter)?
  
  Thanks,
  
  Paul
  ---Outgoing mail is certified Virus Free.Checked by 
  AVG anti-virus system (http://www.grisoft.com).Version: 6.0.659 
  / Virus Database: 423 - Release Date: 
15/04/2004