File:  [mozdev] / hermes / www / tutorial.html
Revision 1.17: download - view: text, annotated - select for diffs - revision graph
Sat Mar 24 12:41:17 2001 UTC (18 years ago) by basic
Branches: MAIN
CVS tags: HEAD
added onblur

<h2>Hermes service tutorial</h2>

<br />
<ol>

<li>Check the latest version of <a href="installation.html">Hermes</a> to see if it supports your webmail provider</li>

<li>Visit the webpage where you normally log in to your webmail provider</li>

<li>View the page source - right click -> view source</li>

<li>Edit out anything unrelated to logging in</li>

<li>Keep only the <span style="color:red;">&lt;form&gt;</span> tags and the <span style="color:red;">&lt;input&gt;</span> tags</li>

<li>Convert this from HTML to XHTML which is done simply by converting all tag and attribute names into lower case and making sure each tag is closed, on input tags this is done by <span style="color:red;">&lt;input blah="blah" blah="blah" /&gt;</span> make sure each attribute's content is contained within speechmarks.. <span style="color:red;">blah="blah"</span> and not <span style="color:red;">blah=blah</span></li>

<li>Compare your proto-service with one of Hermes' services and edit yours to the same style.. see below for example</li>

<li>Make sure your service has a unique and sensible id attribute in the form tag</li>

<li>Make sure the form is targetted to "_content"</li>

<li>Make sure the login field and password field are each within seperate label tags</li>

<li>Save this document as service.xml and open it into Mozilla and test to see if you can use it to connect to your webmail provider</li>

<li>If your service works, e-mail it to <a href="mailto:onelists@hotmail.com">onelists@hotmail.com</a> and/or <a href="mailto:hermes@mozdev.org">hermes@mozdev.org</a> for inclusion into Hermes</li>

</ol>

<br />

<h2>Example Hermes Service</h2>

<br />

<pre>
    &lt;form id="another" class="service" method="post" target="_content"
     action="http://www.another.com/inbox.jsp"&gt;

     &lt;div class="heading"&gt;Check your Another.com Mail&lt;/div&gt;

      &lt;label&gt;
      Username

      &lt;input type="text" name="uname" value="Another.com login"
      	onfocus="javascript:searchclear(this,'Another.com login');"
        onblur="javascript:searchclear(this,'Another.com login');" /&gt;

      &lt;/label&gt;

      &lt;label&gt;
      Password

      &lt;input type="password"  name="pword" /&gt;

      &lt;/label&gt;

      &lt;input type="submit" name="submitButton" value="Sign in" /&gt;

      &lt;input type="hidden" name="folder" value="INBOX" /&gt;

      &lt;input type="hidden" name="uclass" value="funmail" /&gt;

      &lt;input type="hidden" name="o" value="funmail" /&gt;

    &lt;/form&gt;






</pre>


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>