it works fine in IE but doesnt work at all in Firefox, can anyone tell me how I can get it working in firefox.
In IExplorer, you have to the document.documentElement.clientHeight and the document.documentElement.clientWidth properties. In all other browsers, including firefox, use the window.innerWidth and window.innerHeight properties. To diifer between the two browsers, use the code: if(navigator.appName == "Microsoft Internet Explorer")
//clientWidth properties and code here
//innerWidth properties and code here
I was having the same problem with this script, and it was driving me crazy! I compared the source code on the Dynamic Drive demo page, and combed through it to find the problem. The problem is not with the script itself, but with the DOCTYPE tag at the top of your page. Remove the <DOCTYPE> tag completely. The tag should read <html>, and then the script should work fine in Firefox.
well what elements and attttributes atre being phased out ?
so i dont have to worry about it and just avoid them instead where can i get this kind of information on the ones that are being fased out does anyone know? caus ei hate doctypes
I am writing a java program that needs to execute shell commands, so I wrote a function that would take the command to execute as a string (ie: "mkdir ~/Folder1") and execute that command with the shell. Here is the function:
Runtime run = Runtime.getRuntime();
Process pr = ...
Hi I'm having a problem implementing a mini shopping cart drop down in the header to show the user all the products they have in their shopping cart. It seems the only solution for this is Ajax, and I've looked all over and can't find anything that I could possibly ...