Brent, Nik, I copied this to defer_tools.js and renamed the function to parseArgsEx. I also copied your genealogy_trim function to trimWhitespace in defer_tools.js.
Glenn ----- Original Message ----- From: "Brent Beardsley" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, October 31, 2002 1:04 PM Subject: [DQSD-Devel] Re: parseArgs and whitespace > Hi Glenn and Nik, > > I needed the same functionality in my genealogy addon > because I wanted to have some one specify a place or a > name as a argument like: > > ssdi Carr, Glenn /location Santa Clara, CA > > So I took the original parseArgs and modified it so > that it would do what you're interested in doing. > > The one limitation I have is that args.q is now > everything before the first /argument and so the > arguments must go after the query string. That could > be changed by forcing the user to quote the string but > I didn't want to do that because that's one more thing > the user must remember to do and spaces are always > used in locations and names. > > The function is called genealogy_parseArgs in > genealogy_lib.js in the genealogy addon. > > Brent ------------------------------------------------------- This sf.net email is sponsored by: See the NEW Palm Tungsten T handheld. Power & Color in a compact size! http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0001en _______________________________________________ DQSD-Devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dqsd-devel
