Multiple variables for search queries
Tuesday, January 11, 2005 3:26:48 PM
Someone in the My.Opera forums figured out how you can pass multiple variables to your custom searches, using a Javascript query string. The search defined below can be used with: 'key XXX NNN', where XXX will be used for the first variable and NNN for the second. This way, you can add a large number of variables, just add queryArray[2] etc.
[Search Engine X]
Name=Search name
URL=javascript:query="%s";queryArray=query.split("+");URI="http://www.example.com/var1="+queryArray[0]+"&var2="+queryArray[1];document.location.href=URI;
Query=
Key=key
Is post=0
Has endseparator=0
Encoding=utf-8
Search Type=0
Verbtext=17063
Position=-1
Nameid=0
Found on:
<http://my.opera.com/forums/showthread.php?s=&threadid=69107>
For those just getting started on search.ini customization, 'g search.ini' will get you to the basic info.
[Search Engine X]
Name=Search name
URL=javascript:query="%s";queryArray=query.split("+");URI="http://www.example.com/var1="+queryArray[0]+"&var2="+queryArray[1];document.location.href=URI;
Query=
Key=key
Is post=0
Has endseparator=0
Encoding=utf-8
Search Type=0
Verbtext=17063
Position=-1
Nameid=0
Found on:
<http://my.opera.com/forums/showthread.php?s=&threadid=69107>
For those just getting started on search.ini customization, 'g search.ini' will get you to the basic info.







