Archive for December, 2007

27
Dec

Weird Firefox Bug…dialog has no properties

456 views 313 words.

I came across a rather interesting bug today while working on nFront Security’s new website (it’s going to be bad ass by the way.)

We want to track downloads, obviously, to see who is really interested and who isn’t. In other words, who we want to spend time and money on pursuing based on the fact that they download. Enough, business talk. To do this, I just created an AJAX call every time someone clicked on a download link. The php script is passed the versionID and tracks the logged in user’s unique ID along with the time.

Here is where the bug comes into play. Originally I just had the link as a standard <a href="fileSource" onClick="updateDownloads()">. Firefox doesn’t seem to like this very much. Here is the error I get on the javascript console.

It seems that while the AJAX request is occuring (to update the downloads table), it is trying to request this file to download. Mind you, in IE, this works perfectly. The logic would have to be the IE implmenents some sort of queuing, while Firefox has a bug somewhere regarding this.

The solution was to call the download AFTER the AJAX call is complete. I use Prototype, so that’s no big deal. Just call

location.href = downloadLink

I hope that I help at least one person with this problem. It seems like this would be something that would be done regularly, but I guess not since I couldn’t find a single forum topic, blog post, or anything regarding it.

Oh yeah..HAPPY HOLIDAYS (belated of course)

Sphere: Related Content

23
Dec

Microsoft Does Virtual PC! Are you serious?! Linux Heaven!

383 views 297 words.

I honestly can not believe I haven’t heard about this much. I’m a social bookmark fiend and have yet to really hear….alright, alright! I guess I’ll be the first to try and make this thing as public as possible.

Microsoft has had a virtualization solution for a while now, but their newest release opens up some pretty cool options. Virtual PC 2007 from Microsoft is FREE! Yes, the juggernaut of software has released an invaluable tool for all us computer nerds out there. You can download it HERE. They even offer some pre-built OS’s that you can run. One has a version of IE 6…talk about a dream come tru to web designers! No more asking your buddy with the old machine to check out your site…just install Virtual PC and add the pre-build VM.

Now..to the really good stuff! LINUX WORKS on this. Mind you, it takes some trickeration to make Ubuntu (Gutsy Ribbon Gibbon…haha..typo fix) to work right. But a little browsing through some forums and you’ll be up and running. By the way, the mouse and display issues are addressed HERE.

I also came across a pretty interesting site that lists all the OS’s and which ones work and which distros have some issues. What worked, and what doesn’t!

I hope I helped a few people out..and HEY! What’s better than FREE, especially coming from Microsoft. Enjoy! And I want to hear what kinda of crazy machines you get running.

Sphere: Related Content