Hi Dan, One thing to note, according to both HTML and XHTML standards, an external script reference should still has to be written with an end tag.
You have: <script type="text/javascript" src="/epoch_classes.js" /> Whereas it should be: <script type="text/javascript" src="/epoch_classes.js"></script> In my early work with dynamic XML/XSLT to produce XHTML, years ago, I assumed I could short-cut an external <script> tag to a single element, but discovered the hard way that this produces some unpredictable behavior from Browsers (like not working), as well as going against the 1.0 standard. I think the rule-of-thumb for single elements and elements that require a separate end tag, is when that element can have optional "inner" information, i.e., embedded JavaScript. <img src="" /> can be a single element, because it never has "inner" contents, e.g., <img>..?..</img> Hope that helps. Scott Cadillac, Email: [EMAIL PROTECTED] http://scott.cadillac.bz > -----Original Message----- > From: Dan Stein [mailto:[EMAIL PROTECTED] > Sent: Friday, June 02, 2006 11:18 AM > To: [email protected] > Subject: Re: Witango-Talk: JavaScript include in Witango > > OK I does get stranger and this is now over my head and past > my acceptable > level of frustration > > If you go to > > http://www.dss-demo.com/catalog_request.taf > > This is the only way I can seem to get it working > > If I actually put a cal on the page then when you click the > button the popup > actually comes up and works fine. > > It must be a bug in the epoch code itself because I took his > example file > and took out the two flat cals and his popup no longer works either. > > Hopefully he has a fix because the DHTML is nice to work with. > > > > > on 6/2/06 12:56, Beverly Voth at [EMAIL PROTECTED] wrote: > > > On 06/2/2006 11:40 AM, "Dan Stein" <[EMAIL PROTECTED]> wrote > in whole or in > > part: > > > >> I need to get these two JavaScript files called from > inside my Witango > >> results page > >> > >> <script type="text/javascript" src="declarations.js"></script> > >> > >> <script type="text/javascript" src="epoch_classes.js"></script> > >> > >> Especially the classes file I can't add that to my witango itself. > >> > >> So what is the proper syntax. > >> > >> I tried <@appfilepath> and that does not work either > > > > The syntax is correct, if the files are on the same > directory level as the > > calling '.taf'. They can be in the <head> or within the > <body>, but I > > generally prefer within the <head>. If the path to the > files is not the > > same, then put the correct path in. > > > > Beverly > > > > > > > ______________________________________________________________ > __________ > > TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf > > > > -- > Dan Stein > FileMaker 7 Certified Developer > Digital Software Solutions > 799 Evergreen Circle > Telford PA 18969 > Land: 215-799-0192 > Cell: 610-256-2843 > Fax 413-410-9682 > FMP, WiTango, EDI,SQL 2000, MySQL, CWP > [EMAIL PROTECTED] > www.dss-db.com > > > "There is a larger frame to the painting than the one > that bounds our > life's events." > > > ______________________________________________________________ > __________ > TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf > ________________________________________________________________________ TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
