function parameter and overwrite : xx.xx.xx

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

    function parameter and overwrite : xx.xx.xx

    function closebe(FORMULA IRE) {

    window.document .FORMULAIRE.sub mit();

    // I tried by this way too: window.document .'+FORMULAIRE+' .submit();

    return false;

    }

    I try to write the form name in the line submit which is passed by parameter
    by the function closebe wihout success.
    I don't know how to do and and I find nothing in the doc.
    If you know how to do, please help me...

    Thanks for your help
    Chris



  • Mick White

    #2
    Re: function parameter and overwrite : xx.xx.xx

    Chris wrote:
    [color=blue]
    > function closebe(FORMULA IRE) {
    >
    > window.document .FORMULAIRE.sub mit();
    >
    > // I tried by this way too: window.document .'+FORMULAIRE+' .submit();
    >
    > return false;
    >
    > }[/color]

    function closebe(formNam e) {
    document[formName].submit();
    }

    <button onclick="closeb e('FORMULAIRE') ">

    Not the ideal way to do it though.

    Mick[color=blue]
    >
    > I try to write the form name in the line submit which is passed by parameter
    > by the function closebe wihout success.
    > I don't know how to do and and I find nothing in the doc.
    > If you know how to do, please help me...
    >
    > Thanks for your help
    > Chris
    >
    >
    >[/color]

    Comment

    Working...