The one checkbox in the following page should submit the AjaxForm when
the checkbox state changes.  It doesn't on IE and I've tracked it down
to the non-functional dojo.event.connect().  Am I doing something really
wrong?

Reminder: this is with July 10th source snapshot
tacos4-beta-3-20060710-1920.  With the May 9th source snapshot
tacos4-beta-3-20060509-1708 things are fine.  I suspect your demo at
opencomponentry is not based on the July 10th source snapshot.   

Thanks for your help.  


<!-- Start of HTML template -->
<html>
<span jwcid="$content$">
<span jwcid="@Shell" title="Small Tacos"
stylesheet="ognl:assets.stylesheet">
<script type="text/javascript"> 
    djConfig = { isDebug: true, 
                 baseRelativePath: "common/dojo/", 
                 preventBackButtonFix: false,
                 parseWidgets: true 
                 };
</script>
<script type="text/javascript"
src="common/dojo/dojo.js.uncompressed.js"></script>

<body jwcid="@Body">
<br/>
<br/>
<br/>
  <form jwcid="[EMAIL PROTECTED]:AjaxForm"> 
    <!--  component that ties the checkbox to the buttons and for demo
purposes the time display -->
    <span jwcid="[EMAIL PROTECTED]:AjaxEventSubmit"
          updateComponents="ognl:{'checkbox'}"
          />        
    <table>
      <tr>
        <td>
          <span jwcid="[EMAIL PROTECTED]" 
                id="checkbox"
                value="ognl:false"
                eventListener="onclick=components.checkboxChangeEvent"
                >
          </span>
        </td>
        <td>
          This checkbox doesn't function appropriately in IE.  The
onchange event never happens because it never gets kwConnected to the
dojo event model.  
        </td>
      </tr>
    </table> 
  </form>
</body>
</span>
</span>
</html> 
<!-- End of HTML page template -->
________________________________

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jesse
Kuhnert
Sent: Thursday, July 27, 2006 2:29 PM
To: Tacos Developers
Subject: Re: [Tacos-devel] FW: HELP: If dojo.event.connect doesn't work
for the onload event why do the Tacos widgets do it that way!


What doesn't work exactly? Does this work for you in ie
http://opencomponentry.com:8080/tacos/app ?

Maybe just do a simple statement like this to be sure:

dojo.require("dojo.event");

dojo.event.connect(window, "onload", function() { alert('Hello!'); }


On 7/27/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: 

        It doesn't work in IE.  There's got to be a fix or I cannot use
Tacos/Tapestry.    
         
________________________________

        From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] ] On Behalf Of Jesse
Kuhnert
        Sent: Thursday, July 27, 2006 2:10 PM
        To: Tacos Developers
        Subject: Re: [Tacos-devel] HELP: If dojo.event.connect doesn't
work for the onload event why do the Tacos widgets do it that way!
        
        
                I think I meant the opposite. You ~should~ use
dojo.event.connect(window, "onload" and ~not~ use dojo.addOnLoad. 
        
        
        
        On 7/27/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]>
wrote: 

                I have an email thread that I started on the
