'Jumping over the hurdles' and 'how i did that ?'

27 October 2011 Comments Off

Making an webpage editable instantly

If you want to make a webpage content editable instantly and do not want to use any addins, tools then just run this script in the browser bar after opening the webpage. javascript:document.body.contentEditable=’true’; document.designMode=’on’; void 0 That is it. You can do any changes to the page content and you may even save it(Fire Fox) [...]

19 May 2011 Comments Off

Boolean to Number in ColdFusion

I’m fan of “write less, do more”. Well not related JQuery, but the sentence implementation itself. Today while writing a code – i came across a logic where i have to set a value 1 or 0 based on a boolean expression. if (something eq something){ set a = 1; } else { set a [...]

28 March 2011 Comments Off

javascript redirect to www in url string

How do redirect your page to a www included url string if the users does not do so.

30 November 2010 Comments Off

placing a delay in batch file programming

One may need some typical logic in adding a delay to the batch file execution process. if choice, pause is not your desired solution then you can try using PING.

Just a simple example to see how it can be useful.

8 November 2010 Comments Off

Some Unknown things to me in CSS

“Basically I’m a web Pro.” Though I just learn things day to day when and where I face a wall, but still that one liner keeps me hungry to retain the challenge for the meaning it brings. Today Its a challenge in CSS that made me learn two unknown things

4 November 2010 Comments Off

order by in a oracle sub query error

Oracle JUST DOES NOT allow you to write ORDER BY clause in a sub-query which is defined in WHERE clause, but it rather allows you to use the ORDER BY clause in sub-query that is just defined in a simple FROM clause. Weird enough it gives you a ‘ORA-00907: missing right parenthesis’ error.

the documentation readings reveal that When you write any sub-query in the FROM clause, it is treated or say it becomes an inline view and so Oracle does not allow such things on the inline view.

Tags:
25 May 2010 Comments Off

The Table row display fix

IE and FF behave different when they are dealing with table row display:block style specification. IE understands “block”, but FF needs a “table-row”. Simple way to overcome this browser specific specification will be to leave it as “” – blank. Just a style.display=”"

Tags:
18 March 2010 Comments Off

Using CSS to change letter case

I was in the opinion that not all but somethings are confined to JavaScript only.. in comparison to CSS. Today i moved a inch far from that statement. var myStr = ‘javascript’; //to change to upper case myStr = myStr.toUpperCase(); This is the traditional way, I used to follow; on a keyup, used to write [...]

Tags:
24 December 2009 Comments Off

Javascript Trim

The fastest(!) way to trim the strings in JS function String.prototype.trim () { var str = this.replace(/^\s\s*/, ”),ws = /\s/,i = str.length; while (ws.test(str.charAt(–i))); return str.slice(0, i + 1); } ! Credit.I made it available to the String prototype.

18 December 2009 Comments Off

Align text upright – vertical up align

Some times you will be facing a requirement where the text need to be shown in a upright position. In such cases, IE listens to you. Not other browsers. Here is how.. .uprighttext { filter: flipv fliph; writing-mode: tb-rl; } Remember..It works only in IE

Tags: