Window LiveMail and JavaScript

hrvat

Member
Messages
71
Reaction score
1
Points
8
Hello !

I finishing one online mail solution which get data from the form and send the data through
user default mail client.
But, when I use Win LiveMail application I get unexpected values.
My peace of code is :

function fnSetAction(Prva){
if(Prva.body.value!="" ){
var sAction="mailto:marijan.ivicevic.bakulic@zg.t-com.hr";
Prva.action=sAction;
Prva.body.value="\n"+Prva.elements["adress"].value+"\n"+
Prva.elements["ta"].value+"\n";
}}


When I send this through Win LiveMail I get :
part.JPG
Why Windows LiveMail client transform empty spaces to + ?
regards

8)
 

hrvat

Member
Messages
71
Reaction score
1
Points
8
Hello !

I finishing one online mail solution which get data from the form and send the data through
user default mail client.
But, when I use Win LiveMail application I get unexpected values.
My peace of code is :

function fnSetAction(Prva){
if(Prva.body.value!="" ){
var sAction="mailto:marijan.ivicevic.bakulic@zg.t-com.hr";
Prva.action=sAction;
Prva.body.value="\n"+Prva.elements["adress"].value+"\n"+
Prva.elements["ta"].value+"\n";
}}


When I send this through Win LiveMail I get :
View attachment 6151
Why Windows LiveMail client transform empty spaces to + ?
regards

8)

Sorry , this is wright peace of code,but with same interesting problem.

function fnSetAction(Prva){
if(Prva.body.value!="" ){
var sAction="mailto:marijan.ivicevic.bakulic@zg.t-com.hr";
Prva.action=sAction;
Prva.body.value=+"\n"+Prva.elements["adress"].value+"\n"+
Prva.elements["ta"].value.replace(/^\s+|\s+$/g,'')+"\n";

}
}
8)
 
Top