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 [email protected] https://lists.sourceforge.net/lists/listinfo/mason-users

