onkeypress and .Net

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Adam Kozlowski

    #1

    onkeypress and .Net

    Hello,
    I have big form with textbox, label, radiobutton..
    When user finish set case of search and press "enter" i have to run command
    in my codebehind "RunSearch( )".
    I know, and I try simulate click on my search button, but this is not
    working :(

    btn = getElementById( "ButtonSearch") ;
    btn.click();

    or

    Form.submit();

    Maybe you know how i can do this?

    Thx for help

    Adam




  • @SM

    #2
    Re: onkeypress and .Net



    Adam Kozlowski a *crit :
    [color=blue]
    > Hello,
    > I have big form with textbox, label, radiobutton..
    > When user finish set case of search and press "enter" i have to run command
    > in my codebehind "RunSearch( )".
    > I know, and I try simulate click on my search button, but this is not
    > working :([/color]

    document.getEle mentById("Butto nSearch").click ();
    [color=blue]
    >
    >
    > btn = getElementById( "ButtonSearch") ;
    > btn.click();
    >
    > or
    >
    > Form.submit();
    >
    > Maybe you know how i can do this?
    >
    > Thx for help
    >
    > Adam[/color]

    --
    *************** *************** *************** *************** **
    Stéphane MORIAUX : mailto:stephane OTER-MOImoriaux@wana doo.fr
    Aide aux Pages Perso (images & couleurs, formulaire, CHP, JS)

    *************** *************** *************** *************** **


    Comment

    • Adam Kozlowski

      #3
      Re: onkeypress and .Net

      > >[color=blue][color=green]
      > >
      > > btn = getElementById( "ButtonSearch") ;
      > > btn.click();[/color][/color]
      [color=blue][color=green]
      > > or[/color][/color]
      [color=blue][color=green]
      > > Form.submit();
      > >[/color][/color]
      I was write it, this method does't work :(

      Adam


      Comment

      • @SM

        #4
        Re: onkeypress and .Net

        Adam Kozlowski a ecrit :
        [color=blue][color=green][color=darkred]
        > > > btn = getElementById( "ButtonSearch") ;
        > > > btn.click();[/color][/color]
        > I was write it, this method does't work :([/color]

        Usualy it would do !
        It's the best way to simply submit a form by distance

        So ... is thern't anytthing wrong in your code ?
        so much things can happen typing characters ;-))


        --
        *************** *************** *************** *************** **
        Stéphane MORIAUX : mailto:stephane OTER-MOImoriaux@wana doo.fr
        Aide aux Pages Perso (images & couleurs, formulaire, CHP, JS)

        *************** *************** *************** *************** **


        Comment

        Working...