Tag Archives: javascript

Hiding the “Welcome to your new WordPress site” message

Sitting here working on setting up a WordPress network and hit a snag. New sites have a giant “Welcome to your new WordPress site” message when someone logs in for the first time. Now, I’m not against the message; and … Continue reading

Posted in Blogging, Programming | Tagged , , , , | Leave a comment

Datatables jQuery plugin – Refresh table

Sometimes I try and make things way too hard. One of the things that a web app I’m working on needs is the ability to do an advanced search. It’s using the outstanding DataTables plugin for jQuery which takes care … Continue reading

Posted in Programming | Tagged , , | Leave a comment

Double click on file in Chrome developer tools

How did I not know this already? I’m working on a web app that’s pretty Ajax heavy so I’ve got the Chrome developer tools window opened up to the Network tab so I can see what’s going on. By accident … Continue reading

Posted in Programming | Tagged , , | Leave a comment

Adding a label when placeholder isn’t supported by browser

I’m sitting here working on a JavaScript heavy web app, and it has a few forms that are large enough that the placeholder attribute available in HTML 5 was the way to go. Only catch, not all browsers support placeholder … Continue reading

Posted in Programming | Tagged , | Leave a comment

Started a calculator website

Not real exciting, since there are hundreds out there on the internet. But I started a new website with, well, just two javascript calculators for now. I’ve got more planned, but that’s all that’s there for now. Two reasons for … Continue reading

Posted in Programming | Tagged , , | 1 Comment

Problem with SyntaxHighlighter and 2 character strings

Had a very odd, very frustrating issue come up trying to get SyntaxHighlighter working on a project I’m working on. When the code to be highlighted was only two characters long it would blank it out and the code would … Continue reading

Posted in Programming | Tagged | Leave a comment

Just finished up a couple of WordPress plugins

Needed a break from a larger web app I’m working on and this weekend kicked out a couple of WordPress plugins that I’ve had on my idea file for a while now. The first is called rTwit and lets you … Continue reading

Posted in Programming | Tagged , , , , , , , , , | Leave a comment

JavaScript version of PHP __FILE__ or __DIR__

This is one of those issues I keep coming back to.  I need a way to get the path of the current JavaScript file.  Something analogous to the PHP __DIR__ constant or dirname(__FILE__). Found something close on Stack Overflow.  The … Continue reading

Posted in Programming | Tagged , , | 2 Comments

When in doubt, restart

Sure, it’s a cliche.  Computer not working?  Restart the sucker.  This time though, it paid off. I just spent the better part of this afternoon working on a JavaScript issue.  I’m using SWFUploader to handle image uploads for a web … Continue reading

Posted in Computers & Internet | Tagged , , | Leave a comment

Dynamically link to CSS with JavaScript

Needed a way to add a CSS file with JavaScript, so I went out a-Googling like I normally do.  Problem is everything I found either worked in Internet Explorer and not in FireFox or the other way around.  Nothing I … Continue reading

Posted in Internet, Programming | Tagged , | Leave a comment