#1101 new
Imrankhan

disable object issue in IE

Reported by Imrankhan | July 21st, 2010 @ 11:04 AM

I found following issue in IE. I am not sure it is issue or not.
I have three input text in page. on button click event, I am doing disable that controls by following way

this.tbarr.each(function(t){
Form.Element.disable(t);
}); tbarr is array of input text.

When I show inspect element in IE 8 then I found some events are added in input element. It looks like following way.

input id="tbAnswere1" disabled="disabled" value="Up to 40 Chars" type="text" name="tbAnswere1"
fire="function() {

  return __method.apply(null, [this].concat($A(arguments)));
}" observe="function() {
  return __method.apply(null, [this].concat($A(arguments)));
}" stopObserving="function() {
  return __method.apply(null, [this].concat($A(arguments)));
}" visible="function() {
  return __method.apply(null, [this].concat($A(arguments)));
}" toggle="function() {
  return __method.apply(null, [this].concat($A(arguments)));
}" hide="function() {
  return __method.apply(null, [this].concat($A(arguments)));
}" show="function() {
  return __method.apply(null, [this].concat($A(arguments)));
}" remove="function() {
  return __method.apply(null, [this].concat($A(arguments)));
}" update="function() {
  return __method.apply(null, [this].concat($A(arguments)));
}" replace="function() {
  return __method.apply(null, [this].concat($A(arguments)));
}" insert="function() {
  return __method.apply(null, [this].concat($A(arguments)));
}" wrap="function() {
  return __method.apply(null, [this].concat($A(arguments)));
}" inspect="function() {
  return __method.apply(null, [this].concat($A(arguments)));
}" recursivelyCollect="function() {
  return __method.apply(null, [this].concat($A(arguments)));
}" ancestors="function() {
  return __method.apply(null, [this].concat($A(arguments)));
}" descendants="function() {
  return __method.apply(null, [this].concat($A(arguments)));
}" firstDescendant="function() {
  return __method.apply(null, [this].concat($A(arguments)));
}" immediateDescendants="function() {
  return __method.apply(null, [this].concat($A(arguments)));
}" previousSiblings="function() {
  return __method.apply(null, [this].concat($A(arguments)));
}" nextSiblings="function() {
  return __method.apply(null, [this].concat($A(arguments)));
}" siblings="function() {
  return __method.apply(null, [this].concat($A(arguments)));
}" match="function() {
  return __method.apply(null, [this].concat($A(arguments)));
}" up="function() {
  return __method.apply(null, [this].concat($A(arguments)));
}" down="function() {
  return __method.apply(null, [this].concat($A(arguments)));
}" previous="function() {
  return __method.apply(null, [this].concat($A(arguments)));
}" next="function() {
  return __method.apply(null, [this].concat($A(arguments)));
}" adjacent="function() {
  return __method.apply(null, [this].concat($A(arguments)));
}" identify="function() {
  return __method.apply(null, [this].concat($A(arguments)));
}" readAttribute="function() {
  return __method.apply(null, [this].concat($A(arguments)));
}" writeAttribute="function() {
  return __method.apply(null, [this].concat($A(arguments)));
}" getHeight="function() {
  return __method.apply(null, [this].concat($A(arguments)));
}" getWidth="function() {
  return __method.apply(null, [this].concat($A(arguments)));
}" classNames="function() {
  return __method.apply(null, [this].concat($A(arguments)));
}" hasClassName="function() {
  return __method.apply(null, [this].concat($A(arguments)));
}" addClassName="function() {
  return __method.apply(null, [this].concat($A(arguments)));
}" removeClassName="function() {
  return __method.apply(null, [this].concat($A(arguments)));
}" toggleClassName="function() {
  return __method.apply(null, [this].concat($A(arguments)));
}" cleanWhitespace="function() {
  return __method.apply(null, [this].concat($A(arguments)));
}" empty="function() {
  return __method.apply(null, [this].concat($A(arguments)));
}" descendantOf="function() {
  return __method.apply(null, [this].concat($A(arguments)));
}" scrollTo="function() {
  return __method.apply(null, [this].concat($A(arguments)));
}" getStyle="function() {
  return __method.apply(null, [this].concat($A(arguments)));
}" getOpacity="function() {
  return __method.apply(null, [this].concat($A(arguments)));
}" setStyle="function() {
  return __method.apply(null, [this].concat($A(arguments)));
}" setOpacity="function() {
  return __method.apply(null, [this].concat($A(arguments)));
}" getDimensions="function() {
  return __method.apply(null, [this].concat($A(arguments)));
}" makePositioned="function() {
  return __method.apply(null, [this].concat($A(arguments)));
}" undoPositioned="function() {
  return __method.apply(null, [this].concat($A(arguments)));
}" makeClipping="function() {
  return __method.apply(null, [this].concat($A(arguments)));
}" undoClipping="function() {
  return __method.apply(null, [this].concat($A(arguments)));
}" cumulativeOffset="function() {
  return __method.apply(null, [this].concat($A(arguments)));
}" positionedOffset="function() {
  return __method.apply(null, [this].concat($A(arguments)));
}" absolutize="function() {
  return __method.apply(null, [this].concat($A(arguments)));
}" relativize="function() {
  return __method.apply(null, [this].concat($A(arguments)));
}" cumulativeScrollOffset="function() {
  return __method.apply(null, [this].concat($A(arguments)));
}" getOffsetParent="function() {
  return __method.apply(null, [this].concat($A(arguments)));
}" viewportOffset="function() {
  return __method.apply(null, [this].concat($A(arguments)));
}" clonePosition="function() {
  return __method.apply(null, [this].concat($A(arguments)));
}" getElementsBySelector="function() {
  return __method.apply(null, [this].concat($A(arguments)));
}" childElements="function() {
  return __method.apply(null, [this].concat($A(arguments)));
}" _extendedByPrototype="function() { }" getElementsByClassName="function() {
  return __method.apply(null, [this].concat($A(arguments)));
}" childOf="function() {
  return __method.apply(null, [this].concat($A(arguments)));
}" serialize="function() {
  return __method.apply(null, [this].concat($A(arguments)));
}" getValue="function() {
  return __method.apply(null, [this].concat($A(arguments)));
}" setValue="function() {
  return __method.apply(null, [this].concat($A(arguments)));
}" clear="function() {
  return __method.apply(null, [this].concat($A(arguments)));
}" present="function() {
  return __method.apply(null, [this].concat($A(arguments)));
}" activate="function() {
  return __method.apply(null, [this].concat($A(arguments)));
}" disable="function() {
  return __method.apply(null, [this].concat($A(arguments)));
}" enable="function() {
  return __method.apply(null, [this].concat($A(arguments)));
}" class="disable">

Another issue, sometimes romoveClassName is not working in IE 8. I am getting following error

Message: Object doesn't support this property or method

code:

tb.onfocus=function(){

     if(this.value=='Up to 40 Chars'){
           this.value = ''; 
           this.removeClassName('disable');
     }

}

where tb in input text.

Regard
Imrankahn

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

The Prototype JavaScript library.

Shared Ticket Bins

People watching this ticket

Pages