PDA

View Full Version : windoze cd getURL problem



mojoNYC
July 2nd, 2003, 05:52 PM
hi all-

i'm working on a cd-rom project where the user fills in some forms information and then hits submit, which triggers a getURL/mailto command that fills in the header and body copy of an email--on the mac, i can use the projector or swf to pop up the email client successfully with the information lined up in the email body, using \n to add line breaks--so far so good...

the problem is in windoze, where the exe won't pop up the email client, so i have to do it from the browser, and then all the line breaks go away, and it fills in the body with the text in a solid block...arrrrrrrrgh!!!

can anybody please please tell me if there is a workaround for this? i'd rather publish a .exe if possible--otherwise, is there another way to break the lines of text in the email string?

any help is greatly appreciated!

regards,
-mojo

Clown Staples
July 3rd, 2003, 08:42 PM
\r and \n are the codes for windows and mac line breaks in javascript. Im not sure which is which

mojoNYC
July 4th, 2003, 12:51 PM
these line breaks didn't work in windoze, but i did some checking, and added an ascii line break, which works properly : %0D%0A

regards,
-mojo

.:®:.
July 5th, 2003, 12:05 PM
Mojo, I recently did a Projector for mac and Pc. I had the same issue, so what you are best doing (if you have server space), is to create a form in flash, then send the Variables via php.
This means you don't need to call a browser. It works on both platform, form projectors & Exe, but put a warning on the form, ie (this form requires a live internet connection).

I don't however, know about firewall issues..

hope this helps. If you get stuck, i will dig up the code for you.
=)

mojoNYC
July 6th, 2003, 10:33 AM
hey .:®:. (how do you pronounce that?)
it could be a good option--i was the 'second coder in' on this project, cleaning up after somebody else, so it's like get it working and get it out the door! i think the original spec was that the client wanted an email sent w. the vars--did you set up a script to automagically generate an email to the recipient, or does it go into a database? at this point, i may just kick it out the door as is, but if it's an easy script to implement, i could run it by the client...
;>
regards,
-mojo

.:®:.
July 6th, 2003, 01:39 PM
Hey Mo,
The Script is very simple. As long as your webserver can run php, there will be no issues.
The dude who wrote this explains all, but if you do get stuck, plz email me & I will be happy to help out .

Just be sure to read the readme,
*put an absolute link to the php script (on the send button)
* put the clients email address in the php script.

Good luck!

(oh, and .:®:. is pronounced .:®:. ) =)

mojoNYC
July 9th, 2003, 12:39 PM
hey .:®:.
wow! thanks mucho!:>
the client wanted to stick with the old way, but who cares? awesome script, and it opens up many possibilities...
you da man!;)

-mojo

.:®:.
July 9th, 2003, 09:00 PM
nae a Problum :thumb:

Good luck!