Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Another javascript question: How to e-mail contents of a web page?
#1
Hi,

In my previous post http://forums.macresource.com/read/1/70172/70172 , I have asked question about outerHTML which I was told only works in IE. I was using this to e-mail contents of a web page.

Is there a way I can do it without outerHTML? I kinda run out of the options. What I need to do is to be able to e-mail .asp page thru small popup window where user can enter e-mail, subject and short message. Pages are dynamic ASP pages and are password protected so e-mailing just the link wouldn't work. I need to be able to get output HTML from the page and stick it in the e-mail body.

This has to work in IE, FF and Mozilla.

Any recommendations, hints, code samples are welcome.

Thanks,
maurycy
Reply
#2
I think you want to do this in ASP and not javascript. sending email with ASP is easy-as-pie
Reply
#3
I know how to send e-mail in ASP. I do not know how to take the HTML output and pass it to popup window where I use ASP to send email.

maurycy
Reply
#4
document.body.innerHTML would work, unless you need the contents of the section as well.

Otherwise, since you do have server-side scripting capability, you can make use of that in a number of ways.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)