> Look at the imdb.xml for an example - they use a field
> called "for" which is also a reserved word. The syntax to
> get it to work is document.imdbf["for"].value = q;
>
> For yours, it would be
>
> document.wotsitsearch["target].value = q;
This would be good to include in the FAQ.
> (I'm not sure where the args.q came from - maybe that was
> your problem...)
'args' is the object returned from the utility method, parseArgs. args.q is
the value being searched for minus any expected qualifiers/switches. Here's
the usage from defer_tools.js:
parseArgs
Used to parse standard switches (/foo or /foo:bar).
Takes the following parameters:
q - string from the search function
expectedSwitches - list or array of the expected switch values
expandSwitches - optional parameter used to determine
if the switch shortcuts should be expanded
(i.e. /f becomes /foo)
Function returns an object with three 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)
-------------------------------------------------------
This sf.net email is sponsored by: Jabber - The world's fastest growing
real-time communications platform! Don't just IM. Build it in!
http://www.jabber.com/osdn/xim
_______________________________________________
Dqsd-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dqsd-users
http://sourceforge.net/mailarchive/forum.php?forum_id=8601