From: Neil F. <nei...@ya...> - 2010-10-25 07:28:05
|
Hi Guys. Ok I have been thinkking about this. Currently our biggest problem is that the HTML is currently defined in CGI/C programs. The problem with this is: 1) You have to modify the C/CGI programs to modify the HTML for your site. 2) When a new Xymon version is released you loose either your work or have to find someway to rework it. From what I can gather there is not a lot of people on the list with JAVA/PHP skills. This limits our capability to do work with server side technology. My demo was only suppose to show case the JQuery client side technology. For me having a client side library is of great importance as it will help speed up development without having to implment major chanes on the server side. JQuery allows for skinning is compatible with most broswer and allows for us to do AJAXIFY the client side. My idea right now is that we should move all the HTML out of the source code into files that is read by the C application so we can easily modify the HTML being generated and not have to recompile the "web engine" part of Xymon. Thus we have HTML templates in text files. With JQuery we can create a ajax periodic refresher that updates the pages every 1 minute say. This is a couple of lines of code. However instead of returning XML or JSON the AJAX call can return the HTML that is being output. Thus we do AHAH(Asynhcronous Javascript and HTML). We can replace the old HTML with the returned HTML. This would be a relatively easy change I think. We dont even have to modify the HTML now. I would seriously like to propose JQuery as the client side library as the library is mature, well support and not tied down to a particular server side technology at all. It is easy to learn and very easy to use. To Hernik: In the source code all the web page generation is done by the source located in the web folder? I can start looking at moving the HTML into files so we can read from the files instead of having it hard coded in the C files. Once we have the HTML outside the C files we can start making some changes to the actuall HTML to experiment with different layouts tools etc without having to recompile etc. Regards Neil PS I hope I explained it clearly enough. ________________________________ From: Buchan Milne <bg...@st...> To: xym...@li... Sent: Fri, October 22, 2010 6:26:24 PM Subject: Re: [Xymon-developer] Fw: Sneak Peek On Friday, 22 October 2010 15:16:42 Jerald Sheets wrote: > On Oct 22, 2010, at 9:57 AM, Henrik Størner wrote: > > 3) It would be really nice if a user could define their own way of > > > > looking at the servers - basically letting them build their own > > page by picking servers from the set of servers monitored. > > This would of course require that we have some user/account > > definition stored in Xymon... > > I like this. The user admin thing should be easy enough. You could even > use the htpasswd utility to get your encrypted pass, preventing the need > to grab something new to handle it. (or write it) Please please please no. Rather pick a framework which already has a comprehensive authentication and authorization implementation. Many organisations no longer allow application-specific user database stores (and htpasswd can't satisfy requirements for many organisations that do allow application-specific user databases, such as password expiry, quality checks, history etc.). Regards, Buchan ------------------------------------------------------------------------------ Nokia and AT&T present the 2010 Calling All Innovators-North America contest Create new apps & games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev _______________________________________________ Xymon-developer mailing list Xym...@li... https://lists.sourceforge.net/lists/listinfo/xymon-developer |