Using Javascript to get an element’s style

There are different ways to get the style of an HTML element using Javascript. The typical way that developers use to access styles of an element is the property. It is the simplest way to access style properties. However, the property has a limitation that can affect your code if you do no account for it. The property only accesses inline styles of an element, that is, styles that are specified in the style attribute of the element’s tag on the webpage. This creates a problem for most situations where the style is specified in a separate stylesheet CSS file or in a CSS style declaration in the head of the webpage. Fortunately, there is a simple way to deal with this in Javascript. Continue reading “Using Javascript to get an element’s style”

How to install Phing on WAMP Server 64 bit

I have been doing my Joomla extension development on my Macbook Pro for the last 8 years, and my setup involves some very simple tools. On my Mac, I used MAMP and BBEdit. My workflow involves using Git for version control, MAMP for testing my extension on Joomla, and Phing for building the extension. Recently, I have decided to migrate some of the work to a Windows 10 laptop, and I decided to go with WAMP Server 3.1.6 64 bit as my server testing environment.

So after installing WAMP Server on my Windows machine, I needed to setup Phing. I wanted to share my process of setting it up because I encountered some problems along the way that took quite a bit of searching to figure out. So, I hope that my steps below will help someone to have a smooth installation of Phing on their Windows machine. Continue reading “How to install Phing on WAMP Server 64 bit”