background preloader


Facebook Twitter


Imaging. Formatting date to client timezone. Unlike a locale information that is passed by browsers via HTTP header, there is no straightforward way to retrieve the information about client timezone offset.I also have not found any ready-to-use solutions to workaround this in web and one day when we've been posted the bug that our SMS sending times appears to be in the server timezone.

Formatting date to client timezone

I've found the solution.The idea is pretty easy, the only way you can pass client timezone to the server is by calculating it using var tzo = new Date().getTimezoneOffset(); Next step - you need to pass it to the server, there is a number of ways to do it but they all have one drawback, you cannot format dates from the just loaded page, since script executes on the client. Anyway the options are: Cookie and AJAX. Cookie is easier and seems that AJAX is overkill here, that is why I've chosen cookie way.

The whole code on the client looks like <c:if test="${sessionScope['sonoportal.timezoneOffset'] == null}"><! Package com.sonopia.sonoportal.web.filter; Crop and resize images. Javascript Examples // HTML forms improvement tips. TinyMCE Javascript Content Editor by Moxiecode Systems AB. Browse Design Job Listings. a4j - (Amazon AWS for Java) Developed by Ken Cochrane. 20 pro tips - .net magazine. Net magazine is the number one choice for the professional web designer and developer.

20 pro tips - .net magazine

It's here that you find out about the latest new web trends, technologies and techniques – all in one handy package. Each issue boasts a wealth of expert tips and advice, including in-depth features and over 30 pages of advanced front and backend tutorials on subjects as diverse as CSS, HTML, JavaScript, WordPress, PHP, and plenty more. net compiles the hottest new sites from around the web, and being the voice of web design, our mission is to source the best articles written by the best people in the industry and feature interviews and opinions crammed with inspiration and creative advice. In short, If you're serious about web design and development, then net is the magazine for you. Editorial Oliver Lindberg, editor, Ruth Hamilton, production editor, Mike Brennan, art editor, Advertising.

Country tag. UK Company Formation - Offshore Company Formations and Registrat. [#DISPL-92] Add support for javascript events on &lt;tr&gt; elem. I have done a similar thing as above but expanded on it.

[#DISPL-92] Add support for javascript events on &lt;tr&gt; elem

You can only highlight one row. We wanted to do that coz we only we wanted to apply some kind of action to that row only. /** * This JavaScript performs the task of highlighting a row in a displayTag table. . * The javascript is called by adding the following line in your JSP page after the * declaration of your display tag * <script type="text/javascript">highlightTableRows("searchResultTO");</script> * An example is as follows: * <html> * <body> * <displaytag:table name="${sessionScope.searchResultList}" id="searchResultTO"/> * <script type="text/javascript">highlightTableRows("searchResultTO");</script> * </body> * </html> */ /** * This function after the displayTag table has been created adds a onclick event * handler to each row in the table.

Rows[i].onmouseout = function() {''; }; Mastek Canoo Web Test.