You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Matt Raible (JIRA)" <ta...@jakarta.apache.org> on 2004/11/03 02:02:32 UTC

[jira] Created: (TAPESTRY-222) IE Error in DataPicker.js

IE Error in DataPicker.js
-------------------------

         Key: TAPESTRY-222
         URL: http://nagoya.apache.org/jira/browse/TAPESTRY-222
     Project: Tapestry
        Type: Bug
  Components: Framework  
    Versions: 3.0.1    
 Environment: IE 6.0 SP2, Windows XP, Tapestry 3.0.1, XHTML Transitional
    Reporter: Matt Raible
    Priority: Minor


For some reason, the date picker throws an exception in IE in my app.  Works fine in Firefox.  I patched DatePicker.js by adding a try/catch block around the following code and it fixed the problem for me (and the calendar works).  Just FYI, I had to add this same patch to MyFaces popup calendar component too.

      try {
          do {
              aTag = aTag.offsetParent;
              leftpos	+= aTag.offsetLeft;
              toppos += aTag.offsetTop;
          } while(aTag.tagName!="BODY");
      } catch (ex) { 
          // ignore 
      }

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


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


[jira] Closed: (TAPESTRY-222) IE Error in DataPicker.js

Posted by "Howard M. Lewis Ship (JIRA)" <ta...@jakarta.apache.org>.
     [ http://issues.apache.org/jira/browse/TAPESTRY-222?page=all ]
     
Howard M. Lewis Ship closed TAPESTRY-222:
-----------------------------------------

    Fix Version: 4.0
     Resolution: Fixed

Seemed to do no harm; I'm not sure of the situations where it would break before so it's impossible to validate that this fix works.

> IE Error in DataPicker.js
> -------------------------
>
>          Key: TAPESTRY-222
>          URL: http://issues.apache.org/jira/browse/TAPESTRY-222
>      Project: Tapestry
>         Type: Bug
>   Components: Framework
>     Versions: 3.0.1
>  Environment: IE 6.0 SP2, Windows XP, Tapestry 3.0.1, XHTML Transitional
>     Reporter: Matt Raible
>     Assignee: Howard M. Lewis Ship
>     Priority: Minor
>      Fix For: 4.0

>
> For some reason, the date picker throws an exception in IE in my app.  Works fine in Firefox.  I patched DatePicker.js by adding a try/catch block around the following code and it fixed the problem for me (and the calendar works).  Just FYI, I had to add this same patch to MyFaces popup calendar component too.
>       try {
>           do {
>               aTag = aTag.offsetParent;
>               leftpos	+= aTag.offsetLeft;
>               toppos += aTag.offsetTop;
>           } while(aTag.tagName!="BODY");
>       } catch (ex) { 
>           // ignore 
>       }

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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


[jira] Assigned: (TAPESTRY-222) IE Error in DataPicker.js

Posted by "Howard M. Lewis Ship (JIRA)" <ta...@jakarta.apache.org>.
     [ http://issues.apache.org/jira/browse/TAPESTRY-222?page=all ]

Howard M. Lewis Ship reassigned TAPESTRY-222:
---------------------------------------------

    Assign To: Howard M. Lewis Ship

> IE Error in DataPicker.js
> -------------------------
>
>          Key: TAPESTRY-222
>          URL: http://issues.apache.org/jira/browse/TAPESTRY-222
>      Project: Tapestry
>         Type: Bug
>   Components: Framework
>     Versions: 3.0.1
>  Environment: IE 6.0 SP2, Windows XP, Tapestry 3.0.1, XHTML Transitional
>     Reporter: Matt Raible
>     Assignee: Howard M. Lewis Ship
>     Priority: Minor

>
> For some reason, the date picker throws an exception in IE in my app.  Works fine in Firefox.  I patched DatePicker.js by adding a try/catch block around the following code and it fixed the problem for me (and the calendar works).  Just FYI, I had to add this same patch to MyFaces popup calendar component too.
>       try {
>           do {
>               aTag = aTag.offsetParent;
>               leftpos	+= aTag.offsetLeft;
>               toppos += aTag.offsetTop;
>           } while(aTag.tagName!="BODY");
>       } catch (ex) { 
>           // ignore 
>       }

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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


[jira] Commented: (TAPESTRY-222) IE Error in DataPicker.js

Posted by "Gary Orth (JIRA)" <ta...@jakarta.apache.org>.
     [ http://issues.apache.org/jira/browse/TAPESTRY-222?page=comments#action_57663 ]
     
Gary Orth commented on TAPESTRY-222:
------------------------------------

I had the same issue and it was the result of using absolute/relative positioning with DIV tags.  I resolved it by changing the while condition in DatePicker.js.

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.tagName != "BODY" && oTmp.tagName != "HTML");

   return point;
}


> IE Error in DataPicker.js
> -------------------------
>
>          Key: TAPESTRY-222
>          URL: http://issues.apache.org/jira/browse/TAPESTRY-222
>      Project: Tapestry
>         Type: Bug
>   Components: Framework
>     Versions: 3.0.1
>  Environment: IE 6.0 SP2, Windows XP, Tapestry 3.0.1, XHTML Transitional
>     Reporter: Matt Raible
>     Priority: Minor

>
> For some reason, the date picker throws an exception in IE in my app.  Works fine in Firefox.  I patched DatePicker.js by adding a try/catch block around the following code and it fixed the problem for me (and the calendar works).  Just FYI, I had to add this same patch to MyFaces popup calendar component too.
>       try {
>           do {
>               aTag = aTag.offsetParent;
>               leftpos	+= aTag.offsetLeft;
>               toppos += aTag.offsetTop;
>           } while(aTag.tagName!="BODY");
>       } catch (ex) { 
>           // ignore 
>       }

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


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