![]() |
Another javascript question: How to e-mail contents of a web page? - Printable Version +- MacResource (https://forums.macresource.com) +-- Forum: My Category (https://forums.macresource.com/forumdisplay.php?fid=1) +--- Forum: Tips and Deals (https://forums.macresource.com/forumdisplay.php?fid=3) +--- Thread: Another javascript question: How to e-mail contents of a web page? (/showthread.php?tid=7970) |
Another javascript question: How to e-mail contents of a web page? - maurycy - 03-26-2006 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 Re: Another javascript question: How to e-mail contents of a web page? - mattkime - 03-26-2006 I think you want to do this in ASP and not javascript. sending email with ASP is easy-as-pie Re: Another javascript question: How to e-mail contents of a web page? - maurycy - 03-26-2006 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 Re: Another javascript question: How to e-mail contents of a web page? - Seacrest - 03-26-2006 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. |