max call using onSubmit?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • CharitiesOnline.co.uk

    max call using onSubmit?

    Can anyone tell me, what is the maximum functions that you can call using a
    form submit button with onSubmit ?
    I am using 2 at present but really need to use 3 , how can I do this?
    Thanks Joe.




  • Martin Honnen

    #2
    Re: max call using onSubmit?



    CharitiesOnline .co.uk wrote:
    [color=blue]
    > Can anyone tell me, what is the maximum functions that you can call using a
    > form submit button with onSubmit ?
    > I am using 2 at present but really need to use 3 , how can I do this?[/color]

    Why do you think there is a limit? Use
    <form onsubmit="funct ion1(); function2(); function3();
    return true;"

    --

    Martin Honnen


    Comment

    • CharitiesOnline.co.uk

      #3
      Re: max call using onSubmit?

      Hello Martin,
      I have tried that & it doesnt seem to work?

      <form action="<%=MM_e ditAction%>" method="post"
      enctype="multip art/form-data" name="form1"
      onSubmit="MM_va lidateForm('Cat egoryName','',' R','Description ','','R','Pictu r
      e','','R');chec kFileUpload(thi s,'GIF,JPG,JPEG ,BMP,PNG',false ,'','','','','' ,
      '','');return document.MM_ret urnValue">

      Joe




      "Martin Honnen" <Martin.Honnen@ t-online.de> wrote in message
      news:3f759b4e$1 @olaf.komtel.ne t...[color=blue]
      >
      >
      > CharitiesOnline .co.uk wrote:
      >[color=green]
      > > Can anyone tell me, what is the maximum functions that you can call[/color][/color]
      using a[color=blue][color=green]
      > > form submit button with onSubmit ?
      > > I am using 2 at present but really need to use 3 , how can I do this?[/color]
      >
      > Why do you think there is a limit? Use
      > <form onsubmit="funct ion1(); function2(); function3();
      > return true;"
      >
      > --
      >
      > Martin Honnen
      > http://JavaScript.FAQTs.com/
      >[/color]


      Comment

      • Martin Honnen

        #4
        Re: max call using onSubmit?



        CharitiesOnline .co.uk wrote:
        [color=blue]
        > Hello Martin,
        > I have tried that & it doesnt seem to work?
        >
        > <form action="<%=MM_e ditAction%>" method="post"
        > enctype="multip art/form-data" name="form1"
        > onSubmit="MM_va lidateForm('Cat egoryName','',' R','Description ','','R','Pictu r
        > e','','R');chec kFileUpload(thi s,'GIF,JPG,JPEG ,BMP,PNG',false ,'','','','','' ,
        > '','');return document.MM_ret urnValue">[/color]

        I am sure you can call as many functions as you like, thus if "it
        doesn't seem to work" then one of the functions causes an error, check
        the JavaScript console.
        --

        Martin Honnen


        Comment

        Working...