JavaScript Code, Web

AJAX and XML

Lately I've become obsessed with realtime updates to pages via AJAX & XML. I've been drafting a simple solution, and will be posting it shortly. Stay tuned! ps – If I get enough AJAX related code, I'll create a new category
CSS Code, DHTML Code, JavaScript Code

Make an object stay on the page when scrolling

It's pretty common to see a nav bar or some persistent menu/object floating on a web page as you scroll dow it. Well here's the code to do that yourself. You can set the specific location for the floating object, and when the web page is scrolled down or up the object will float to that position as slow or fast as you set it...
JavaScript Code, PHP Code

Detect resolution and resize contents to fit!

It can be a pain to deliver one unified interface or data table that works well on all resolutions. Either it looks tiny on large resolutions, or people with lower resolutions are forced to scroll. Neither or thse are great for usability. So here is some JavaScript and PHP code that can detect the resolution of a user's monitor, refresh the page with that data,...
DHTML Code, JavaScript Code, Web

Easily create recurring PayPal subscription URLs

Well, I've recently had to create some URLs for people to send me recurring PayPal payments. I find that if you have to modify it at all for a different subscription it can be a pain, gettting lost in the URL encoded string and PayPal parameters. So I whipped up this little JavaScript form to easily craft the recurring payment URLs. Here you go, just...
JavaScript Code

Count the number of words with JavaScript

Sometimes you need a quick way to count the number of words in a string. Suppose you've typed out a blog post or essay and you want to ensure the minimum word count. Well, you could past into Word or OpenOffice, but this is much quicker! This handy little code snippet provides a textarea and the inline JavaScript to display the number of words as...