Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New to the CF scene
    Join Date
    Jun 2004
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question View Source using the DOM / javascript

    Alrighty, here's my delema. I'm having users submit an application page using ASP and on the refering page that processes the request, I want to recieve the source code from that page and then email it. The problem is I can't find a way to get all the source easily. I've tried a couple things with the DOM; none of which are giving me the results I would like. Even if there is a algorithm out there, I can't seem to find it. I'm sure it can be done, but i'm lacking in resources. If someone could give me an example or refernce to this I would be thrilled! Thanks all.

  • #2
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    10,960
    Thanks
    0
    Thanked 236 Times in 233 Posts
    Can you elaborate more?

  • #3
    New to the CF scene
    Join Date
    Jun 2004
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I'm submiting an application page to an ASP document for processing which is parsing the POSTed results and displaying them on a page for the user to confirm. If he confirms that everything is good, then I want to email that page as is, to me, but I don't have a way to get the source code easily.

  • #4
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    10,960
    Thanks
    0
    Thanked 236 Times in 233 Posts
    Generate the html source again on the server. I assume you are putting the information in the fields (textbox or hidden fields) in the confirm page. Just request that data again and form the html source into a string and then set that string as the email body.

  • #5
    Senior Coder
    Join Date
    Feb 2004
    Posts
    1,206
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I've never tried this, but I wonder if you can post in a hidden field document.body.innerHTML like onsubmit or something.

    Just a thought off the top of my head..

    Sadiq.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •