CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Threaded View

  1. #1
    Join Date
    Feb 2003
    Posts
    2

    Question Saving dynamically changed elements?

    Hi there, I was wondering if there is a way to get Internet Explorer to actually save a page after it has been manipulated in via javascript?

    If you run this example:

    <html>
    <body>
    <a href="javascript:void(0);" onClick="document.getElementById('bleh').innerHTML = 'badbye';document.execCommand('SaveAs',true,'c:\\Documents and Settings\\%username%\\My Documents\\myFile.html');">
    Click here to Save
    </a>
    <span id="bleh">hello</span>
    </body>
    </html>

    What will happen is the span will update from hello to badbye and then the user will be asked to save the webpage. However, the webpage that is saved is the original page (most likely just copied from cache) and not the new modified page.

    Any ideas?

    Thanks,

    Craig.
    Last edited by craiger316; February 20th, 2003 at 02:47 PM.

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured