Announcement

Collapse
No announcement yet.

Onload of form?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Onload of form?



    I have a script that creates a series of form submits to a subsection of the same script (
    docummenturl ). The form runs the script in a new window, which then auto closes when completed.

    I would like each <input type="submit"> to auto submit rather than have human interaction.

    Can I do this? Tried various onLods but they didn't work.

    Can I do this with a redirect or an mvcall?

    Bill



    #2
    Onload of form?



    Hi Bill,

    If your problem is to submit after an action of your other script, you could
    do a javascript to submit like that:
    <script>
    function submitit(){
    document.forms.Superform.submit();
    }
    </script>

    <form name="Superform" ID="Superform" action="{s.documenturl}"
    method="POST">
    </form>

    ...and let the other script fill your data and once it is filled call this
    function.

    If you post a small part of the other script I could help you more...

    Best regards,
    Claudiu

    -----Original Message-----
    From: [email protected] [mailto:[email protected]]On
    Behalf Of Bill Gilligan
    Sent: samedi 16 avril 2005 06:15
    To: [email protected]
    Subject: [meu] Onload of form?


    I have a script that creates a series of form submits to a subsection of the
    same script (
    docummenturl ). The form runs the script in a new window, which then auto
    closes when completed.

    I would like each <input type="submit"> to auto submit rather than have
    human interaction.

    Can I do this? Tried various onLods but they didn't work.

    Can I do this with a redirect or an mvcall?

    Bill


    Comment

    Working...
    X