Populate text by javascript at body onload

  •  08-31-2006, 10:56 AM

    Populate text by javascript at body onload

    I'm using the editor in a separate window and I need to get the text from the parent window.
     
    What I do is <body onload ="obj_Editor1.pasteHTML(window.parent.document.form1.mytext.value)">
     
    This seems to work on some machines and not on others. first we thought it's caused by IE 7 but it shows up on IE6 too.
     
    What happens is - the editor loads, the text is populated and then after two little flashes of window the text is wiped out - the text is gone.
     
    Has anybody had this problem before?
     
    Thanks for any suggestions  
     
    PS. on Firefox the problem seems to be happening too :(
     
View Complete Thread