cross-browser

problem with form submit

hi , i have a form that works perfectly fine with mozilla and IE but on google chrome there is a slight problem i am using ajax to submit my form that is there is no submit button ,in IE and Mozilla its working fine but in google chrome when i press enter the form submits and the page redirects to the main page( this is another problem ...

Internet Explorer 7 - Javascript 'undefined' not testing

Hey there I'm having trouble with some JS in IE7. I'm testing to see if a certain object has a className (its possibly an HTMLElement object from the DOM) assigned. Now, testing the page in Firefox tells me that Yes, the variable is undefined (all my tests below do the Alert(). In IE, none of the tests pass, the variable gets assigne...

Cross-Browser Window Resize Event - JavaScript / jQuery

What is the correct (modern) method for tapping into the window resize event that works in Firefox, WebKit, and IE? and can you turn both scrollbars on/off? ...

Javascript disabled best practices?

I would like to know if anyone optimizes their web pages to have some friendly behavior if the user has Javascript disabled. Are there any tricks to provide some pseudo-scripting behavior in such instances? I'm talking basic things like opening links in new windows. I would imagine there is still a lot you can do without Javascript. ...

How can i design a site for mobile phones

How can i start the development of a site that can be browse from mobile phones? For example, if you browse Gmail site from an iPhone the site looks different from the normal site. You have to design two differents sites to do this? How can I know if the site is accessed by a mobile browser? ...

Tab order issue in IE with initial Javascript select of field in form

I'm trying to achieve the following behaviour in html: user is presented with a form involving several text fields. The fields are populated with default values, but in many cases the user will wish to enter their own. When the page loads, the value in the first field is selected, so the user can either replace it by simply starting t...

How can I make html padding that looks the same in different browsers?

I have a blog, www.realcanadianenglish.blogspot.com. I use Firefox to write it. Sometimes I check the blog using Internet Explorer. With the later it shows a gap between the picture and the text sometimes. Can I change the HTML code to fix this? Why is there a difference between the two: Explorer and Firefox? ...

Which of these cross-browser Javascript functions performs better?

As a rule of thumb, which of these methods of writing cross-browser Javascript functions will perform better? Method 1 function MyFunction() { if (document.browserSpecificProperty) doSomethingWith(document.browserSpecificProperty); else doSomethingWith(document.someOtherProperty); } Method 2 var MyFunction; if...

Is IE the only web browser that requires <script></script> and hates <script/>?

How awful is that, after an hour of hunting and pecking, I figured I might as well contribute to the world the awful truth that the only reason your javascript failed to work in IE is because you thought you could pull a fast one on it and use your fancy xHTML shortcut. I've read the dtd and I can't really find any basis for IE being s...

When to disable "save password" functionality on your login form?

I have a public-facing website that is used to manage business infrastructure equipment for my clients. A security breach on this website could cause expensive problems for clients. A number of different websites--mostly banks, health care, and government--disable the "save password" dialog from appearing in Firefox, IE, and other brows...

Is there a way to do browser specific conditional CSS inside a *.css file?

Is there a way to do browser specific conditional CSS inside a *.css file? I want to define all of the styles inside of the same physical file. ...

Install CAB file from FireFox or command line

I have a CAB file that contains a few DLLs, and an OCX ActiveX control, an OSD describing the contents, and an INF for installing the DLLs and ActiveX control. These are coming from a 3rd party, so I can't control anything except how they are distributed to the client. They are being used within a Java applet, and they work cross brows...

jQuery text() call preserves newlines in Firefox but not in IE

I'm doing: alert($("#div").text()); on something like this: <div id="div"> &lt;div&gt; Some text &lt;div&gt; </div> Why the escaped content? Because it is sometimes malformed and I don't want it interfering with or breaking the rest of the document. In FF it shows up preserving newlines. In IE7 it doesn't. I need to preserve th...

How can I cause the browser to navigate to a given URL from a Java applet?

I have a Java applet consisting of a wizard-like form with three steps. At the final step, the user can click a "finish" button. I want that button to cause the web browser to navigate to a specific URL. Question: Is there a way to cause the browser to navigate to a specific URL, in such a way that it will work across all modern browser...

the contents of iframe doesn't print in google chrome

i have a page which calls some contents in an iframe and when i try to print the contents of the iframe it prints blank in google chrome , but its working fine in mozilla and explorer how can i make it work in google chrome also? ...

Tables looking good in Firefox but not IE

Hello, First time question here. I have a site that I built around tables, I know not good, but it has been done. It looks fine in Firefox, but the text is all over the place in IE. Link is http://www.mothershipinc.com Warning: contains music Here is the code for the index page: <?php include "db.php"; function imageResize($width,...

Browser Java Plugin Detection

What is the preferred method to determine if the Sun Java Plugin is installed in the browser? ...

Can I detect IE6 with PHP?

Is there a way to use PHP to detect if the page is being loaded using IE6? ...

IE 6 & IE 7 Z-Index Problem

http://madisonlane.businesscatalyst.com I'm trying to get the div#sign-post to sit above the div#bottom. This works fine in all browsers except IE6 & IE7. Can anyone see what the problem is here? Also IE6 is displaying an additional 198px to the top of div#bottom. ...

Strange IE7 Spacing Appearing Under DIV

http://www.downloadadeal.com.au/ The site above fine in all browsers except IE7 where a strange space appears between the content and the footer at the bottom of the layout? The two footer lines should match up. Has anybody experienced unexplained spacing before? ...