cross-browser

How to find which section of a website is not compatible with new browsers?

I have been tasked to fix a really old website (.net aspx vb). The website currently is not running well in IE8, Firefox, Chrome. The menus are displaying funny and some images are not correct, and in Chrome the complete header with menus and all is missing. I am not a vb guy, and I have no idea where to start looking. What will b...

How to avoid internet explorer first button selection?

I have one form with several text fields and one button. When i enter one of the text fields, the submit button become highlighted and if i press enter while typing, the button is pressed, so i got an unexpecte behaviour because my page is submitted. Firefox doesn't act such a way. Is there some attribute or configuration to avoid this u...

IE8 Big Problem! Not displaying site properly.

Hi, i am an amateur website developer and am not that informed on the differences in site rendering by the various browsers. I use firefox to develop and I guess I shouldn't be. http://womenssoccerclub.com/pages/twocolumn_2.php?t=April%20-%20May%202009%20homepage This site (in IE8) is not displaying anything to what it looks like in fi...

How can I identify if a webpage is an HTML one or of a different mimetype (.mp3,.jpeg) via the DOM across all browsers?

I want to determine the mimetype of a webpage. I am specifically looking for a statement like this, which works for Firefox: if (document.contentType == 'text/html') { performX(); } else { performY(); } However, a statement which works across all browsers is preferred. Some google result suggested me this, but it fail...

troubleshoot ie flash 404

Hello I am having some trouble with a clients website. He uses wimpy player to load a playlist of his own hosted music. I've set up a test to demonstrate the behavior here . If you visit the site in firefox, everything works. If you visit in IE it doesn't. Further investigation shows that it can read the playlist, and makes a valid reque...

What is the most compatible way to close a child window and notify its parent window in JavaScript?

I think my title was informative enough. :) I close the child window like this: self.close(); Just before this, I want the parent window to know that the child has closed. I am making use of this: window.opener.startLoad(); The above will run a function that is on the parent window that I need it to run upon the child window closi...

Getting a Flash Movie with Javascript in IE

I have a flash movie that I need to get with javascript. Here is how I embed it using swf object: <div id="ap1_mod"></div> <script type="text/javascript"> var flashvars = { mp3Path: "stop", artistName : "", trackName : "" }; var params = { codebase: 'http://download.macromedia.com/pub/shockwave/cabs/fla...

Jquery browser-compatibality issue, what am I doing wrong?

Hello SO Gus, Here's another problem. I'm using JQuery-1 to add a simple interactivity to one of my pages. In short, the page contains a search text box at the top right, on document.ready I simply call an inputHint() function that adds the phrase "search products" to my textbox. When the user clicks this textbox, I call another functio...

jquery GET request not working in IE

Hi, I have the following jquery code: function update(){ $.get("getlatest.php", { id: $.cookie('last_post_id') }, function(response){ $('#board_posts').prepend(response); $('.incoming_post').slideDown("slow").effect("highlight", {}, 3000); $('.incoming_post').toggleClass("incoming_post").addCl...

How do I align a div at the bottom right corner of a web page even if the content is less?

I have this extremely simple splash page here: http://iph0wnz.com It has the main graphic in the middle, followed by my 'a.' logo at the bottom right. I want that logo to be aligned to the bottom right hand of the entire page, which means that if there is a lot of text content in the page, it appears after all that (i.e. it doesn't hove...

Why Does FireFox Not Include the .xml Extension when Downloading a File?

OK. I'm sure it does download XML files with the .xml extension, but I'm wondering what is missing in the code here to cause the .xml extenstion to be missing from the downloaded file. Note: This works in IE 6+ (didn't try WebKit based browsers or Opera) private void GenerateXmlAttachment(string xmlInStringFormat, string fileName) { ...

Can I detect when a user gets to a page using the back button?

Edit: What I really need to know is if there is any javascript event that will reliably fire when the user arrives at the page via the back button. I tried the onload event for the body element, but it doesn't fire on Firefox or Safari. I'm working with some old code that tries to prevent double-submission of form data by disabling ...

IE image spacing issue

I have an image above a div, and IE (7, and presumably 6) insists on putting a space between the two. How can I get rid of that space? <html> <body> <img src="http://www.google.com/intl/en_ALL/images/logo.gif" style="margin: 0; padding: 0; border: solid 1px black" /> <div style="margin: 0; padding: 0; border: solid 1px ...

Safari doesn't set Cookie but IE / FF does.

Hi all, I found a strange cookie problem on safari. If you surf to http://2much.ch you can enter with FF/IE and surf inside the site. But if you use safari, you can enter only once; you can't surf inside the site. I found that Safari doesn't set the entered cookie, but FF/IE does. What is wrong here? ...

css submit button / a href cross-browser

Hello. I want my submit buttons + links to look as buttons and the same in all browsers. Firefox 3.5 plays nice. But IE6,7,8 have all different looks. Can you help me with that (apparently) simple task? <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; <html xm...

How do you specify a css property to be applied only if the browser is IE in the stylesheet?

I know in order to include a browser specific css file you can do the following <!--[if IE]> <link rel="stylesheet" type="text/css" href="style.css" /> <!--> But is there a way to do this in the actually stylesheet itself? EDIT Thanks for the replies, I am just going to build a new IE specific stylesheet and override what I nee...

XHTML Not Displaying in IE6, 7, 8 or FF3.5.1 - but ok in Firefox 3.0.1.

I have an XML file that references an XSL file (like ya do) that until lately has generated perfectly acceptable HTML output, regardless of browser. A new requirement has come down from on high for XHTML output for compatibility with another product. Ok, fine - I reworked my stylesheet to produce (W3C Validated) XHTML. Previously, I w...

Javascript onmouseover not working with doctype in firefox?

I am using the JavaScript onmouseover event for the menu on my website, but it does not work in firefox when I declare a doctype. And if i don't declare a doctype IE displays the page wrong. Here is the method that I used. loadImage1 = new Image(); loadImage1.src = "http://broken.gif"; staticImage1 = new Image(); staticImage1.src = "ht...

Are there any trick to append ... by CSS ?

Let see my problem I have an element which its width = 50px and I have my string to put in that element "This text is longer than 50px and will be display in two or more lines" What I want to get in my element is the text with 50px width + ... like this : This text is longer than 50px and will... Are there any good or possible way ...

Problem passing parameters via Iframe in IE

Hi, I'm trying to execute an HTTP GET from my website to another website that is brought in via iframe. On Firefox, you can see in the source that the correct url is in the iframe src along with it's correct parameters-- and it works. On IE, you can see in the source that the correct url is in the iframe src along with it's correct pa...