Double click on file in Chrome developer tools

Posted by & filed under Programming.

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 I double clicked on one of the files and it pulled it up in the… Read more »

Started a calculator website

Posted by & filed under Programming.

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 putting up a site, and no, lack of free time was not one of them…. Read more »

Problem with SyntaxHighlighter and 2 character strings

Posted by & filed under Programming.

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 display empty. After much digging I found this little bit of code inside of the… Read more »

Just finished up a couple of WordPress plugins

Posted by & filed under Programming.

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 embed any Twitter feed you want into a post or page. Most of the Twitter… Read more »

JavaScript version of PHP __FILE__ or __DIR__

Posted by & filed under Programming.

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 solution there gets the entire file.  A bit of substring and lastIndexOf and I had… Read more »

When in doubt, restart

Posted by & filed under Computers & Internet.

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 application of mine; and it was working flawlessly in Chrome, Opera, and IE8.  Firefox, not… Read more »

Dynamically link to CSS with JavaScript

Posted by & filed under Internet, Programming.

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 found worked in both.  So I hacked together a function of my own.  Should have… Read more »

Prototype.js, setStyle, and IE not working together

Posted by & filed under Programming.

Sometimes IE just irritates me. Ok, pretty much anytime I’m working on a web site. Especially when it involves Javascript or DOM. For the past couple of hours I’ve been scouring the internet looking for a solution to the prototype method setStyle not working in IE8. I was getting an ‘Object does not support this… Read more »