Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

text boxes / url encoding / outlook .. its all here!, HELP!

Status
Not open for further replies.

Glimmer23

Technical User
Feb 3, 2003
21
A1
hi
i have a heap of text boxes, some input, some dynamic, and some static which have data in or entered into them, to creat a purchase order form in outlook
here is the problem:
on my computer everything is perfect, the command +newline, give the newline in outlook, and layout is nice as
however as soon as page goes online, +newline doesnt work and u get two lines or longer of everytext field crammed up,

it gets better!:
also in one text box, its contents are processed from variables taken from comboboxs, the spaces in teh combo boxes leave %20 gaps in the dynamic text box, (%20 = url encoding for ' '(space)) however when email loads the %20's disappear and spaces reapear...

so what i want to do: (GL if your gonna try help me)
1) first get rid of those %20's in the dynamic text box, but still have the spaces when the email loads up...
2) when email loads up have the text fields with different lines inbetween them instead of one big line of crap...

other stuff:
for part 1) i am sure theres a solution some guy posted it, i jsut dont know how to format it,.. if it helps the instant name of the text box is : "display_txt"

for part 2) if u know the URL encoding for enter or +newline, that might be the awnser!.. or nayother way if u have it

plz help if u can.. i am losing hair over this! eheh
 
are you using mx?

for part1 do you have a line setting display_txt to html

ie // as part of the onload function
_root.display.html = true;
_root.display.htmltext =


for part 2 I suspect that the problem lies with your middleware.....asp , php , whatever and that the correct formatting is not being applied there.
 
btw yes to MX
umm there is no middle ware at the moment, it proccess all the data from the drop boxes displays what you selected in the drop boxes in a text box then on submit, it opens the default mail program (cause i am not using asp, atm cause its on geocities... but i might migrate soon), anyways when it opens the email from the hdd (ie test movie) the formatting of the email work... with the commands +newline, in flash creating new lines in the new outlook msg, however when i load the page from goecities, and try perform the same task it print 1 long line and does not recognise the command +newline, and i was hoping there was some other command i could use that would fix that problem...

no i dont have a line in the code atm saying _root.display_txt.html = true; gonna give it a shot and tell u if it works before i post this, well just played with it form a while and souldnt get it so i am gonna poaste in my script and if you know what to do please do and thanks if not just post up nar was more complicated than i thought:) hehe

function onSubmit1() {
gotoAndPlay("Rent", 70);
formData23 = new LoadVars();
formData23.Processor = "";
formData23.RAM = "";
formData23.HDD = "";
formData23.QTY = "";
formData23.Processor = formData4;
formData23.RAM = formData3;
formData23.HDD = formData2;
formData23.QTY = formData1;
formData24 = new LoadVars();
formData24.Processor = "";
formData24.RAM = "";
formData24.HDD = "";
formData24.QTY = "";
formData24.Processor = formData8;
formData24.RAM = formData7;
formData24.HDD = formData6;
formData24.QTY = formData5;
formData25 = new LoadVars();
formData25.Model = "";
formData25.QTY = "";
formData25.Model = formData10;
formData25.QTY = formData9;
formData26 = new LoadVars();
formData26.Model = "";
formData26.QTY = "";
formData26.Model = formData12;
formData26.QTY = formData11;
formData27 = new LoadVars();
formData27.Model = "";
formData27.QTY = "";
formData27.Model = formData14;
formData27.QTY = formData13;
formData28 = new LoadVars();
formData28.Model = "";
formData28.QTY = "";
formData28.Model = formData16;
formData28.QTY = formData15;
formData29 = new LoadVars();
formData29.Processor = "";
formData29.RAM = "";
formData29.HDD = "";
formData29.QTY = "";
formData29.Processor = formData20;
formData29.RAM = formData19;
formData29.HDD = formData18;
formData29.QTY = formData17;
formData30 = new LoadVars();
formData30.Model = "";
formData30.QTY = "";
formData30.Model = formData22;
formData30.QTY = formData21;

display_txt.text = "Your order consists of: "+newline+newline;

display_txt.text += "Notebooks: "+newline+formData23.Processor+newline+formData23.RAM+newline+formData23.HDD+newline+formData23.QTY+newline+newline;

display_txt.text += "Desktops: "+newline+formData24.Processor+newline+formData24.RAM+newline+formData24.HDD+newline+formData24.QTY+newline+newline;

display_txt.text += "Monitors: "+newline+formData25.Model+newline+formData25.QTY+newline+newline;

display_txt.text += "Projectors: "+newline+formData26.Model+newline+formData26.QTY+newline+newline;

display_txt.text += "Printers: "+newline+formData27.Model+newline+formData27.QTY+newline+newline;

display_txt.text += "Plasma Screens: "+newline+formData28.Model+newline+formData28.QTY+newline+newline;

display_txt.text += "Servers: "+newline+formData29.Processor+newline+formData29.RAM+newline+formData29.HDD+newline+formData29.QTY+newline+newline;

display_txt.text += "Other: "+newline+formData30.Model+newline+formData30.QTY+newline+newline;
}

