[jQuery] Trigger for ajaxForm extra GET isolated

[jQuery] Trigger for ajaxForm extra GET isolated


I still don't have much of a clue what is going on, but I have managed
to isolate the trigger that is causing ajaxForm to send out and extra
GET request. This html page (hacked down from a Drupal 6
instillation), has the weird behavior. But any change to the name or
value of either of the two hidden form elements makes the extra GET go
away, and the ajaxForm does a single POST, as expected.
Unfortunately, these elements are generated for every Drupal form.
Note: I have only verified this issue using Firefox 3, using Firebug.
<html>
<head>
<script type="text/javascript" src="/drupal-6/misc/jquery.js"></
script>
<script type="text/javascript" src="/drupal-6/misc/
jquery.form.js"></script>
</head>
<body>
<form action="/drupal-6/admin/build/block" method="post" id="xxx">
<input type="submit" name="op" id="edit-submit-1" value="Save
blocks" class="form-submit" />
<input type="hidden" name="form_id" id="bar"
value="block_admin_display_form" />
<input type="hidden" name="form_token" id="foo"
value="c6fa63f42fe396424a6229270bcd4574" />
</form>
<script type="text/javascript">$('#xxx').ajaxForm({});</script>
</body>
</html>