|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
SlickEdit: Code in over 40 languages across 7 platforms. SlickEdit’s unmatched power, speed, and flexibility allows even the most accomplished developers to write better code faster. Download a free trial today! |
|
#1
|
|||
|
|||
|
Hi,
I have a submission form, and I want to loop the sending action many times on Click Submission (with differences between each iteration induced by my own, of course). Here is an extract from my present code (if it helps) : Code:
<FORM name=subForm action=/.../preview#personalize target=_blank method=post> <input ...> <input ...> <input ...> <input type=submit name=".send" value="Send iT"></FORM> |
|
#2
|
|||
|
|||
|
Suggest writing a function that is called when you click a button (not a submit button) that uses the form's submit() method after you make the changes each time.
-KM- |
|
#3
|
|||
|
|||
|
I agree with you BUT
Could you be more expressive, pleeease ?
I don't know how to launch submission inside a function. |
|
#4
|
|||
|
|||
|
Define a function that is called on the onClick handler of a button on the form.
In the function use your forms submit method. ie your_form_name.submit() to submit the form. You will need to submit it to a new frame, window or something else in order to loop in the function though as otherwise the page will refresh and you can't keep looping. -KM- |
|
#5
|
|||
|
|||
|
Thanks a lot !
You're really helpfull to me ! One more time, Thank YOU. |
![]() |
| Viewing: Dev Articles Community Forums > Programming > JavaScript Development > Submission looping |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|