Java script to change form fields in frame

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • 747-th
    Registered User
    • Mar 2002
    • 45

    #1

    Java script to change form fields in frame

    Hi 4 all

    Help, plz

    When I want change text field in form I use this Java script construction:
    -------------------------------------------------------------------------
    document.myForm1.myText1.value ="This is new text";
    -------------------------------------------------------------------------
    it's ok on same window
    so how to change text field in form which locate in other frame?

    I think it must begin like this:
    ... win1 = window.open('xxx.htm','MainFrame');
    what's next????
    - win1.myForm1.myText1.value ="This is text";
    - window.win1.myForm1.myText1.value ="This is text";
    - document.win1.myForm1.myText1.value ="This is text";
    ????

    anybody understood what I want?
    if yes - help
    <a href="http://www.freeezinebucks.com/ps.php?s=feb&amp;u=registering"><font face="Lucida Console" size="1"><font color="#00CC00">Convert ratio </font><font color="#00FF00">1:15</font><font color="#00CC00"> on TGP traffic</font></font></a>
  • 747-th
    Registered User
    • Mar 2002
    • 45

    #2
    well
    If u r such bad programmer I ask myself:


    it must be :

    parent.main.document.MyForm1.MyText1.value ="New text";
    <a href="http://www.freeezinebucks.com/ps.php?s=feb&amp;u=registering"><font face="Lucida Console" size="1"><font color="#00CC00">Convert ratio </font><font color="#00FF00">1:15</font><font color="#00CC00"> on TGP traffic</font></font></a>

    Comment

    Working...