Web Dev
jQuery Ajax
Making calls to the website’s database without page refreshes is pretty easy with jQuery. There are several functions that can be used, including load, get, and post: Load load() provides the ability to load an html file into an element: $(‘#divContent’).load(‘content_file.html’); With load(), you can even specify specific areas of a file to display. The […]
Read MorejQuery Events
Events Run a function (ie: ‘functionName’) when the mouse goes over the ‘a’ tag: $(‘a’).mouseover(functionName); Mouse Events click dblclick mousedown mouseup mouseover mouseout mousemove Document/Window Events load resize scroll unload Form Events submit reset change focus blur Keyboard Events keypress keydown keyup Getting The ID Of The Element That Triggerd An Event Use the ‘event.target.id’ […]
Read MoreGetting Started With jQuery
Utilizing jQuery actually makes working with javascript somewhat pleasant. It’s pretty easy to get started. To begin using jQuery, connect to the jquery script, and place your code within the document.ready function. It’s best to link to the latest version of jQuery that is hosted by Google. By linking to Google’s version, it will likely […]
Read MoreServing Websites to Other Computers on a Local Network with XAMPP
I have been using XAMPP to test PHP websites on my local computer for years, but since adding another computer to my small office, I have encountered the need to set up my computer as a server to host the pages that could then be viewed from other computers on my network. Turns out, it’s […]
Read MoreTop Margin Stolen From Child Element And Added to Parent (Margin Collapsing)
One of the biggest frustrations that I have encountered with my time dealing with CSS is the Collapsing Margin Bug. It technically isn’t a bug, because for some reason, this was actually intentional, but here it goes: The Issue: For this example, imagine that you have a child element (layer, paragraph text, heading, etc…) contained […]
Read More