SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast
    Join Date
    Sep 2004
    Location
    1337
    Posts
    43
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Exclamation document.designMode ?? is this possible?

    is it possible to set document.designMode = "on" for an iframe element that is loaded into a page with AJAX? I've been searching for a solution for hours, it can't be set with <body onload=> since the page is already loaded, and window.onload does not work. Any ideas?? The reason i need to do this is because I have a web app that includes a multipage form and the pages of the form are controlled with XmlHttpRequest, i need the iframe element that is loaded to act as a rich text editor.

  2. #2
    SitePoint Enthusiast
    Join Date
    Sep 2004
    Location
    1337
    Posts
    43
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Nevermind, I found the solution myself.

    if anyone's interested, i just needed to give the script a bit of time before setting document.designMode like this:

    setTimeout("start();", 10);

    where start() is the function that sets designmode = on


Bookmarks

Posting Permissions

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