Menu

#14 Add support for document.write()

closed
None
5
2012-10-21
2002-09-24
Anonymous
No

Please add support for document.write() javascript
function.

Discussion

  • Mike Bowler

    Mike Bowler - 2002-09-24

    Logged In: YES
    user_id=46756

    This is definitely on the todo list but won't make it into
    the 1.1 release. Supporting document.write() will require
    some significant changes to the way pages are loaded so I
    don't want to start on that until I have a stable 1.1
    release completed.

     
  • Peter G B Whitham

    Logged In: YES
    user_id=617819

    Can I please support this New Feature?

    As a matter of interest, what I have is a frame in a web page
    that completely re-writes itself (it is a navigation bar). It
    creates the required stuff in a string, and then does this (in a
    function):

    JavaScript code:
    document.open ();
    document.write (str);
    document.close ();

    This may be a special case which might be easier or much
    worse than the other case, which looks like this (in the
    middle of a page):

    JavaScript code:
    <td class="header-text">
    <SCRIPT LANGUAGE="JavaScript">
    document.write (aData["NAME"]);
    </SCRIPT>
    </td>

    Hope this helps!

     
  • Hari Dara

    Hari Dara - 2003-05-09

    Logged In: YES
    user_id=344432

    I am trying to use HtmlUnit for our web tests, but
    missing document.write() is a big bummer. I too hope
    that this feature is added soon.

    Thank you,
    Hari

     
  • Mike Bowler

    Mike Bowler - 2003-10-20

    Logged In: YES
    user_id=46756

    The code now handles the two cases of document.write that I
    am aware of

    1) Appending to a page as it is being loaded

    2) Creating a page in a frame via open(), write() and close()

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.