// author archive

garywaddell

garywaddell has written 58 posts for garywaddell.com

Understanding Simple Positioning with CSS

While learning CSS, the one thing I kept (and keep) messing up was the ability to position elements correctly.  I found I had a hard time getting the correct way to use position absolute and relative.  The trick that I was taught was when you use position: absolute to define your specific co-ordinates (ie top: [...]

Centering with CSS

If you have a container (ie a fixed size frame) and you want to center that container in the page, the traditional, old fashioned way was to use a table or the < center > tag.  With CSS, you simple use this in your container class: margin: 0px auto; You can always use a top [...]

width:auto width:100%

Great article that explains something I know I have had issues with for CSS in the past wondering the difference between width:auto and width: 100%, but not anymore http://www.456bereastreet.com/archive/201112/the_difference_between_widthauto_and_width100/

CKEditor – Change the background color using JavaScript

I found a great article on how to change the background color of CKEditor on the fly.  This became a great approach when performing form validation: Link is here, but for a quick reference, here’s how you reference it: this.document.$.childNodes[1].childNodes[1].style.backgroundColor = ‘Blue’; this refers to your CKEditor Instance (CKEDITOR.instances['instanceName'] or CKEDITOR.instances.formFieldIdName)

Some useful Mac keyboard tips

http://www.usingmac.com/2007/11/21/mac-os-x-leopard-200-productivity-booster-hotkeys

WSWS3740E: Error: No SSL configuration is available for endpoint

You may get this error when you try and run a Java client to a SSL based web service. If you do experience this problem, you need to point to the WAS ssl.client.props file and add the cert to the chain.  You will probably be prompted, and when you do, you’ll need to answer Y [...]

Java Decompiler

Found this Java Decompiler from a colleague.  Very impressive, especially if you use Eclipse http://java.decompiler.free.fr/?q=jdgui

Getting Query String from a JSP

public String getQueryString(HttpServletRequest req) { Object reqUrlObj = req.getAttribute(“javax.servlet.forward.query_string”); StringBuffer result = new StringBuffer(“”); if (reqUrlObj != null) { result.append((String)reqUrlObj); } return result.toString(); }

Connecting to and Testing Oracle

Let me first start by saying, I am not an Oracle expert.  I learn what I need to in order to get things done.  I don’t go digging into learning Oracle proactively, frankly because I am not a huge fan of it, I still prefer DB2, but enough of that This blog simply talks about [...]

CSS Background Image Hacks

Great article on CSS some great things you can do with CSS Background Images: http://nicolasgallagher.com/css-background-image-hacks/

Categories

  • No categories

Categories