Whenever I have problems like this, I put the file on my harddrive, pull the various tapestry and tacos .js files out of the jars and stick them next to the file, and then load the file directly from the filesystem. This makes it MUCH faster to do debugging and much easier to add debug statements to javascript that was injected into the page by tapestry or tacos. When something isn't executing which should be, I can usually figure it out this way relatively quickly. My tapestry jars are full of little fixes to .js and .script files in order to get things working in all the browsers I care about and such.
--sam On 7/27/06, Harvey, David <[EMAIL PROTECTED]> wrote: > > > > The list doesn't allow posts > 120k so I'm posting the page and the view > source separately. Once again, thanks for your help. > > > And here's the view source: > > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" > "http://www.w3.org/TR/html4/loose.dtd"> > <!-- Application: TapestryTest --> > <!-- Page: tacosReallySimple --> > <!-- Generated: Thu Jul 27 14:38:52 MDT 2006 --> > <html> > <head> > <meta name="generator" content="Tapestry Application Framework, version > 4.0.2"/> > > <meta http-equiv="Content-Type" > content="text/html;charset=UTF-8"/> > <base href="http://localhost:8070/TapestryTest/"/> > <title>Small Tacos</title> > </head> > > <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> > <script type="text/javascript" > src="/TapestryTest/app?digest=8028013aac28c5064cc3508d78e81f67&path=%2Fnet%2Fsf%2Ftacos%2Fajax%2Fcomponents%2FForm.js&service=asset"></script> > <script type="text/javascript" > src="/TapestryTest/app?digest=528a812e3e7a5c8771cfd538a4490c3a&path=%2Fnet%2Fsf%2Ftacos%2Fajax%2Fcomponents%2Ftacos.js&service=asset"></script> > <script type="text/javascript" > src="/TapestryTest/app?digest=ec266084ece29ede795db38c9c8cbf3d&path=%2Fnet%2Fsf%2Ftacos%2Fajax%2Fcomponents%2Fprototype.js&service=asset"></script> > <script type="text/javascript" > src="/TapestryTest/app?digest=d63e7f26dc85288745b585a8a8126108&path=%2Fnet%2Fsf%2Ftacos%2Fajax%2Fcomponents%2Feffects.js&service=asset"></script> > <script type="text/javascript" > src="/TapestryTest/app?digest=1c2cda41010a5c0a96485ac13a16355c&path=%2Fnet%2Fsf%2Ftacos%2Fajax%2Fcomponents%2Fcontrols.js&service=asset"></script> > <script type="text/javascript"><!-- > > > > dojo.require("dojo.io"); > dojo.require("dojo.event"); > dojo.require("dojo.lfx.*"); > dojo.require("dojo.dom"); > > > document.AjaxFormSubmit_checkboxForm = function(event) { > dojo.debug("AjaxFormSubmit submission - before onsubmit"); > > > tacos.applyFormHandlers("checkboxForm", event); > > if (event["type"] && > (event["type"] == "submit" || > event["type"] == "click" || > event["type"] == "mousedown" || > event["type"] == "mouseclick") ) { > dojo.event.browser.stopEvent(event); > } > > if (event.abort || event.cancel_handlers) > return; > > > > > > > > > var args = { > url: > "http://localhost:8070/TapestryTest/app?component=checkboxForm&page=tacosReallySimple&rand=8663876&service=ajaxdirect&updatedirect=false&updateid=checkbox", > processScripts: "true", > effects: {}, > updateObject: null, > content: { > dojoRequest: "true", processScripts: "true" > }, > btnId: "checkboxChangeEvent", > btnValue: encodeURIComponent("submitname"), > formId: "checkboxForm", > backLink: "", > forwardLink: "", > statusElement: "" > }; > > > > tacos.formSubmit(args); > } > > > dojo.require("dojo.io"); > dojo.require("dojo.lfx.*"); > dojo.require("dojo.dom"); > > > > dojo.require("dojo.io"); > dojo.require("dojo.lfx.html"); > dojo.require("dojo.dom"); > > Tapestry.default_invalid_field_handler = > tacos.default_invalid_field_handler; > Tapestry.set_focus = tacos.set_focus; > > > document.postcheckboxFormForm = function(event) { > dojo.debug("AjaxForm submission using form submit."); > > tacos.applyFormHandlers("checkboxForm", event); > // don't want anyone else getting this > dojo.event.browser.stopEvent(event); > > if (event.abort || event.cancel_handlers) > return; > > // cleanup, memory leaks are bad > dojo.event.disconnect(dojo.byId("checkboxForm"), "onsubmit", document, > "postcheckboxFormForm"); > > > > var args = {url: > "http://localhost:8070/TapestryTest/app?component=checkboxForm&page=tacosReallySimple&rand=1483545951&service=ajaxdirect&updatedirect=false", > processScripts: "true", > effects: {}, updateObject: null, > content: { dojoRequest: "true", processScripts: "true" > }, > formId: "checkboxForm", backLink: "", > forwardLink: "", statusElement: ""}; > > > // actually submit > tacos.formSubmit(args); > dojo.debug("Form submission complete."); > } > > > // --></script> > <br/> > <br/> > <br/> > <form method="post" action="/TapestryTest/app" name="checkboxForm" > id="checkboxForm"> > <div style="display:none;" id="checkboxFormhidden"><input type="hidden" > name="formids" value="checkboxChangeEvent,itemCheckbox"/> > <input type="hidden" name="component" value="checkboxForm"/> > <input type="hidden" name="page" value="tacosReallySimple"/> > <input type="hidden" name="service" value="direct"/> > <input type="hidden" name="submitmode" value=""/> > <input type="hidden" name="submitname" value=""/> > </div> > > <!-- component that ties the checkbox to the buttons and for demo > purposes the time display --> > > <table> > <tr> > <td> > <input type="checkbox" name="itemCheckbox" id="checkbox"/> > > </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> > <script language="JavaScript" type="text/javascript"><!-- > Tapestry.register_form('checkboxForm'); > > > > > > > dojo.event.connect(window, "onload", function(event) { > dojo.event.kwConnect({srcObj:dojo.byId("checkbox") , srcFunc:"onclick", > > targetObj:document, targetFunc: "AjaxFormSubmit_checkboxForm", > once:true}); > }); > > > Tapestry.set_focus('checkbox'); > > > > dojo.event.connect(window, "onload", function(e) { > dojo.event.connect(dojo.byId("checkboxForm"), "onsubmit", document, > "postcheckboxFormForm"); > }); > > > > // --></script></body> > </html> > <!-- Render time: ~ 62 ms --> > > > > > ________________________________ > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Jesse Kuhnert > Sent: Thursday, July 27, 2006 2:48 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! > > > Can you post what the rendered page looks like? > > > On 7/27/06, [EMAIL PROTECTED] < [EMAIL PROTECTED]> wrote: > > 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 > > > > > > -- > 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 > > > ------------------------------------------------------------------------- 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
