Results 1 to 4 of 4

Thread: On Change question

  1. #1

    Thread Starter
    Member
    Join Date
    Sep 2000
    Posts
    49
    Is there a line that means the same thing as that but it doesn't spelled the same?
    Cause i am trying to execute it in Netscape, and he will not take it


    parent.frames.bottomMenu.document.frmClub.Club.options[0].selected = true;
    Thanxs all

  2. #2
    Fanatic Member Ianpbaker's Avatar
    Join Date
    Mar 2000
    Location
    Hastings
    Posts
    696
    hi mart37

    the onchange event on a tag is exactly the same in netscape as it is in IE, post all your code and i'll have a look to see why it ain't working.

    Ian

    Yeah, well I'm gonna build my own lunar space lander! With blackjack aaaaannd Hookers! Actually, forget the space lander, and the blackjack. Ahhhh forget the whole thing!

  3. #3
    Frenzied Member Mark Sreeves's Avatar
    Join Date
    Nov 1999
    Location
    UK
    Posts
    1,845
    I just tried it in Netscape 3,4 and 6 and it works ok!


    Code:
    <HTML>
    <head>
    <script language=javascript>
    var k = 0;
    function doIt()
    {
    	parent.frames.bottomMenu.document.frmClub.Club.options[k].selected = true;
    	
    	k++;
    }
    </script>
    </head>
    <BODY>
    <form>
    <input type="button" onClick="doIt();">
    
    </form>
    </body>
    
    </HTML>
    [Edited by Mark Sreeves on 12-06-2000 at 04:33 AM]
    Mark
    -------------------

  4. #4

    Thread Starter
    Member
    Join Date
    Sep 2000
    Posts
    49

    On Change Question

    Yeah it's because i have to do a submit command before
    that goes like this

    eval("document." + formto +".submit();");

    So in Netscape wonce i do this command, it's impossible to
    change the value in the combo in that exact form.

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