[http://phentermine-pills.euro.tm phentermine-drugs.euro.tm]
[http://www.smartsearch.name/fxclub/index.html Forextrading]
== Installing plugins from server ==
<pre>
Installing from a server
Edit this script to include your server and path information. Then place this script into your HTML file:
<script type="text/javascript">
<!--
function errorMsg()
{
alert("Netscape 6 or Mozilla is needed to install a sherlock plugin");
}
function addEngine(name,ext,cat)
{
if ((typeof window.sidebar == "object") && (typeof
window.sidebar.addSearchEngine == "function"))
{
//cat="Web";
//cat=prompt('In what category should this engine be installed?','Web')
window.sidebar.addSearchEngine(
"http://localhost.localdomain/plugins directory/"+name+".src",
"http://localhost.localdomain/plugins directory/"+name+"."+ext,
name,
cat );
}
else
{
errorMsg();
}
}
//-->
</script>
Link your plugins to the above script with this code, by replacing the file name, image extension and category name with that of the plugin file:
<a href="javascript:addEngine('File name','image extension','Category name')">Name of Plugin</a>
</pre>
*http://mycroft.mozdev.org/deepdocs/installing.html#server
=== Chat excerpts from Freenode #mozilla: ===
<pre>
< mutante__> could you give me a hint what i need to look into to make a web-installable .xpi firefox plugin once i got a working .scr file for a Mycroft search plugin
< mutante__> i have a .scr and a .png file which work if copied to ./searchplugins manually
< mutante__> now i would like to make an installable plugin out of it
< mattmcc> You don't need to make an XPI. Take a look at the code that mycroft.mozdev.org uses (addEngine())
< mutante__> thanks,will do
< mutante__> mattmcc: oh you mean placing javascript into html with function "addEngine" ?
< mutante__> mattmcc: actually is making an xpi ,and just placing it on a server also an option in this case? (to avoid javascript,so i can just use regular a href links to the .xpi
< mutante__> (which starts firefox'es install dialog)
< mattmcc> I suppose you could make an xpi that didn't actually install anything.. :)
< mattmcc> Actually, no, I'm not sure that works anymore.
< mutante__> hmm,i want to put the link into a wiki where i cant add the javascript
< mutante__> ok,thanks anyways
* mattmcc thinks with the new install.rdf format, you'd have to install at least some file.
</pre>
seems like gotta make a html containing java script and then place a link to that in here ,greets [[User:mutante|mutante]] 19:55, 16 Feb 2005 (CET)
== Feed back ==
|