Mycroft![[boxes]](http://www.mozdev.org/sharedimages/boxes.gif)
| Users: | Home | Search | Uninstall | Requests | Contact | Hosting plugins | |
| Developers: | Contribute | Submit Plugins | Judge Plugins | Broken Plugins | Mailing List | Bugs | |
| Documentation: | Table of Contents | Quick Start | Introduction | Installing | Header | <SEARCH> | <INPUT> | <INTERPRET> | <BROWSER> | Icons | Additional Documentation |
Advanced Mozilla-Search Plugin Documentation.
Back to Main Table of ContentsThe <INPUT> tag information
- Contents
user
<input name="query" user>
Mozilla-Search currently has only one end user defined input. This is the string to search for. What "name=" is defined as depends on the search engine you are using.
Top^sourceid
<input name="sourceid" value="Mozilla-search">
Please include the above line in all of your Mozilla-Search plugins. It lets webmasters and site administrators know that people are using Mozilla-Search to search their websites. That Mozilla is generating traffic and/sales on their website. This will help promote the use of the Mozilla browser, the use of easily configured search tags, and the creation and/or maintenance of Mozilla-Search plugins by site administrators.
Top^inputnext and inputprev
inputnext name=page
inputprev name=page
The inputnext and inputprev input tags are used to move the Mozilla-Search sidebar results to the next or previous page in the search results. "Name" is defined by the the search engine you are using. You may define both the inputnext and the inputprev with different names, values or factors. You may define only one of these inputs to enable only one of the sidebar buttons. Alternatively you may define only one of these inputs and simply include the other input without defining it.
Like so:<inputnext name=start factor=10> <inputprev>
The second input will assume the name, value or factor of the first.
The inputnext and input previous tags have the option of using a factor or a value.
Top^factor
<inputnext name="start" factor="20">
The above example shows the inputnext tag using a factor. If this tag is used in your plugin the value of "start" will increase by 20 each time the next button in Mozilla-Search is depressed. Likewise a similarly defined inputprev tag would decrease the value of "start" by 20 each time the previous button in Mozilla-Search is depressed.
Top^value
<inputnext name="start" value="next20">
The above example shows the inputnext tag using a value. If this tag is used in your plugin, each time the next button in Mozilla-Search is depressed the "value" above is sent to the search engine. When using value you will usually need to define both the inputprev and inputnext tags separately. If both inputs are not fully defined the input that is not fully defined will assume the name and value of the input that is defined.
Top^other <INPUT> tags
<input name="name" value="value">
Some sites may require other inputs or you can add more inputs to your search plugins to make your plugins search more specific.
| Top^ | Back to Main Table of Contents | Next> |
User Contributed Notes for this section
Have a useful tip or trick to add to this section? You can use the form below to add your comment to the user contributed notes.
If you find something that no longer works, is invalid, or is no longer needed. Please let us know by contacting us through the Mycroft Mailing List.
Please do not place corrections in the user notes section, it is for helpful tips and tricks only.
Have you found and documented a feature that is not documented in these pages? Send it to us for inclusion in these documents and we will add your name to the list of contributors for this document.
If you do not get a response to a question posted in this forum, please try sending a message to the project's mailing list or to the project owner directly.
- [1] Submitted by: Joscha Feth on Saturday June 28th 2003
-
Is there any way to split the "user" input into arguments?
For a phonebook lookup for example the name and the city is needed, so I just would split the user input at the spaces and then order it into the <input> elements, perhaps the user argument could made mixed:
<input name="all" user>
<input name="first" user[0]>
<input name="second" user[1]>
<input name="nth" user[n]>If you know a way to do this, please mail to
joscha at feth dot com - [2] Submitted by: mat on Saturday June 28th 2003
-
The Mozilla-search interface only has one user defined input field. I don't believe the search service has a way of splitting the data that is entered in that field either.
Though this does not work well for every search engine, what you can do is make several plugins.
For example:
One that performs a search on "city name" and another that performs a search on "postal code".
- [3] Submitted by: Joscha Feth on Sunday June 29th 2003
-
Thanks for your response, even if this is bad news :-/
Because if I search for the address/phone number of a person I really need to forward the name AND the postal code to the search engine (in two different input fields for sure) - if I only search for the name I get all people with that name all over the country - in some cases that might work, but if you enter a common name you get loads of results... - [4] Submitted by: Julius on Monday June 30th 2003
-
Joscha: Perhaps you will find bookmarklets useful
- [5] Submitted by: Daniel on Friday August 8th 2003
-
I was wondering how to use another start factor then 0. Like when you use the factor command it always starts with0. I need it to start with 1 though. Anyone?
- [6] Submitted by: mat on Saturday August 9th 2003
-
Please take a look at http://bugzilla.mozilla.org/show_bug.cgi?id=150333 for more information on the start factor bug and maybe vote for it.
If you have additional questions, concerning this issue, please post to the mailing list http://www.mozdev.org/mailman/listinfo/mycroft/ or comment on the bug.
We would like to know what sites are affected by this bug.
Thanks... :-)
- [7] Submitted by: Jon on Wednesday September 10th 2003
-
Is there any way to concatinate the search phrase directly onto the action URL, without having to use any name/value pairs? I'm working with the tag which uses the get method by default.
e.g. I would like to pass the search request merely as "http://lysy2.archives.nd.edu/cgi-bin/words.exe?confundor" obviously without the quotes.
- [8] Submitted by: Jon on Wednesday September 10th 2003
-
That would be the isindex tag, which was merely a figure of my imagination in my previous post.
- [9] Submitted by: mawi on Tuesday March 23rd 2004
-
agree that there should be a (non-intrusive) way to submit several search parameters. needlesearch does it.
simple fix and very useful for searching newsgroups, etc.
- [10] Submitted by: Leon Zandman on Monday 26th July 2004 at 04:53 -0400
-
Is it possible to concatenate text to the end user defined input? For example if I want to use Google to search for shellexecute on Microsoft's MSDN I'd want to use the following search string: "site:msdn.microsoft.com shellexecute". What I want is to let the site-part of the search string be fixed (in the .src file) but the shellexecute-part should be the string the user specified.
By the way: I know this specific example can also be implemented using Google's SiteSearch feature (adding the "domains" and "sitesearch" input tags).
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; MyIE2; .NET CLR 1.1.4322) - [11] Submitted by: Clemi on Wednesday 28th July 2004 at 19:14 -0400
-
I need the following:
q=[constant][userinput]
How do I insert the constant part in front of the user in put?Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040614 Firefox/0.9 - [12] Submitted by: Peter on Saturday 18th September 2004 at 03:57 -0400
-
Is there a way to split up the search terms yet? I'd like to do this:
Mozilla/5.0 (Windows; U; Windows NT 5.1; rv:1.7.3) Gecko/20040913 Firefox/0.10 - [13] Submitted by: Peter on Saturday 18th September 2004 at 03:58 -0400
-
Okay, let's try this again. I'd like to do this:
input name="make" user1
input name="model" user2Mozilla/5.0 (Windows; U; Windows NT 5.1; rv:1.7.3) Gecko/20040913 Firefox/0.10 - [14] Submitted by: Oogie on Tuesday 21st September 2004 at 10:28 -0400
-
I'd like to submit a Parameter without a value like:
http://www.test.com/index.php?Parameter&second=10The Parameter "Parameter" would be what I want to do.
I'd appreciate any help u can give!
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040803 Firefox/0.9.3 - [15] Submitted by: Oogie on Wednesday 22nd September 2004 at 04:27 -0400
-
Hi folks,
I found a way to fake it. Just do it like that:
action="http://www.test.com/index.php?Parameter&"
if u add
u get
http://www.test.com/index.php?Parameter&?blind=uga&Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040803 Firefox/0.9.3 - [16] Submitted by: Thorsten on Friday 24th September 2004 at 08:05 -0400
-
Hi Oogie,
same problem here. I need to submit a Parameter without a value for Domino/Notes URLs.
e.g.
http://www-10.lotus.com/ldd/46dom.nsf/Search?Searchview&Query=testI tried your workaround but i doesn't work.
Mozilla/5.0 (Windows; U; Windows NT 5.1; rv:1.7.3) Gecko/20040913 Firefox/0.10 - [17] Submitted by: Sanyi on Monday 4th October 2004 at 06:39 -0400
-
Is there a way to 'escape' slashes and other special characters in the user input? I mean if have something like
and I search for http://foo.org/
I want to get
...?url=http://foo.org/
and not
...?url=http%3A%2F%2Ffoo.org%2FIs this possible?
Mozilla/5.0 (Windows; U; Windows NT 5.0; rv:1.7.3) Gecko/20041001 Firefox/0.10.1 - [18] Submitted by: mediabrat on Thursday 7th October 2004 at 23:55 -0400
-
Oogie and Thorsten:
Couldn't you just use the parameter, an ampersand, and the second parameter in the "name" attribute? For example, to get:
http://www-10.lotus.com/ldd/46dom.nsf/Search?Searchview&Query=test
You'd use:
action="http://www-10.lotus.com/ldd/46dom.nsf/Search"
input name="Searchview&Query" user=""
input name="sourceid" value="Mozilla-search"Make sure you put the 'input name="sourceid" value="Mozilla-Search"' AFTER the "user" tag, otherwise the search form will blow up.
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040707 Firefox/0.9.2 - [19] Submitted by: Shariq on Wednesday 20th October 2004 at 14:40 -0400
-
Hi,
I am looking for the exact same thing as Cleml describes in [10] in this forum (see also:http://mycroft.mozdev.org/deepdocs/inputtags.html#c11).
Is there any way to concatenate the query string?
Thanks,
ShariqMozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8a4) Gecko/20040928 Firefox/0.9.1+ - [20] Submitted by: Dan on Saturday 23rd October 2004 at 04:10 -0400
-
Aight Sani
http%3A%2F%2Ffoo.org%2F
should interpret as
http://foo.org/
Even my out-of-the-box PHP install interprets it like that the %3A or whatever is just for the URL... Once it hit's the server it's automatically changed back to :As for Shariq and Clemi. No. Sorry, I know that would be nice, to be able to have say a Google search that automatically prepends say "Honda Trail 70 " to your search, but, as far as I can tell your closest bet would be to get a hold of a php server and set up an intermediary script that the search plugin calls. The script would then prepend the string and pass it along to the search engine. Note, that's only a logical solution for a personal search plugin, If you want to distribute the plugin then...
Example PHP script:
<?php
header("HTTP/1.1 301 Moved Permanently");
header("Location: http://www.foo.com?search=constantstring".$HTTP_GET_VARS['search']);
?>
Actually, that's about it...
But again, that's only suitable for personal use...Mozilla/5.0 (X11; U; Linux i686; rv:1.7.3) Gecko/20041014 Firefox/0.10.1 - [21] Submitted by: Dan on Saturday 23rd October 2004 at 04:24 -0400
-
Ok, wasn't counting on the server parsing out the < and > < = ''
Mozilla/5.0 (X11; U; Linux i686; rv:1.7.3) Gecko/20041014 Firefox/0.10.1 - [22] Submitted by: Dan.. again on Saturday 23rd October 2004 at 04:26 -0400
-
Grr... < is a left angle bracket and > is a right angle bracket
Mozilla/5.0 (X11; U; Linux i686; rv:1.7.3) Gecko/20041014 Firefox/0.10.1 - [23] Submitted by: Christopher on Sunday 31st October 2004 at 19:14 -0500
-
What is that "isindex tag" comment above? Can you have just the value part of the key/value from ?
Mozilla/5.0 (Windows; U; Win98; rv:1.7.3) Gecko/20041001 Firefox/0.10.1 - [24] Submitted by: Rich on Monday 15th November 2004 at 15:32 -0500
-
I too would also to like prepend/append a value to the query string for a google search. It seems like such functionality would be very useful.
Mozilla/5.0 (Windows; U; Windows NT 5.0; rv:1.7.3) Gecko/20041001 Firefox/0.10.1 - [25] Submitted by: Rich on Monday 15th November 2004 at 15:37 -0500
-
Well, I just found at the google will take multiple "q" input fields.
Like this will add the "java" keyword to all searchs
Mozilla/5.0 (Windows; U; Windows NT 5.0; rv:1.7.3) Gecko/20041001 Firefox/0.10.1 - [26] Submitted by: Rich on Monday 15th November 2004 at 15:38 -0500
-
err, like this:
<input name="q" user="">
<input name="q" value="java">Mozilla/5.0 (Windows; U; Windows NT 5.0; rv:1.7.3) Gecko/20041001 Firefox/0.10.1 - [27] Submitted by: Raleigh Muns on Wednesday 17th November 2004 at 14:32 -0500
-
Slightly related (but I'm excited because I'm new to this and I figured it out quickly and want to share):
Depending on what you want to attach to the Google query string, if a Google variable exists for what you want to attach (e.g., the "sitesearch" variable which restricts searches to a specified domain) you can simply assign the value directly to the variable this way:
[input name="sitesearch" value="worldcatlibraries.org"]
(sub angular brackets for square ones above)
The user input query string will have the "sitesearch" string automatically included in the search.
In any case, big thanks to Rich for the ability to concatenate in a google query. VERY useful.
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.1.4322) - [28] Submitted by: Codrin on Wednesday 24th November 2004 at 12:17 -0500
-
what about other dynamic values like the site name of the currently open page?
for example having something like this will allow Google Site Search functionality:
where the "CURRENT_SITE" value is coming from the browser, the same way the "user" value comes in this tag:Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0 - [29] Submitted by: Codrin on Wednesday 24th November 2004 at 12:18 -0500
-
OOPS. the tags were lost in the initial post
what about other dynamic values like the site name of the currently open page?
for example having something like this will allow Google Site Search functionality:
[input name="q" site:CURRENT_SITE]
where the "CURRENT_SITE" value is coming from the browser, the same way the "user" value comes in this tag:[input name="field0" user]
Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0 - [30] Submitted by: wrnr on Thursday 25th November 2004 at 10:18 -0500
-
When I understand it correct, inputnext/inputprev needs an inputfield. What can i do, when the searchengine offers links for prev/next page in the results page?
Mozilla/5.0 (Windows; U; WinNT4.0; de-DE; rv:1.7.5) Gecko/20041108 Firefox/1.0 - [31] Submitted by: Ted on Friday 26th November 2004 at 20:46 -0500
-
I need multiple words in the user input to be separated by '_' as opposed to '+'. Is this possible?
Mozilla/5.0 (Windows; U; Windows NT 5.0; rv:1.7.3) Gecko/20040913 Firefox/0.10.1 - [32] Submitted by: Chris on Sunday 28th November 2004 at 15:39 -0500
-
Ted, I do not belive so.
Chris
elfan[at]db-forge[dot]comMozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0 - [33] Submitted by: Felipe Cardoso on Monday 29th November 2004 at 11:19 -0500
-
Hi People,
I'm trying to create a search and I need to put a parameter without value. Like:
http://www-10.lotus.com/ldd/nd6forum.nsf/Search?SearchView&Query=smtp
The SearchView parameter is needed without value.
How can I do that?
Thanks,
Felipe
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1) - [34] Submitted by: Chris on Monday 29th November 2004 at 19:43 -0500
-
Felipe,
You could try having an input tag named "SearchView&Query"Chris
elfan[at]db-forge[dot]comMozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0 - [35] Submitted by: Felipe Cardoso on Tuesday 30th November 2004 at 10:02 -0500
-
Great Chris!!! It worked!
Thanks, Felipe
Mozilla/5.0 (Windows; U; Windows NT 5.1; pt-BR; rv:1.7.5) Gecko/20041118 Firefox/1.0 - [36] Submitted by: Jason on Thursday 2nd December 2004 at 15:52 -0500
-
This is what i have for my action and search form:
action="http://www.randomsite.com/search_Products.aspx?videotype=2§ion=0&searchBy=Keyword&keyword="
searchForm="http://www.randomsite.com/search_Products.aspx"I cannot for the life of me figure out the
tag.
What ever i put in the "query" variable, I get returned search results like such.
using search word college.
my search results come out that i searched for the following: ?keyword=collegeAny help would be appreciated, as I am quite new to this. thanks.
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0 - [37] Submitted by: Jason on Thursday 2nd December 2004 at 15:55 -0500
-
This is what i have for my action and search form:
action="http://www.randomsite.com/search_Products.aspx?videotype=2§ion=0&searchBy=Keyword&keyword="
searchForm="http://www.randomsite.com/search_Products.aspx"I cannot for the life of me figure out the
[input name="query" user=""]
tag.What ever i put in the "query" variable, I get returned search results like such.
[input name "keyword" user=""] using search word college.
my search results come out that i searched for the following: ?keyword=collegeAny help would be appreciated, as I am quite new to this. thanks.
*sorry, used the wrong brackets last post. also will this type of search even work with this documentation?*
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0 - [38] Submitted by: Chris on Sunday 5th December 2004 at 11:59 -0500
-
Jason,
You don't need the quotes after user.
[input name="query" user]Chris
elfan[at]db-forge[dot]comMozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0 - [39] Submitted by: Dan on Monday 20th December 2004 at 10:16 -0500
-
I installed the TinyURL search from this site -- IT DOES NOT WORK WELL. Just me? Some urls (like this page for example) work ok. But many queries result in
http://%3a%2f%2fTINYLINKHEREI can't seem to find any consistency/logic in what is happening. Any ideas?
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0 - [40] Submitted by: Dan on Wednesday 22nd December 2004 at 11:28 -0500
-
^ I think it needs 'unescape(RegExp...)'ing.
can this be done within theMozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0 - [41] Submitted by: Dan on Wednesday 22nd December 2004 at 11:31 -0500
-
Let's try this again -- not sure why it got cut off
(btw, why does Mozilla insist on such crappy web design - a BB forum would be SO much better than this!)
--
I was saying:
can this be done within the Src or does it have to be redirected to another file (html file like in the POST redirect trick)?Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0 - [42] Submitted by: Dan on Sunday 26th December 2004 at 02:47 -0500
-
*** FULLY WORKING TINYURL-generator!! ***
I used the POST-redirect trick and have a fully working TinyURL plugin. No more %3a%2a garbage!!
I don't think Mycroft is taking new plugins or if they are it apparently takes weeks (months) to be posted. Therefore I've posted the files here:
http://misc.miscstuff.cjb.net/tinyurl.rarjust unRAR to your ..FireFox/searchplugins folder and then edit the TinyURL.src file to check/update your FireFox path. Open FF and away you go!
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0 - [43] Submitted by: John on Wednesday 26th January 2005 at 16:24 -0500
-
I am trying to integrate a private Search Engine into Firefox. Is there a way to send username/password (not hardcoded in the src file) to the search engine?
Is it possible to provide a different texbox in the toolbar where the username/password can go? or can these be read from the firefox password database?Any ideas?
thanks,
JohnMozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0 - [44] Submitted by: Jared Zimmerman on Thursday 27th January 2005 at 14:10 -0500
-
i'm trying to create a reverse link generator, the search string as it works in google is below, the use input needs to be placed in two locations but thiers still only one actual query, i can't seem to get this to work as a search plugin.. it only seems to transmit part of it to google.... any help?
http://www.google.com/search?num=5&hl=en&lr=lang_en&safe=off&q=-site%3Aimdb.com+AND+link%3Aimdb.com+&btnG=Search
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0 - [45] Submitted by: RenegadeX on Saturday 29th January 2005 at 16:51 -0500
-
Ok, I made a plugin that uses the POST-workaround trick (uses a script in a seperate HTML file). Plugin works great -- except for multi-word queries when the space between words comes out as a + sign in the search site. Unforunately the + sign is not allowed on that site so I get an error. I've been using the & sign in my queries as a workaround, but surely there is a javascript code snippet I can use in my HTML file to take the + sign out and replace it with a space (even as character such as what you get when you type Alt+0160?). Then I should be able to pass this new value to the POST form.
Do-able?
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041109 Firefox/1.0 (ax) - [46] Submitted by: billy on Sunday 6th February 2005 at 19:25 -0500
-
You will need to use regular expressions
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; MSN 9.0;MSN 9.1; MSNbMSNI; MSNmen-us; MSNcIA; MPLUS) - [47] Submitted by: dave on Friday 25th February 2005 at 09:31 -0500
-
You can bodge concatenation sufficently to work with google. For example:
It works, but it does place an = before the user input. That's ugly, but you still get the same results out.
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.6) Gecko/20050223 Firefox/1.0.1 - [48] Submitted by: dave on Friday 25th February 2005 at 12:27 -0500
-
Scratch my previous comments (which came out wrong anyway :)), you can search a specific site using google, without needing concatenation:
[input name="sitesearch" id="gwiki" value="en.wikipedia.org"]
[input name="domains" value="en.wikipedia.org"]Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.6) Gecko/20050223 Firefox/1.0.1 - [49] Submitted by: z4nd on Saturday 26th March 2005 at 09:56 -0500
-
Just started learning this :)
How do i get a checkbox checked ?
like this one:
Testsso when i search, it will allways be checked
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.6) Gecko/20050317 Firefox/1.0.2 - [50] Submitted by: z4nd on Saturday 26th March 2005 at 09:57 -0500
-
sorry about the last one
its is:
[input type='checkbox' name='tests'] Testsso how do i make sure the checkbox is allways checked ?
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.6) Gecko/20050317 Firefox/1.0.2 - [51] Submitted by: daniel on Monday 4th April 2005 at 05:01 -0400
-
if the search string is
www.url.com?searchword..i dont want the ?q=searchword
just ?searchwordhow to make this happend?
thanx for helping... danjul@thepiratbay.comMozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.6) Gecko/20050317 Firefox/1.0.2 - [52] Submitted by: bg on Sunday 10th April 2005 at 11:04 -0400
-
guys there is a way to split what the user enters.
it uses jvascript.
first create a html file with somewhat similar contents:[html]
[head]
[script language="JavaScript"]
function sep()
{
var re = document.URL.lastIndexOf('=');
var b = document.URL.substring(re+1);
var i=b.indexOf('+');
var x=b.substring(0,i);
var y=b.substring(i+1);
document.forms[0].split1.value=x;
document.forms[0].split2.value=y;
document.forms[0].submit();
}
[/script]
[title]your name goes here[/title]
[body onLoad="sep()"]
[form name="myform" action="whatever site you want" method="post" ]
[input type="hidden" name="split1"/]
[input type="hidden" name="split2"/][/form]
[/body]
[/html]
(change all the [ to ).
this file will both split the users query into two parts x and y and will also serve as a post redirector(Thanx to glamdring for help).
next in your src file change the action to the name of the html file(with full path).
Now you should be able to split the users query.
regardsMozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6) Gecko/20040206 Firefox/0.8 - [53] Submitted by: Bas Steelooper on Thursday 26th May 2005 at 06:22 -0400
-
Hello,
as of version 1.0.4 of FireFox I have a problem with several searchplugins which work following the "POST"-method. eg access a local HTML file to do the POST.
Does anyone know a solution for this??
Regards,
Bas Steelooper
mycroft (at) steelooper.comMozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.8) Gecko/20050511 Firefox/1.0.4 - [54] Submitted by: zan on Tuesday 31st May 2005 at 13:27 -0400
-
Is there any way to prevent firefox from appending "&client=firefox-a" to search queries? A search engine I am using uses "client" for something else, and it is confusing things.
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.8) Gecko/20050511 Firefox/1.0.4 - [55] Submitted by: Genau on Friday 8th July 2005 at 11:53 -0400
-
I developing a serch engine to www.meucarronovo.com.br - The largest car seller Brazilīs portal.
I would like to know, if i will need make an other script to my seach engine, cause him uses the POST method.
hereīs mozilla code from .src file:
Mozilla/5.0 (Windows; U; Windows NT 5.1; pt-BR; rv:1.7.8) Gecko/20050511 Firefox/1.0.4 - [56] Submitted by: Chris on Friday 8th July 2005 at 18:12 -0400
-
I've seen several versions of the question most recently posed by Comment #51 and can't seem to find the answer here.
Can it be done, I have the same problem for an intranet site and can't get around it.Mozilla/5.0 (Windows; U; Windows NT 5.0; en-GB; rv:1.7.8) Gecko/20050511 Firefox/1.0.4 - [57] Submitted by: TT on Saturday 9th July 2005 at 13:54 -0400
-
Hi,
Is there any way to construct multiple inputs with the same name, please? For example, the web site expects to see:
...&checked=1&checked=2&checked=3...
But this does not work:
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.8) Gecko/20050511 Firefox/1.0.4 - [58] Submitted by: TT on Saturday 9th July 2005 at 13:57 -0400
-
err...
But this does not work
input name="checked" value="1"
input name="checked" value="2"
input name="checked" value="2"
(The greater-than and less-than signs are not included)
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.8) Gecko/20050511 Firefox/1.0.4 - [59] Submitted by: TT on Saturday 9th July 2005 at 14:04 -0400
-
...when I give three inputs with the same name, only the 1st one shows up in the search query.
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.8) Gecko/20050511 Firefox/1.0.4 - [60] Submitted by: qbxk on Thursday 14th July 2005 at 17:36 -0400
-
I don't see how their website works if they have multiple input tags using the same name, only the last one in the source order will get sent is my suspicion, so go ahead and in your .src file get rid of the others and send only one with that value. (are you sure they're not "type=checked"? - that would make more sense, can you post a link to this page you're referring to?)
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050511 Firefox/1.0.4 - [61] Submitted by: qbxk on Thursday 14th July 2005 at 17:37 -0400
-
Comment #51 guys: can't do it. (period) maybe in later versions...
http://mycroft.mozdev.org/deepdocs/inputtags.html#c51Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050511 Firefox/1.0.4 - [62] Submitted by: qbxk on Thursday 14th July 2005 at 17:40 -0400
-
Comment #51 revisited: if you set up a "proxy" you can hack your way around it, that is, write a script to put on your server which takes "q=whatever" form (or whatever variable you want to use) and (say, using lwp) passes it as "url.com/search?whatever" and returns the result. a "pass-through" or "proxy"...
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050511 Firefox/1.0.4 - [63] Submitted by: TT on Saturday 16th July 2005 at 17:24 -0400
-
Hi qbxk,
Thanks for your reply #60. Here is the weblink with three "checked-languages" inputs.
http://decentius.hit.uib.no/lexin.html?dict=nbo-eng-maxi&ui-lang=ENG&checked-languages=E&checked-languages=N&checked-languages=B&search=hei&run-search=
And here is a link with only one "checked-languages" input.
http://decentius.hit.uib.no/lexin.html?dict=nbo-eng-maxi&ui-lang=ENG&checked-languages=E&search=hei&run-search=
They give different outputs.
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.8) Gecko/20050511 Firefox/1.0.4 - [64] Submitted by: TT on Saturday 16th July 2005 at 17:27 -0400
-
Sorry the long line did not work. Here it is again, but broken up.
http://decentius.hit.uib.no/lexin.html?dict=nbo-eng-maxi&ui-lang=ENG &checked-languages=E&checked-languages=N&checked-languages=B &search=hei&run-search=
Please combine the three lines together when you try the link.
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.8) Gecko/20050511 Firefox/1.0.4 - [65] Submitted by: TT on Saturday 16th July 2005 at 17:31 -0400
-
#@$#@!!! Third time for same post again! Sorry the above probably has extra spaces. Let me try again.
http://decentius.hit.uib.no/lexin.html?dict=nbo-eng-maxi&ui-lang=ENG...
...&checked-languages=E&checked-languages=N&checked-languages=B
...&search=hei&run-search=
Please remove the "..."
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.8) Gecko/20050511 Firefox/1.0.4 - [66] Submitted by: TT on Saturday 16th July 2005 at 17:34 -0400
-
Here is the query with only the last "checked-language" input, i.e. with only "B"
http://decentius.hit.uib.no/lexin.html?dict=nbo-eng-maxi&ui-lang=ENG&checked-languages=B&search=hei&run-search=
which gives yet another output.
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.8) Gecko/20050511 Firefox/1.0.4 - [67] Submitted by: kikidelacasa on Thursday 21st July 2005 at 03:48 -0400
-
The inputnext tag starts at the index 0, is it possible to start it at a specified value (ex : 1) ?
Regards
Mozilla/5.0 (Windows; U; Windows NT 5.0; fr-FR; rv:1.7.10) Gecko/20050717 Firefox/1.0.6 - [68] Submitted by: Adam Richards on Saturday 20th August 2005 at 21:33 -0400
-
I need to make it so it just adds text without the ?name thing... i want it to be like this:
search.dogpile.com/info.dogpl/search/multimedia/TEXTFROMSEARCHHERE
NOT
search.dogpile.com/info.dogpl/search/multimedia/?q=TEXTFROMSEARCHGOESHERE
is that possible?
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6 - [69] Submitted by: O on Thursday 25th August 2005 at 13:34 -0400
-
is it possible to post the query without a variable name?
i have to do this since the searchengine retrieves the keyword without a variable like http://www.url.com?thekeyword
not http://www.url.com?q=thekeywordwont work...
Mozilla/5.0 (Windows; U; Windows NT 5.0; sv-SE; rv:1.7.10) Gecko/20050717 Firefox/1.0.6 - [70] Submitted by: O on Thursday 25th August 2005 at 13:37 -0400
-
As i was reading the comments a bit more... I saw that the answer to my question was already there, to change my question a bit then...
Is it possible to use POST or is only GET supported?
Mozilla/5.0 (Windows; U; Windows NT 5.0; sv-SE; rv:1.7.10) Gecko/20050717 Firefox/1.0.6 - [71] Submitted by: Grischa on Friday 30th September 2005 at 05:00 -0400
-
The space charakter in the search string is "+". But my site require "%20" for space character. For example I search for "word1 word2", I get "...=word1+word2" and it finds word1. To searching both words I need "...=word1%20word2".
Mozilla/5.0 (Windows; U; Windows NT 5.1; de-DE; rv:1.7.12) Gecko/20050919 Firefox/1.0.7 - [72] Submitted by: Alan on Wednesday 5th October 2005 at 02:26 -0400
-
Will it be possible to execute some javascript to get information from the browser (such as my current URL) ? I'd like to include as a key-value pair the last website that I visited so that the search engine can get "context" of what I am searching.
Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.8) Gecko/20050511 Firefox/1.0.4 - [73] Submitted by: Josh on Saturday 22nd October 2005 at 00:50 -0400
-
For the google maps extension: I want to modify it so that every address searched for is in new york, ny. For example, to search 123 park avenue, new york, ny, I want to only have to type 123 park avenue. How can I make it so that the search string automatically includes "new york, ny." Before answering, make sure that it works...i haven't found a solution :-(
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b5) Gecko/20051006 Firefox/1.4.1 - [74] Submitted by: Don on Saturday 3rd December 2005 at 11:01 -0500
-
I am wondering if it is possible to give empty value in the input tag.
I tried follows but not working:
In both cases, a or b does not appear at all when searching. This particular search engine requires all variables to appear even if they have no values (e.g. "a=&b=").
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8) Gecko/20051111 Firefox/1.5 - [75] Submitted by: Frank on Wednesday 7th December 2005 at 01:27 -0500
-
How can I concat a sting for searching?
Something like:
input name="search" value="add" + user + "add"
Does that work?Mozilla/5.0 (Windows; U; Windows NT 5.1; de-DE; rv:1.7.12) Gecko/20050919 Firefox/1.0.7 - [76] Submitted by: JB on Wednesday 22nd March 2006 at 10:16 -0500
-
By using the following javascript code (remove all # and returns ;-P) as the location, it is possible to use multiple parameters in a search term:
#javascript:
#var s='%s';
#url='http://link2.map24.com?lid=932c6909&maptype=JAVA&street0=%s&city0=%s&country0=nl&csl=1&sourceid=Mozilla-search';
#t='';
#qc=0;
#chunks=url.split('%s');
#for(i=0;iMozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.1) Gecko/20060111 Firefox/1.5.0.1 - [77] Submitted by: JB on Wednesday 22nd March 2006 at 10:22 -0500
-
oeps, it's supposed to be (replace the < and >)
javascript:var s='%s';
url='http://link2.map24.com?lid=932c6909&maptype=JAVA&street0=%s&city0=%s&country0=nl&csl=1&sourceid=Mozilla-search';
t='';
qc=0;
chunks=url.split('%s');
for(i=0;i<s.length;i++){
if(s.charAt(i)=='"')
qc=qc^1;
t+=((s.charAt(i)==''&&qc)?'^':s.charAt(i));
}
args=t.split(/\s/);
nurl='';
for(i=0;i<chunks.length;i++){
nurl+=chunks[i];
if(args[i]!=undefined){
args[i]=args[i].replace(/\^/g,' ');
nurl+=args[i];
}else{
nurl+='amsterdam';
}}
location.replace(nurl,'<BR>');Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.1) Gecko/20060111 Firefox/1.5.0.1 - [78] Submitted by: MSS on Friday 24th March 2006 at 16:41 -0500
-
I've checked the http://mycroft.mozdev.org/deepdocs/inputtags.html#c51
Comment 51 problem, and mine is not quite the same - basically I need neither
www.url.com?q=searchword (known possible)
or
www.url.com?searchword (known impossible)
but
www.url.com?qsearchword
or
www.url.com?q searchwordAny ideas, anyone? Or is this also known to be impossible for current mozilla vers?
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.1.4322) - [79] Submitted by: sw on Sunday 16th April 2006 at 17:53 -0400
-
for(i=0;i<chunks.length;i++){
for(i=0;i<chunks.length;i++){thanks
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7 - [80] Submitted by: bolle on Friday 28th April 2006 at 10:44 -0400
-
i coded something similar to JB's solution (for 3-parameter map search in berlin):
javascript:s='%s';sep=' ';url='http://www.berlin.de/stadtplan/map.asp?str=%w&num=%w&plz=%w&start.x=5&size=5x5&sourceid=Mozilla-search';urlparts=url.split('%w');sparts=s.split(sep);nurl='';for(i=0;i
Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.0.2) Gecko/20060308 Firefox/1.5.0.2 - [81] Submitted by: mistkackverdammter on Friday 28th April 2006 at 10:46 -0400
-
...etc, but it only worked as a bookmarklet, not in a searchplugin. javascript urls don't seem to work in searchplugins, all i get is:
[Exception... "Component returned failure code: 0x8000ffff (NS_ERROR_UNEXPECTED) [nsIInternetSearchService.GetInternetSearchURL]" nsresult: "0x8000ffff (NS_ERROR_UNEXPECTED)" location: "JS frame :: chrome://browser/content/search.xml :: onTextEntered :: line 274" data: no]
Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.0.2) Gecko/20060308 Firefox/1.5.0.2 - [82] Submitted by: wish they had on Friday 28th April 2006 at 10:51 -0400
-
a [code] tag
Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.0.2) Gecko/20060308 Firefox/1.5.0.2 - [83] Submitted by: Kharol on Monday 5th February 2007 at 07:36 -0800
-
someone here was fighting with concatenation of the user variable. I'm also struggling with this. Currently I can easily modify the .xml files created from the .src to do such things, but I don't have the faintest idea how to get this into the .src. (Which also means that searches created this way cannot be loaded into the mycroft page... Anybody found a direct way for search string concatenation? (I'd need the search string several times with different left and right concats..
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.1) Gecko/20061204 Firefox/2.0.0.1 - [84] Submitted by: UMADD3D on Sunday 25th February 2007 at 07:57 -0800
-
WELL IT CAN BE EAZY IF I NOW WHAT I WUZ DOING OR SO ME HOW TOO DO IT.. NEED REAL BAD HELP.
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1) Gecko/20061010 Firefox/2.0 - [85] Submitted by: ttl on Friday 30th March 2007 at 10:48 -0700
-
same problem here. is there any solution to the problem mention by Don:
I am wondering if it is possible to give empty value in the input tag.
I tried follows but not working:
In both cases, a or b does not appear at all when searching. This particular search engine requires all variables to appear even if they have no values (e.g. "a=&b=").
Mozilla/5.0 (Windows; U; Windows NT 5.1; pl; rv:1.8.0.11) Gecko/20070312 Firefox/1.5.0.11