dojo-interest mail list, below.  Basically I've downloaded the July 10th
source snap of Tacos and have found it to be non-functionality on IE.  I
found the reason why, after many hours of view-sourcing and working with
that awful debugger.  In Tacos javascript events are connected to the
dojo event system by dojo.event.connect at onload time.  Jessie Kunhert
on dojo-interest over there tells me that this doesn't work in IE and
says I need to use dojo.addOnLoad.  So do I need to submit my own script
for all the Tacos components?   Is there a bug opened on this?
                 
                  dojo.event.connect(window, "onload", function(event) {
                   dojo.event.kwConnect({srcObj:dojo.byId("checkbox") ,
srcFunc:"onchange",
                     targetObj:document, targetFunc:
"AjaxFormSubmit_checkboxForm", once:true});
                
                I have a one component Tacos/Tapestry page and the
relevant view source generated html.  I can post it if necessary.
Thanks,  D.  

________________________________

                From: [EMAIL PROTECTED] [mailto:
[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]> ] On Behalf Of Jesse
Kuhnert
                Sent: Tuesday, July 25, 2006 10:13 PM
                To: [EMAIL PROTECTED]
                Subject: Re: [Dojo-interest] dojo.event and onload event
in internet explorer
                
                
                I've tried to use it once or twice, but after it didn't
work as advertised a few times I gave up on it.
                
                
                On 7/26/06, James Burke < [EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]> > wrote: 

                        I haven't normally done connections to onload
inside a script tag that 
                        inside the body of the HTML. You might try doing
that work in the head
                        area of the HTML. Another thing to try is using
                        dojo.addOnLoad(documentLoadingHandler); instead
of the
                        dojo.event.connect) syntax.
                        
                        As you can probably tell, I've normally just
used dojo.addOnLoad() to
                        register onload listeners.
                        
                        James
                        
                        On 7/25/06, Harvey, David <
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> > wrote: 
                        > Even when I leave out the onload event on the
body element the connect
                        > should still happen shouldn't it?
                        >
                        > dojo.event.connect(window, "onload",
"documentLoadingHandler"); 
                        >
                        > It doesn't on IE.  It's like the onload is
never fired.
                        >
                        > -----Original Message-----
                        > From: [EMAIL PROTECTED] 
                        > [mailto: [EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]> ] On Behalf Of James
Burke
                        > Sent: Tuesday, July 25, 2006 9:51 PM
                        > To: [EMAIL PROTECTED]
                        > Subject: Re: [Dojo-interest] dojo.event and
onload event in internet
                        > explorer
                        >
                        > Specifying an onload attribute on the body tag
does not work well with
                        > Dojo. Strange results happen. See trac ticket:

                        >
                        > http://trac.dojotoolkit.org/ticket/1097 
                        >
                        > It is suggested that you use dojo.addOnLoad()
instead to register code
                        > to execute on page load: 
                        >
                        > dojo.addOnLoad(function(){
                        >     alert('body loading via javascript
alert');'
                        > });
                        >
                        > James
                        >
                        > On 7/25/06, Harvey, David <
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> > wrote:
                        > > Hello all,
                        > >
                        > > I have a problem with dojo.event on Internet
Explorer 6.0 with the
                        > > onload.
                        > >
                        > > Things seem to be fine in Firefox 1.5.0.4.
                        > >
                        > > The problem is with IE 6.0.2900 with
javascript enabled.
                        > >
                        > > I have upgraded to dojo.js.uncompressed.js
from dojo release-0.3.1.  I
                        >
                        > > was previously using a release of dojo that
came with the Tacos 4 beta
                        >
                        > > 2 release.
                        > >
                        > > I'm finding the onload event is completely
non-functional in IE when
                        > > I'm loading dojo.  When the following html
page loads it should fire 
                        > > two alerts, once for the onload on the body
element and the second
                        > > when onload event finds the attached handler
function,
                        > > documentLoadingHandler().  This works in
Firefox.  If I use a page 
                        > > that doesn't load dojo and has a body onload
script the onload event
                        > > functions normally.
                        > >
                        > > Any help here?  Something I'm really doing
wrong?
                        > >
                        > > Thanks, 
                        > > David Harvey
                        > > Ingenix, Inc.
                        > >
                        > >
                        > > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01
Transitional//EN"
                        > > " http://www.w3.org/TR/html4/loose.dtd
<http://www.w3.org/TR/html4/loose.dtd> ">
                        > > <html>
                        > > <head>
                        > > <meta http-equiv="Content-Type"
content="text/html;charset=UTF-8"/>
                        > > <title>What happened to onload when running
in IE?</title> </head> 
                        > >
                        > > <body marginheight="0" topmargin="0"
leftmargin="0"
                        > > onload="alert('body loading via javascript
alert')">
                        > > <!--  added for DOJO --> 
                        > > <script type="text/javascript">
                        > > <!--
                        > >     djConfig = { isDebug: true,
                        > >                  baseRelativePath:
"common/dojo/",
                        > >                  preventBackButtonFix:
false, 
                        > >                  parseWidgets: true
                        > >                  };
                        > > // --></script>
                        > > <script type="text/javascript"
                        > >
src="common/dojo/dojo.js.uncompressed.js"></script> 
                        > > <script type="text/javascript">
                        > > <!--
                        > >      dojo.require("dojo.event");
                        > > // --></script>
                        > >
                        > > <table cellpadding="0" cellspacing="0"
border="0" width="100%" 
                        > > height="50">
                        > >         <tr>
                        > >         <td>
                        > >           <b>Some page content here</b>
                        > >         </td>
                        > >         </tr> 
                        > > </table>
                        > >
                        > > <script language="JavaScript"
type="text/javascript">
                        > > <!--
                        > >     // simple debugging of the onload
                        > >     function documentLoadingHandler(event) 
                        > >     {
                        > >       alert("Body loading via dojo attach
event");
                        > >     }
                        > >     dojo.event.connect(window, "onload",
"documentLoadingHandler"); //
                        > 
                        > > --></script> </body> </html>
                        > >
                        > >
                        > >
                        > >
                        > >
                        > >
                        > >
                        > > "Secure Server BSK" made the following
annotations on 07/25/2006 
                        > > 05:24:44 PM
------------------------------"This e-mail, including
                        > > attachments, may include confidential and/or
proprietary information,
                        > and may be used only by the person or entity
to which it is addressed. 
                        > If the reader of this e-mail is not the
intended recipient or his or her
                        > authorized agent, the reader is hereby
notified that any dissemination,
                        > distribution or copying of this e-mail is
prohibited. If you have 
                        > received this e-mail in error, please notify
the sender by replying to
                        > this message and delete this e-mail
immediately."
                        > > ==============================
                        > >
_______________________________________________ 
                        > > Dojo FAQ: http://dojo.jot.com/FAQ
<http://dojo.jot.com/FAQ> 
                        > > Dojo Book:
http://manual.dojotoolkit.org/DojoDotBook 
                        > > [EMAIL PROTECTED]
                        > >
http://dojotoolkit.org/mailman/listinfo/dojo-interest 
                        > > 
                        >
_______________________________________________
                        > Dojo FAQ: http://dojo.jot.com/FAQ
                        > Dojo Book:
http://manual.dojotoolkit.org/DojoDotBook 
                        > [EMAIL PROTECTED]
                        >
http://dojotoolkit.org/mailman/listinfo/dojo-interest
<http://dojotoolkit.org/mailman/listinfo/dojo-interest> 
                        >
                        >
                        >
                        >
                        > "Secure Server BSK" made the following
                        >  annotations on 07/25/2006 11:56:50 PM
                        > ------------------------------"This e-mail,
including attachments, may include confidential and/or proprietary
information, and may be used only by the person or entity to which it is
addressed. If the reader of this e-mail is not the intended recipient or
his or her authorized agent, the reader is hereby notified that any
dissemination, distribution or copying of this e-mail is prohibited. If
you have received this e-mail in error, please notify the sender by
replying to this message and delete this e-mail immediately." 
                        > ==============================
                        >
_______________________________________________
                        > Dojo FAQ: http://dojo.jot.com/FAQ
<http://dojo.jot.com/FAQ> 
                        > Dojo Book:
http://manual.dojotoolkit.org/DojoDotBook 
                        > [EMAIL PROTECTED]
                        >
http://dojotoolkit.org/mailman/listinfo/dojo-interest
<http://dojotoolkit.org/mailman/listinfo/dojo-interest> 
                        >
                        _______________________________________________
                        Dojo FAQ: http://dojo.jot.com/FAQ
                        Dojo Book:
http://manual.dojotoolkit.org/DojoDotBook 
                        [EMAIL PROTECTED]
        
http://dojotoolkit.org/mailman/listinfo/dojo-interest
                        




                -- 
                Jesse Kuhnert
                Tacos/Tapestry, team member/developer
                
                Open source based consulting work centered around
dojo/tapestry/tacos/hivemind. 

        
------------------------------------------------------------------------
-
                Take Surveys. Earn Cash. Influence the Future of IT
                Join SourceForge.net's Techsay panel and you'll get the
chance to share your
                opinions on IT & business topics through brief surveys
-- and earn cash
        
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDE
V
                
                _______________________________________________
                Tacos-devel mailing list
                [email protected] 
                https://lists.sourceforge.net/lists/listinfo/tacos-devel
<https://lists.sourceforge.net/lists/listinfo/tacos-devel> 
                
                
                




        -- 
        Jesse Kuhnert
        Tacos/Tapestry, team member/developer
        
        Open source based consulting work centered around
dojo/tapestry/tacos/hivemind. 

        
------------------------------------------------------------------------
-
        Take Surveys. Earn Cash. Influence the Future of IT
        Join SourceForge.net's Techsay panel and you'll get the chance
to share your
        opinions on IT & business topics through brief surveys -- and
earn cash
        
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDE
V
        
        _______________________________________________
        Tacos-devel mailing list
        [email protected]
        https://lists.sourceforge.net/lists/listinfo/tacos-devel
<https://lists.sourceforge.net/lists/listinfo/tacos-devel> 
        
        
        




-- 
Jesse Kuhnert
Tacos/Tapestry, team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind. 



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Tacos-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tacos-devel

Reply via email to