Grails

Appending anchor tag to the url on server side using fragment parameter in Grails

Hi, Recently I had come across one of the cool grails redirect parameter named 'fragment' providing cool feature of forming relative link with an anchor tag/name. Generally, we can simply call [groovy]window.location.href=http://yourLink#anchorName[/groovy] It will focus you to the anchor name specified in relative link means...

by Tarun Pareek
Tag: HTML/UI/CSS
28-Aug-2012

Technology

Replace All using JQuery and Regex

I recently found out that use of Regex with jQuery and replace function can turn out to be a very powerful tool for replacing/loading data in html dynamically The use of replace is made like [js] var a = "Some text here text"; a=a.replace(/text/g,"one") [/js] This will replace all "text" with "one" Now...

by Gaurav Sharma
Tag: HTML/UI/CSS
24-Aug-2012

Technology

Sprite Up !!! Automate your process of creating sprites.

Hi all, In the past few days, I was given a push to find a suitable method that allowed us to automate the much needed but  painstaking of creating sprites for webpages to improve their performance.The problem was that going through the process of spriting images was a tedious process for a person not used to Photoshop tools...

by Manoj Mohan
Tag: HTML/UI/CSS
23-Jun-2011

Technology

clearfix css hack

The clearfix hack, or “easy-clearing” hack, is a useful method of clearing float(left, right) effort. The clearfix hack works great, but the browsers that it targets are either obsolete or well on their way. Specifically, Internet Explorer 5 for Mac is now history, so there is no reason to bother with it when using the clearfix...

by Umar
Tag: HTML/UI/CSS
13-Nov-2010

Technology

canvas

The HTML <canvas> tag is used for creating graphics on the fly. It can be used for rendering graphs, game graphics, or other visual images.   To draw on the canvas, the <canvas> tag is used in conjunction with the getContext(contextId) method.   Any content between the <canvas></canvas> tags is...

by Umar
Tag: HTML/UI/CSS
07-Sep-2010

Technology

IE 6/7 Z-index issue

...

by Hitesh Bhatia
Tag: HTML/UI/CSS
03-Jun-2010

Technology

Alfresco : Render html code written in tinymce

Hi, We were using tinymce on alfresco labs 3 stable version. Lately, client came up with the new requirement to display video's in the page rendered from text given in tinymce. Since coupling between alfresco and current version of tinymce was so tight, we did not include the latest version of tinymce, which might have supported...

by Amit Jain
Tag: HTML/UI/CSS
18-Aug-2009

Grails

Restricting all URLs to end with .html in a Grails Application

While going through the grails-users mailing list, I found a question about restricting all URLs to end with '.html' & returning Error 404 for the default mappings. After spending some time, I was able to build a sample CRUD application restricting URLs to end with .html. I did the following steps for the same: 1. Create a new...

by Aman Aggarwal
Tag: HTML/UI/CSS
03-Apr-2009