Closed Thread Icon

Topic awaiting preservation: How can I use the mailto in Netscape 6 (Page 1 of 1) Pages that link to <a href="http://ozoneasylum.com/backlink?for=8175" title="Pages that link to Topic awaiting preservation: How can I use the mailto in Netscape 6 (Page 1 of 1)" rel="nofollow" >Topic awaiting preservation: How can I use the mailto in Netscape 6 <span class="small">(Page 1 of 1)</span>\

 
Yossi Admon
Bipolar (III) Inmate

From: Israel
Insane since: Nov 2001

posted posted 05-20-2002 13:52

Is there is a special way to use the "mailto" under Netscape 6?

Slime
Lunatic (VI) Mad Scientist

From: Massachusetts, USA
Insane since: Mar 2000

posted posted 05-20-2002 13:56

Do you mean the mailto:a@b.c URL? What does netscape 6 do with it?

kuckus
Bipolar (III) Inmate

From: Berlin (almost)
Insane since: Dec 2001

posted posted 05-20-2002 14:13

I don't know of anything special with the a tag in Netscape 6. Just use <a href="mailto:you@there.com">My e-mail address</a>.


kuckus (cell #282)

Yossi Admon
Bipolar (III) Inmate

From: Israel
Insane since: Nov 2001

posted posted 05-20-2002 16:50

Here is an example for the code I wrote:
<HTML>
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
function submitError(){
document.frmError.submit();
}
</SCRIPT>
</HEAD>
<BODY>
<FORM NAME="frmError" METHOD=POST ENCTYPE="text/plain" ACTION="mailto:test@mail.com">
<INPUT TYPE="HIDDEN" NAME="exception" VALUE="Error occurred in Data view Tag">
<INPUT TYPE="HIDDEN" NAME="stackTrace" VALUE="javax.servlet.jsp.JspTagException: Error occurred in Data view Tag
at org.apache.tomcat.core.ContextManager.internalService(Unknown Source)
at org.apache.tomcat.core.ContextManager.service(Unknown Source)
at org.apache.tomcat.modules.server.Ajp12Interceptor.processConnection(Unknown Source)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)">
</FORM>
<CENTER>
<FONT COLOR="RED">an internal error has occurred.<BR>
Please use <A href="javascript:void(0);" onclick="submitError();return false;">this</A> link to report the bug to support team.
</FONT>
</CENTER>
</BODY>
</HTML>
It works wonderful in IE, If I'll add a submit button it will send the mail without the subject and body.
Using the link I'm getting JS runtime error.

Slime
Lunatic (VI) Mad Scientist

From: Massachusetts, USA
Insane since: Mar 2000

posted posted 05-20-2002 17:41

And what would that error be?

Perhaps N6 doesn't like the extremely long value attribute or something...

Yossi Admon
Bipolar (III) Inmate

From: Israel
Insane since: Nov 2001

posted posted 05-20-2002 18:27

This is not the reason for the JS runtime error.
I changed the value to short one and the problem remains the same.
The method is POST so wht's the problem with very long names?


InI
Paranoid (IV) Mad Scientist

From: Somewhere over the rainbow
Insane since: Mar 2001

posted posted 05-20-2002 22:33

The poster has demanded we remove all his contributions, less he takes legal action.
We have done so.
Now Tyberius Prime expects him to start complaining that we removed his 'free speech' since this message will replace all of his posts, past and future.
Don't follow his example - seek real life help first.

Yossi Admon
Bipolar (III) Inmate

From: Israel
Insane since: Nov 2001

posted posted 05-21-2002 07:59

The Error I'm getting after the change is as following:
Error: uncaught exception: [Exception... "Component returned failure code: 0x805303e8 [nsIDOMHTMLFormElement.submit]" nsresult: "0x805303e8 (<unknown> )" location: "JS frame :: file://///warthog/test.html :: submitError :: line 5" data: no]

Where line 5 in the html is:
document.forms['frmError'].submit();

P.S.
N6 supports the document.frmError.submit();
If the action is not mailto:........... and it is just a simple URL everything works fine.