ok i added some gaps so you can tell difference inbetween the lines... the formData**.Model and formData**.Processor
are the combo boxes which have words which has spaces inbetween them... they are what has the %20 inbetween them when displayed in display_txt.text box later in the scene... (eg. pentium II 300 will = pentium%20II%20300) but only for the text box.... i hope i am not confussing the f*** out of you anyways i am sure you know what i mean, have a crack bill and thanks for trying.. plus anyone else who has a shot
 
still feel that the %20 problem will be overcome by setting html to true

display_txt.html = true;
display_txt.htmltext =

for newline in URL try %0D (thats a zero)
 
mate %0D... YOUR THE KING!!! thx thats helped heaps

..but, maybe i am just stupid(probably that case) i know you script probably wworks, i just probably doing something wrong with it... where do i put

display_txt.html = true;
display_txt.htmltext =
(in above script) is it like:
display_txt.html = true;
display_txt.htmltext =
display_txt.text = "Your order consists of: "+newline+newline

or

display_txt.html = true;
display_txt.htmltext = "Your order consists of: "+newline+newline

or

...?

and thanlks again mate oyur being a huge help and are doing a stand up job:)
 
Just a note...

The htmlText is case sensitive! Regards,

oldman3.gif
 
correct form

display_txt.html = true;
display_txt.htmltext = "Your order consists of: "+newline+newline

 
corrected form

display_txt.html = true;
display_txt.htmlText = "Your order consists of: "+newline+newline

Regards,

oldman3.gif
 
i am sorry but htmltext is not case sensitive....try it and see...both versions work just fine.
 
Yes Sir! If you say so Sir!

Guess that's why it's written with a capital "T" everywhere in MM's documentation. But you're right, either does work. It's just not highlighted as a keyword when you don't capitalize the "T" Regards,

oldman3.gif
 
thx you guys... but unfortuantly its still not working.. i still can see the %20 and %0D when its online, or offline...

and the script is definitly typed in correctly this time:

display_txt.html = true;
display_txt.htmlText = "Your order...

any other ideas!?.. thanks for your help on this btw
 
display_txt is definately the instance name aint it and not the variable name.
wont work if its the variable name.
 
hi
yes the instant name is definately display_txt as in right click the text box, properties, and then the little box under dynamic text.. = display_txt
... you relise the things being displayed in the text box are varibles though... thats where the %20 are coming from.. inside the varibles.. which are made from the selcetion in the drop box....
min u i have also got %0D's in there now (for spacing), and they are directly inputted and their still showing, so the problem is obvisously sitll with display_txt.text...
hrm,... i know theres a solution, its just getting it to work:)
anyways thx for your help, if you come up with anything else, or need more info please say so
 
cheers mate... ill keep haveing a crack at it, and if i carnt get it in the next day or so, ill email it to yah
 
actually better question would probably be.. do you have msn or icq?, then i can talk and send it to you there rather than per through here
 
excellent ill add oyu to mine then, and chat to you later if i carnt fix it.. rather than have huge delays in time while we are not at forums:p
and dont worry i wont spam u with every single problem i ever have.. only this 1:)
 
bill.. i still carnt get it to work:)
might be sending you it through email soon if that is ok?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top