Mcloide's resources library

All about PHP, Javascript, concepts and development

Posts Tagged ‘firefox’

Context menu disable with JQuery

Posted by mcloide on August 18, 2009

I have found a ton of tutorials teaching how to disable the context menu on browsers and in all of them I have found one flaw:

Does not work with Opera

It’s an anoying situation that got me thinking and searching for a solution through most part of the day and with no luck.

The function is simple:

$(document).ready(function()
{
$(document).bind(“contextmenu”, function(e)
{
return false;
});
});

and it works with (tested):

and it does not work with (tested)

After a lot of research I have found why it does not work with Opera:

Opera (9.5) has an option to allow scripts to detect right-clicks, but it is disabled by default. Furthermore, Opera still doesn’t allow JavaScript to disable the browser’s default context menu which causes a usability conflict.

You can try to disable by disabling the mousedown event filtering only for Opera, but I do suggest a lot testing on this.

To complete just an extra note: this function does not bind the documents inside an iframe, so in this case you should complete the function by disabling the context menu in the iframe document as well.

Posted in Ajax, Javascript, development, linux, resources | Tagged: , , , , , , , , , , , , , | Leave a Comment »

Fine tune your Firefox

Posted by mcloide on July 14, 2009

This video from show some great tips and tricks to fine tune your Firefox. It’s already not fair for the other browsers to know that Firefox is already the faster browser, and with some fine tunning, it feels like a jet.

The guy on the video reminds me some old teachers I had, but the legends are much fun. Besides that, all the tips he gave to fine tune your Firefox works very well. Check it out.

http://blogs.techrepublic.com.com/itdojo/?p=815&tag=nl.e101

Posted in cool | Tagged: , , , , , , , , , , | 2 Comments »

Javascript LIbrary Detector

Posted by mcloide on April 13, 2009

I was scooping out a blog from a friend of mine today, Smooka Blog, and I found this interesting post from a Firefox plugin for detecting Javascript libraries. It’s useful in many ways since you can learn if your project have correctly loaded the library or what library does the site that you are visiting have.

Anyway, cool post, check it out: http://www.smooka.com/blog/2009/03/26/javascript-library-detector/#more-52

Posted in Javascript, development, resources | Tagged: , , , , | Leave a Comment »

Microsoft Releases IE 8 Today

Posted by mcloide on March 19, 2009

According to the Wall Street Journal, Microsoft will release today, at noon, EDT the new IE 8 (link to IE8 beta page – will update when the new one comes).

This will give Microsoft a slightly advantage over it’s principal competitor Firefox 3.5.

As any web developer I’m not as much excited as any user should be, since this will be one more IE to test web applications (IE 6 and 7 still up  :[ ).

Let’s now wait for the new IE and see how it will handle on Vista and XP.

Posted in development | Tagged: , , , , , , | Leave a Comment »