InI
Paranoid (IV) Mad Scientist

From: Somewhere over the rainbow
Insane since: Mar 2001

posted posted 05-21-2002 12:05

The poster has demanded we remove all his contributions, less he takes legal action.
We have done so.
Now Tyberius Prime expects him to start complaining that we removed his 'free speech' since this message will replace all of his posts, past and future.
Don't follow his example - seek real life help first.

Yossi Admon
Bipolar (III) Inmate

From: Israel
Insane since: Nov 2001

posted posted 05-21-2002 14:26

InI: You did exactly like if I add the mailto:... to the href property.
I'm trying to send a POST method message and you are sending by GET method message, this is something else.
Can I add method="POST" to the <a> tag?


InI
Paranoid (IV) Mad Scientist

From: Somewhere over the rainbow
Insane since: Mar 2001

posted posted 05-21-2002 15:27

The poster has demanded we remove all his contributions, less he takes legal action.
We have done so.
Now Tyberius Prime expects him to start complaining that we removed his 'free speech' since this message will replace all of his posts, past and future.
Don't follow his example - seek real life help first.

Yossi Admon
Bipolar (III) Inmate

From: Israel
Insane since: Nov 2001

posted posted 05-21-2002 16:18

If I'll replace the FORM with the following:
<FORM NAME="frmError" METHOD=POST ENCTYPE="text/plain" ACTION="mailto:yossia@mercury.co.il">
<INPUT TYPE="HIDDEN" NAME="subject" VALUE="Error occurred in Data view Tag">
<INPUT TYPE="HIDDEN" NAME="body" VALUE="test">
<input type=submit value="submit">
</FORM>
and press the submit button it will work.
Again the problem is that by clicking the link I'm not able to submit the form, and by clicking the button I can submit the form.
It looks to me as a pure JavaScript problem.

InI
Paranoid (IV) Mad Scientist

From: Somewhere over the rainbow
Insane since: Mar 2001

posted posted 05-21-2002 16:55

The poster has demanded we remove all his contributions, less he takes legal action.
We have done so.
Now Tyberius Prime expects him to start complaining that we removed his 'free speech' since this message will replace all of his posts, past and future.
Don't follow his example - seek real life help first.

InI
Paranoid (IV) Mad Scientist

From: Somewhere over the rainbow
Insane since: Mar 2001

posted posted 05-21-2002 17:30

The poster has demanded we remove all his contributions, less he takes legal action.
We have done so.
Now Tyberius Prime expects him to start complaining that we removed his 'free speech' since this message will replace all of his posts, past and future.
Don't follow his example - seek real life help first.

Yossi Admon
Bipolar (III) Inmate

From: Israel
Insane since: Nov 2001

posted posted 05-22-2002 10:43

Sorry for the late feedback.

InI: I'm writing to this forum to learn from other people mistakes and experience and all answers are treated in most respect from my side (sorry if I'm insisting to understand all feedbacks) so, peace man.

I wrote a page includes all the possible mailing call types (almost every) and here are the results I found:
1) N4 didn't send mails with the ENCTYPE="text/plain" attribute.
2) N4, N6 didn't send mails with METHOD="POST" atribute.
3) All browsers send mail using the <a href="mailto:xyz@...?subject=...&body=...".
4) In IE METHOD="GET" will send mail if the body content is not more then 2083 characters.
5) N6 suppors more then 2083 characters using the METHOD="GET" attribute.
6) N6,N4 I didn't succeed to send a mail by submitting the form outside the submit button.

Basicly the optimum solution that fits most cases is the following one:
<FORM Action="mailto:mail@address" METHOD="GET">
<Br>Subject:
<INPUT name="subject" value="Test Subject">
<Br>Body:&#xa0;
<TEXTAREA name="body">
</TEXTAREA>
<BR>
<INPUT type="submit" value="Submit">
</FORM>

Thans for all the good tips.
Yossi


« BackwardsOnwards »

Show Forum Drop Down Menu