PDA

View Full Version : JavaScript



OneTrickPony
06-23-2002, 09:45 PM
OK, I got a question about JS. I've found a script that may suit my needs with a little tweaking.

What I want to do is send a html form in an email, and get a response from my client with him just clicking a button.

The script I'm trying to use can be seen here.

http://www.rolisonwebcreations.com/help_me_please.htm

I've begun the modifications. But my trouble begins when I try to tell the script I want to capture the email address of the respondent, not the URL of the website.

I know the part I want to change, just don't know what to change it to. :confused:

It's the parts that looks like this:

var initialmsg="Hi:\n You may want to check out this site: "+window.location

u = window.location;
function mailThisUrl()

//window.location = "mailto:"+document.eMailer.email.value+"?subject="+initialsubj+"&body="+document.title+" "+u;
window.location = "mailto:"+document.eMailer.email.value+"?subject="+initialsubj+"&body="+initialmsg

I know I need to change the "window.location" to something so it will capture the email address entered into the form field.

Any ideas?

Thanks

OneTrickPony
06-24-2002, 02:43 PM
I didn't realize it was going to be such a hard question. I know it's not really about FP, but...I just knew you guys were smart enough to figure this one out.

Any answer, whether it's "can't help you", "You need the JS forum down the hall" Anything is better than no answer at all. And it doesn't matter if ya can't help...I'll still like you guys. You've been tremendous help in the past.

captain
06-24-2002, 03:10 PM
I haven't seen any of our JS experts logged in on the forum today.
I'm sure as soon as one of them sees your post they will help you out. Sure wish I could help, but I don't know squat about scripts.
:?:

MandyJay
06-24-2002, 03:47 PM
Hi,
...... you need Andrew, or Bud ...... or NMJ .... but certainly not me .... Bud should be floating around soon ..... I'll give him a shout for you ....... he's probably dozed off .....

BUD !! Are you out there????

Kandicav
06-24-2002, 03:49 PM
Good Answer Captain and MJ! I did see Bud earlier, but he must have dozed off again. :D:

bud
06-24-2002, 05:37 PM
Well I'll be honest...

If someone sends me a message with script in it... my security is set to disable it. I beleive this to be the best with the advent of some of the viruses that have been in the wild lately... "Kletz" for one.


It looks like your running a script that will populate a message window where it would then need to be sent by the client. I have always used asp and CDONT's. That way you just put the message togeather and off with it.


Now if your trying to get a response. By the click of a button.

Have them click the Reply button.

If you were to use CDONT's, it will allow you to send to multiple recipients, Carbon Copy and Blind Carbon Copy. It also lets you dictate the body of the message.

In order to have a recipient of a message send a form to you from that message... You need to send them the form in the body of the message.

Other than that I don't really have any answers for you. YOu can try searching http://msdn.microsoft.com/library/default.asp?url=/workshop/entry.asp Maybe they will have a method...

bud
06-25-2002, 08:54 AM
Check this link out...

NewMail Object (CDONTS Library) (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cdo/html/_denali_newmail_object_cdonts_library_.asp)

Tells all there is about how to dynamicly send mail using SMTP services and IIS

OneTrickPony
06-25-2002, 09:10 AM
Thanks Bud,

I'll check it out.:woohoo: