Bug Tracker

Opened 17 years ago

Closed 17 years ago

Last modified 16 years ago

#88 closed bug (invalid)

"this" functionality change after rev.110

Reported by: [email protected] Owned by:
Priority: trivial Milestone:
Component: core Version:
Keywords: Cc:
Blocked by: Blocking:


$("#submitbtn").each(function(){ this.disabled = true; this.value = "Searching ..."; });

In r.110, the button with id submitbtn changes. In r.158, the button doesnt do anything.

Change History (3)

comment:1 Changed 17 years ago by dave.methvin

Stripping out the unneeded parts from that page, the demo below seems to be working fine. It is selecting one node and changing the properties correctly. Most likely it is something elsewhere that causes Javascript to stop before this code is reached. Can you do some more debugging to narrow it down?

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 

<script src="http://www.acronymsoup.com/sandbox/jquery/jquery-158.js"></script>
<script type="text/javascript">
function ChangeSubmitButton()
    this.disabled = true;
    this.value = "Searching ...";	
  return false;

<form onsubmit="return ChangeSubmitButton()">
<input type="text" name="random">
<input type="submit" id="submitbtn" name="submitbtn" value="Click Me">


comment:2 Changed 17 years ago by [email protected]

Priority: minortrivial

It appears to be an issue with my jsoup code. This is mostly namespace safe, so I'll wittle it down to see if I can find the section thats causing the issues in IE. Downgrading bug while I test.

comment:3 Changed 17 years ago by [email protected]

Resolution: invalid
Status: newclosed

I have discovered its related to several "Array.prototype..." and "String.prototype...." declarations in "Son of fValidate", my reincarnation of the fvalidate library. I've been meaning to rewrite it for some time, and I guess this is my motivation. I'll fix it tonight and I expect the problem will go away.

Sorry for the trouble. Closing bug.

Note: See TracTickets for help on using tickets.