My blog has moved
Please update your bookmarks and feeds for my site.
I now have a Mango Blog at:
http://www.andyjarrett.com/blog
Feed URL: http://feeds.feedburner.com/andyjarrett
Please update your bookmarks and feeds for my site.
I now have a Mango Blog at:
http://www.andyjarrett.com/blog
Feed URL: http://feeds.feedburner.com/andyjarrett
I've been using jQuery for a while now keep meaning to blog about the little bits I use often. One is creating a DIV object on the fly and loading content in to it.
Instead of having "Loading...." being displayed you can delay showing the content of the DIV until loading is completed.
Both sets of code will load on document ready. Usually I tie this kind of process to a click event to load in a page dynamically when needed.
Also don't forget you can chain these methods too and cut down on code. Taking the first example it could be written as:
I've just came across scriptalizer.com which is well worth sharing with all.
This site takes your multiple CSS files or Javascript files and compresses them into just one file.
So your CSS goes from:
to:
Or your Javascript from:
to this:
Update: This appears to be on a different port for others. As Jax pointed out you can go: Eclipse, select Help -> Help contents to get there as well :o)
I was just going into some help files of Aptana when I came across the local address for the Eclipse Help system at: http://127.0.0.1:58041/help/index.jsp
In there was a wealth of information I just didn't know was on my hard drive ... though I suppose it depends on what plug-in's you've got installed but for me I had:
references and getting started tips for Subclipse, plus ColdFusion Documentation, Using CF extensions for Flex builder (including details of RDS support), Java development user guide, plug-in guide and loads more. The Aptana section is indepth as well with documentation covering:
Check it out
Anyone who has read my blog for a while will know that I like changing it around. I've tried alot of different CSS techniques over the past few years but when it comes to tried and tested layouts check out Glish.
Layouts covered inclue:
More of a reference than anything else but below is a list of sites that offer FREE, open source, css website templates - and good ones too!
Check out more about these sites and the shake ups that have gone on in the Wikipedia
A friend was asking me about web developing coming from a design background and what limitations you have to face. They had done a lovely design using font X which only for a specific platform and wanted to know why I couldn't put it on the website in the same format. I worded a lengthy (for me) reply about the issue and thought someone else might find it helpful.
In regards to the typeface a particular font will only appear in a readers browser if they have that font installed on their computer. A prime example is Helvetica which is only available to Mac users. To get around this, the best idea is to use common fonts and group them together by similarities across different platforms i.e. Windows, Mac, Linux etc. Because of this restriction you are limited to what fonts you can use for text which is why typeface will appear different.
When developing a website you must remember that though you might have a Mac and your browser is Safari that doesn't mean that you end user(reader) has got the same set-up and that is were lies some restrictions in formatting. Browser incompatibility and display differences really comes from:
Because of this you really want to make sure you have access to the following browsers on the follow platforms:
Platforms:
Windows, Mac, Linux (though I tend to worry least about Linux)
Browsers:
Internet Explorer, version 6,7
FireFox, version 1.5 upwards
Opera, version 8 upwards
Safari, version 2 upwards
Now before anyone says anything about my site not being 100% compatible, I don't really care. Not to be harsh, but I don't have the time to make sure everyone in every format can read this. I presume that if you are reading my site you are a tech head and have access to at least one descent browser/platform combo.
Im playing around with a pure HTML site recently (no server side tech at all) and OMG how akward is the simple stuff. To make my life a little more easier I have been using Dreamweaver's templates which make managing layouts easier especially when you have forgotten a navigation link.
One thing I have been trying to do is change the colour of a selected navigation link. i.e. The navigation links are all blue except for the link to the section you are currently in which is white. I was about to do this with DWMX templates conditional statements, which can get a little messy, and awkard when putting them inline to change the href class atrribute. Doing this with CFMX or PHP is simple and thats what I wanted.
So I took a dynamic(ish) approach to the problem and decided to use Js. Reading in the page name from the window.location.pathname string I change the colour of the text. Incase anyone is interested below is the code I used, you'll note that to do this without a switch or if statement I have used the ID attribute, and made it the same as the html page.
Now and then, mainly when im creating huge forms I get CF to generate HTML.
The process is usually simple
But Firefox actually helps your here. Once you have viewed the source you can actually just hit F5 to refresh the view/code. Savin just a little bit of your sanity in the process.