You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by PSW <su...@wachtel.us> on 2005/04/04 19:49:08 UTC

DatePicker problem in IE6

Hi there,

Trying to use DatePicker for the first time.  I keep getting a 
javascript error:

Line: 941
Char: 4
Error: Object required
Code: 0
URL: http://localhost:8080/calendar/app

It works in Firefox, but the requirement for the application is that it 
work in IE6

If anyone has any ideas, I'd be grateful.

Thanks,
PSW


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: DatePicker problem in IE6

Posted by Zachary Pinter <zp...@gmail.com>.
Though I doubt it is the most elegant solution, I got around it by
putting the following in my Border component right after the opening
body tag:

<script type="text/javascript">      
function getPoint(aTag) {
   var oTmp = aTag;  
   var point = new Point(0,0);
  
   do {
      point.x += oTmp.offsetLeft;
      point.y += oTmp.offsetTop;
      oTmp = oTmp.offsetParent;
   } 
   while (oTmp && oTmp.tagName != "BODY");

   return point;
}             
</script>   

I think the error has something to do with oTmp being null in the
original getPoint(aTag). The bug link that the other poster mentioned
might work by preventing the condition that results in aTag being
null. Either way, I think both corrections to getPoint(aTag) should
work.

On Apr 4, 2005 1:52 PM, steven.libonati@wachovia.com
<st...@wachovia.com> wrote:
> Maybe this can help?
> 
> http://issues.apache.org/jira/browse/TAPESTRY-222
> 
> PSW <su...@wachtel.us>
> 04/04/2005 01:49 PM
> 
> Please respond to
> "Tapestry users" <ta...@jakarta.apache.org>
> 
> To
> Tapestry users <ta...@jakarta.apache.org>
> cc
> 
> Subject
> DatePicker problem in IE6
> 
> 
> Hi there,
> 
> Trying to use DatePicker for the first time.  I keep getting a
> javascript error:
> 
> Line: 941
> Char: 4
> Error: Object required
> Code: 0
> URL: http://localhost:8080/calendar/app
> 
> It works in Firefox, but the requirement for the application is that it
> work in IE6
> 
> If anyone has any ideas, I'd be grateful.
> 
> Thanks,
> PSW
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> 
> ForwardSourceID:NT00007352
> 
> 


-- 
Zachary Pinter
z@absolutez.net

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: DatePicker problem in IE6

Posted by st...@wachovia.com.
Maybe this can help?

http://issues.apache.org/jira/browse/TAPESTRY-222




PSW <su...@wachtel.us> 
04/04/2005 01:49 PM

Please respond to
"Tapestry users" <ta...@jakarta.apache.org>


To
Tapestry users <ta...@jakarta.apache.org>
cc

Subject
DatePicker problem in IE6






Hi there,

Trying to use DatePicker for the first time.  I keep getting a 
javascript error:

Line: 941
Char: 4
Error: Object required
Code: 0
URL: http://localhost:8080/calendar/app

It works in Firefox, but the requirement for the application is that it 
work in IE6

If anyone has any ideas, I'd be grateful.

Thanks,
PSW


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


ForwardSourceID:NT00007352