---------- Forwarded message ---------- From: Jérôme Etévé <jerome.et...@gmail.com> Date: 2009/8/13 Subject: Re: [Mason] I'm a newb.....Need a clue - Apache/RT/Mason/HTML/Javascript To: Greg Evans <gev...@hcc.net>
Hi, Your bit of apache config says "handle ressources of the form ^.js$ with mason". Which is a bit useless. By the way, are you sure you configured apache to let mason handle your .html files (or .mhtml or whatever you like) ? A good starting point for mason configuration is here: http://www.masonhq.com/docs/manual/Admin.html#controlling_access_via_filename_ From what I see in your email, I can't see anything obviously wrong. My advice is to: 'compile' your mason fies to detect the most straight-forward errors with a small compile script: http://www.masonhq.com/?Compile Then if everything is fine from the mason point of view, debug your javascript with firebug under firefox (Some similar tool may exists in safari, but I don't know them). All the best! Jerome 2009/8/13 Greg Evans <gev...@hcc.net>: > Hello, > > I am having a problem with a couple things and looking for advice. > > We have an RT installation, and I have been writing a lot of extra > things in perl that are very specific to our needs. Almost without > fail, these run from a directory within the RT installation /opt/rt3/ > local/html/NoAuth/myDir > > I admittedly am probably doing things in the absolutely most basic way > possible, but function in this case is the most important and since I > am neither a perl, javascript or Mason Guru, I am running into some > problems. I need to implement a datepicker (calendar style) within one > of the tools I am creating so I thought I could easily do it with one > of the many javascript datepicker calendars that are out there on the > web, but so far I am perplexed. I am currently trying to use > 'dhtmlxSuite' ( http://www.dhtmlx.com/ ) to accomplish this from > within my code. > > A brief outline of the code in question would be something like: > > <%ARGS> > </%ARGS> > <!--Force IE6 into quirks mode with this comment tag--> > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> > <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> > <head> > <!-- TEST CODE--> > <link rel="stylesheet" type="text/css" href="full/path/to/ > dhtmlxCalendar/codebase/dhtmlxcalendar.css"> > <script src="/full/path/to/dhtmlxCalendar/codebase/ > dhtmlxcommon.js"></script> > <script src="/full/path/to/codebase/dhtmlxcalendar.js"></script> > <script>window.dhx_globalImgPath="/full/path/to/codebase/imgs/";</ > script> > <!-- END test code--> > <meta http-equiv="Content-Type" content="text/html; > charset=iso-8859-1" /> > <title>Monitor System Raw Data</title> > <style type="text/css"> > ... > </style> > </head> > </body> > <%perl> > .. > .. > </%perl> > <div id="objId"><script>mCal = new > dhtmlxCalendarObject("objId",true);mCal.draw();</script></div> > <%perl> > .. > .. > </%perl> > </body> > </html> > > This doesn't work however, and being such a newb I don't even know > where to begin to figure out why other than that a google search > suggest I do something in my apache.conf like: > > <LocationMatch "^.js$"> > SetHandler perl-script > PerlHandler HTML::Mason::ApacheHandler > </LocationMatch> > > the actual example was: > <LocationMatch "^\/js\/\.js$"> > SetHandler perl-script > PerlHandler HTML::Mason::ApacheHandler > </LocationMatch> > which I tried replacing the '\/js\/\' with the proper path > > I am confused as to what I am doing wrong. When I look at the > "Develop" menu in safari I see errors as follows: > <!DOCTYPE html > > SyntaxError: Parse error > > PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> > <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" > lang="en"><head> > <title>Page not found</title> > > Anyway, any help appreciated... > > Regards, > > > Greg Evans > > > > > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Mason-users mailing list > Mason-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/mason-users > -- Jerome Eteve. Chat with me live at http://www.eteve.net jer...@eteve.net -- Jerome Eteve. Chat with me live at http://www.eteve.net jer...@eteve.net ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Mason-users mailing list Mason-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mason-users