Skip to main content

Bug Tracker

Side navigation

#88 closed bug (invalid)

Opened July 24, 2006 05:37PM UTC

Closed July 24, 2006 10:20PM UTC

Last modified June 20, 2007 02:04AM UTC

"this" functionality change after rev.110

Reported by: beerfu@gmail.com Owned by:
Priority: trivial Milestone:
Component: core Version:
Keywords: Cc:
Blocked by: Blocking:
Description

$("#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.

Attachments (0)
Change History (3)

Changed July 24, 2006 06:10PM UTC by dave.methvin comment:1

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" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>jsoup</title>

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

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

</body>
</html>

Changed July 24, 2006 10:06PM UTC by beerfu@gmail comment:2

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.

Changed July 24, 2006 10:20PM UTC by beerfu@gmail comment:3

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.