1
+ − 1
/*
+ − 2
* Auto-completing page/username fields
263
d57af0b0302e
Major improvements in the security of the CAPTCHA system (no SQL injection or anything like that); fixed denied form submission due to _af_acting on form object wrongly switched to true
Dan
diff
changeset
+ − 3
* NOTE: A more efficient version of the username field is used for Mozilla browsers. The updated code is in autofill.js.
1
+ − 4
*/
+ − 5
581
5e8fd89c02ea
Initial progress towards converting auto-completion framework to Spry. Not currently in a very working state.
Dan
diff
changeset
+ − 6
//
5e8fd89c02ea
Initial progress towards converting auto-completion framework to Spry. Not currently in a very working state.
Dan
diff
changeset
+ − 7
// **** 1.1.4: DEPRECATED ****
5e8fd89c02ea
Initial progress towards converting auto-completion framework to Spry. Not currently in a very working state.
Dan
diff
changeset
+ − 8
// Replaced with Spry-based mechanism.
5e8fd89c02ea
Initial progress towards converting auto-completion framework to Spry. Not currently in a very working state.
Dan
diff
changeset
+ − 9
//
1
+ − 10
+ − 11
function get_parent_form(o)
+ − 12
{
+ − 13
if ( !o.parentNode )
+ − 14
return false;
+ − 15
if ( o.tagName == 'FORM' )
+ − 16
return o;
+ − 17
var p = o.parentNode;
+ − 18
while(true)
+ − 19
{
+ − 20
if ( p.tagName == 'FORM' )
+ − 21
return p;
+ − 22
else if ( !p )
+ − 23
return false;
+ − 24
else
+ − 25
p = p.parentNode;
+ − 26
}
+ − 27
}
+ − 28