The way I generate the dojo script isn't anything fancy, it just uses an Any component in place of embedding the dojo declaration directly in the Border.html file. The reason I use the component is because I have my html files in different directories and use friendly urls to leverage path-based security. In that case, a staticly defined relative path to the dojo.js doesn't work, because for some pages the relative path is different.
In the end though the dynamic generation still outputs much the same code as in the tacos demo. What I thought was strange is the fact that the dojo.js script declaration ends up being written between the head and body sections, which as far as I know is invalid html, although some browsers like firefox don't seem to care. And IE doesn't seem to care a lot of the time. I don't have a problem with IE6.0.28 on win2k, but my colleague on IE2.0.29 on WinXP has regular problems with it. I'm not using the CVS trunk though. The version I'm using is the last valid one produced before switching to tapestry4.1 development. regards, Scott On Thu 12 January 2006 15:30, Jesse Kuhnert wrote: > I use ie with dojo all the time, but am not familiar with your method of > including dojo. I know Leonardo went in and did some refactoring of the > demo to do it slightly differently, but your method looks almost like you > are working out of cvs trunk? > > I should put a disclaimer on the website about trunk, there's almost no > part of tacos that's safe in it right now. I plan on changing almost > everything (hopefully with the same basic result, only much much more > api/user/performance/etc friendly) . > > On 1/11/06, Scott Russell <[EMAIL PROTECTED]> wrote: > > I am having a problem with the way the dojo.js is included under IE. > > > > My Border.html looks similar to the demo app, with the following code: > > > > MainBorder.html: > > > > <html jwcid="mainShell"> > > <script jwcid="dojoScript"/> > > <head jwcid="$remove$"> > > <title>ESMART</title> > > <link rel="stylesheet" href="../../css/ocean.css" type="text/css"> > > <link rel="stylesheet" href="../../css/customer.css" type="text/css"> > > <meta http-equiv="Content-Type" content="text/html; > > charset=iso-8859-1"> </head> > > > > <body jwcid="@Body" leftmargin="0" topmargin="0" marginwidth="0" > > marginheight="0"> > > > > > > MainBorder.xml: > > > > <component id="dojoScript" type="Any"> > > <binding name="element" value="literal:script"/> > > <binding name="type" value="literal:text/javascript"/> > > <binding name="src" value="asset:dojoScript"/> > > </component> > > > > <asset name="dojoScript" path="context:javascript/dojo/dojo.js"/> > > > > > > > > The problem I am having is that this, like the tacos demo, generates an > > invalid html in tapestry, where the dojo script element is placed after > > the > > </head> tag and before the <body> tag. Firefox handles this ok, but under > > IE > > it has intermittent problems. It appears to sometimes interfere with the > > loading of the other scripts in the Body, so one for example gets errors > > like > > 'Tapestry.js not found' or similar. > > > > Has anyone else experienced these problems when using IE with the tacos > > libraries? > > > > regards, > > Scott > > > > > > ------------------------------------------------------- > > This SF.net email is sponsored by: Splunk Inc. Do you grep through log > > files > > for problems? Stop! Download the new AJAX search engine that makes > > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > > http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click > > _______________________________________________ > > Tacos-devel mailing list > > [email protected] > > https://lists.sourceforge.net/lists/listinfo/tacos-devel ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ Tacos-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/tacos-devel
