jan2001 Posted April 5, 2007 Share Posted April 5, 2007 I've got the following form in a html page. Is it possible to submit all "input id="send[1488405]"" (Buttons) at one time? So ie post all items at one time without to reload the page after every klick CODE <form action="/test.php" method="post" name="form_test" id="form_test" target="_self"><input type="hidden" name="sid" value="9b04a314ba161c6493b741ddcd6b8611" /> <input name="_qf__form_test" type="hidden" value="" /> <tr> <td width="100%" height="0" colspan="2"> <table class="norm" width="100%"> <tr> <td width="14%"> </td> <td width="27%"> </td> <td width="59%" align="right"><b>arbeitet bis:</b></td> </tr> <tr> <td width="14%"><input name="test[1488405]" type="checkbox" value="1" id="qf_d81fe4" /></td> <td width="27%">Stute 1</td> <td width="59%" align="right"><input id="send[1488405]" class="button" style="width: 90px" name="send[1488405]" value="TEST WORK" type="submit" /></td> </tr> <tr> <td width="14%"><input name="test[1488406]" type="checkbox" value="1" id="qf_e05a61" /></td> <td width="27%">Stute 2</td> <td width="59%" align="right"><input id="send[1488406]" class="button" style="width: 90px" name="send[1488406]" value="TEST WORK" type="submit" /></td> </tr> <tr> <td width="14%"><input name="test[1488407]" type="checkbox" value="1" id="qf_ae238b" /></td> <td width="27%">Stute 3</td> <td width="59%" align="right"><input id="send[1488407]" class="button" style="width: 90px" name="send[1488407]" value="TEST WORK" type="submit" /></td> </tr> <tr> <td width="14%"><input name="test[1488408]" type="checkbox" value="1" id="qf_1e08c0" /></td> <td width="27%">Stute 4</td> <td width="59%" align="right"><input id="send[1488408]" class="button" style="width: 90px" name="send[1488408]" value="TEST WORK" type="submit" /></td> </tr> <tr> <td width="14%"><input name="test[1488409]" type="checkbox" value="1" id="qf_8b7ea4" /></td> <td width="27%">Stute 5</td> <td width="59%" align="right"><input id="send[1488409]" class="button" style="width: 90px" name="send[1488409]" value="TEST WORK" type="submit" /></td> </tr> <tr> <td width="14%"><input name="test[1488410]" type="checkbox" value="1" id="qf_69f46e" /></td> <td width="27%">Stute 6</td> <td width="59%" align="right"><input id="send[1488410]" class="button" style="width: 90px" name="send[1488410]" value="TEST WORK" type="submit" /></td> </tr> <tr> <td width="14%"><input name="test[1488411]" type="checkbox" value="1" id="qf_6db9cb" /></td> <td width="27%">Stute 7</td> <td width="59%" align="right"><input id="send[1488411]" class="button" style="width: 90px" name="send[1488411]" value="TEST WORK" type="submit" /></td> </tr> <tr> <td width="14%"><input name="test[1488412]" type="checkbox" value="1" id="qf_5c144f" /></td> <td width="27%">Stute 8</td> <td width="59%" align="right"><input id="send[1488412]" class="button" style="width: 90px" name="send[1488412]" value="TEST WORK" type="submit" /></td> </tr> <tr> <td width="14%"><input name="test[1488413]" type="checkbox" value="1" id="qf_ac6ebe" /></td> <td width="27%">Stute 9</td> <td width="59%" align="right"><input id="send[1488413]" class="button" style="width: 90px" name="send[1488413]" value="TEST WORK" type="submit" /></td> </tr> <tr> <td width="14%"><input name="test[1488414]" type="checkbox" value="1" id="qf_65d6ae" /></td> <td width="27%">Stute 10</td> <td width="59%" align="right"><input id="send[1488414]" class="button" style="width: 90px" name="send[1488414]" value="TEST WORK" type="submit" /></td> </tr> <tr> <td width="100%" colspan="3" style="padding-top: 8px;" align="right"><input class="button" style="width: 130px" onclick="return confirm('TEST TEST TEST');" name="del" value="TEST" type="submit" /></td> </tr> <tr> <td width="100%" colspan="3"> </td> </tr> </table> </td> </tr> </form> At the moment I realised it by a For - Loop. But it cost too much time... Regars jan2001 P.S.: Sorry for my bad english... Link to comment Share on other sites More sharing options...
jvanegmond Posted April 5, 2007 Share Posted April 5, 2007 You can never send multiple commands at the same time in the HTTP. github.com/jvanegmond Link to comment Share on other sites More sharing options...
DaleHohm Posted April 5, 2007 Share Posted April 5, 2007 If your goal is to avoid page refreshes, you'll need to study XMLHttp (do some searcing in the forum and Google/MSDN) If you're using IE.au3 and your goal is simply to speed up the process and avoid the visual distraction, you can set the page to be invisible (_IEAction($oIE, "invisible") and back to visible when done (_IEAction($oIE, "visible"). Dale Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model Automate input type=file (Related) Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded Better Better? IE.au3 issues with Vista - Workarounds SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead? Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now