Re: SVN diff on HTML_Ajax javascript

From: Date: Wed, 22 Feb 2006 01:51:59 +0000
Subject: Re: SVN diff on HTML_Ajax javascript
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-23076@lists.php.net to get a copy of this message
You can support this without patching HTML_AJAX. Only elements with names are sent so you just add in code that runs removeAttribute('name') on the other buttons. It might also make sense to make a more generalized exclusion list system when submitting forms, but i'd like too see a more general implementation then this. Also if you have lots of regular HTML_AJAX questions you might want to join the HTML_AJAX mailling list (http://lists.bluga.net/mailman/listinfo/html_ajax-devel) so were not bothering the whole world. -josh Dan Rossi wrote:
Ive made a small change to the HTML_AJAX.js file in regards to HTML_AJAX.formSubmit and telling which submit button was click if multiple submit buttons are in a form. The one that is clicked is sent only by default in php and scripting lanmguages, but this is sending the params of all the submit buttons. This change will only send the clicked submit button. Im wondering how I can make the cvs diff file and send that for approval ? Here is the file from the latest svn checkout today http://www.electroteque.org/pear/HTML_AJAX/HTML_AJAX.js Its used like <form action="products.php" method="post" onsubmit="return !HTML_AJAX.formSubmit(this, 'target');">
            <input type="text" name="testing" value="example" />
            <select name="test_select">
                <option value="example1">Example 1</option>
                <option value="example2">Example 2</option>
            </select>
            <input type="submit" name="add" onclick="HTML_AJAX.formSubmitBtnOn(this);" value="Add" />
            <input type="submit" name="update" onclick="HTML_AJAX.formSubmitBtnOn(this);" value="Update" />
</form> Unless there is actually something in the system like events etc, this worked fine. Let me know. Daniel


« previous php.pear.general (#23076) next »