cross-browser

How to test browser Compatibility in Linux

I used Microsoft XP as operation system for web design and development for 1 year. But now I am switching to Ubuntu (linux). For Windows OS we have Microsoft’s SuperPreview for testing compatibility in different versions of IE. Please specify the list of such utilities or tools which provide such support in Linux, specifically for Ubu...

How to write an NPAPI plugin with functionality of WScript.Shell

I am very new to Web development, and have been writing some javascript that makes use of WScript.Shell via ActiveX. I am aware that browsers other than IE don't support ActiveX though. After doing some digging through Google, I have discovered that I may be able to do something similar on all web kit based browsers via NPAPI. I have n...

Why do ie versions coexist in parallel?

I mean, Firefox, Opera, Safari, Chrome, and basically every browser instead of IE has a single 'last build' version which can be updated-to from the browser itself, why does IE need to have IE6, IE7, IE8 coexisting, instead of providing an updater so everyone uses the same version (ideally IE8), which doesn't have as many problems as fo...

Preload javascript and css components in landing page

Hello, I want to preload a JS file and a CSS file from the landing page to optimize the main site load, after de conversion in the landing. I was looking for information about this and finally tried to get this done using: var xhr = new XMLHttpRequest(); xhr.open('GET', 'jsUrl'); xhr.send(''); xhr = new XMLHttpRequest()...

JQuery not Working in chrome?

Hi Everyone! I am trying to change the background-image of a div by altering it's CSS via Jquery and I got it to work in FireFox but for some reason its not doing anything in chrome, I tried clearing the cache but still no luck, there's no errors in the console either, Here's my code: $(document).ready(function() { var bg = 1; $(...

browser compatibility issue

hi all, see code below.. <div style="overflow:auto;width:250px;height:75px;border:1px solid #336699;padding-left:5px"> <label style="{width:250px;}"><input type="checkbox" name="wow[]" onclick='highlight_div(this);'> PHP</label><br> <label style="{width:250px;}"><input type="checkbox" name="wow[]" onclick='highlight_div(this);'> LINUX...

Managing browser window focus

Parent window opens a child window. User toggles to Parent window. Can a button/link in the Parent window bring the child window into focus? (I tried a quick and dirty test and it worked in Safari in OSX...and it works) Will this work across Grade A browsers? If the parent window is closed... Can another window target the child and ...

Jquery - Change the complete CSS (intern)

Hi, i try to change the complete CSS code (like a stylebrowser). First solution new_css = ' body {color:#00ff00; } #div { border: 1px solid red; }'; $("head > style:eq(1)").html(new_css); It works fine in the FF, Chrome & Safari ... but not in the the IE. My second solution var myStyle = document.styleSheets[1]; if( myStyle.cssRu...

Issue with video z-index on Windows browsers

Having an issue with overlaying a png on a vimeo video, seem to have it working on all mac browsers but Firefox, Internet Explorer etc. on Windows seem to ignore it and place it behind. This is the site example, it's the black 'Download Reel' button: http://www.warface.co.uk/clients/detail-shoppe Many thanks HTML <div class="video-bl...

jquery code working fine in firefox but giving error in IE "object expected error line 1 char 1"

This code working fine in FF but giving error in IE object expected error line 1 char 1 jquery code $(function () { $('#header_images img:gt(0)').hide(); setInterval(function () { $('#header_images :first-child').fadeOut().next('img').fadeIn().end().appendTo('#header_images'); }, 3000); }); this is added in exte...

CSS looks bad in IE

I am having a CSS problem in IE This page looks fine in Firefox, chrome, opera....but on IE the "date bar" overlaps on the first <li> bar Here : http://www.animefushigi.com/latest-episodes CSS is as followed : #content h2.other-posts { height: 31px; font-size:12px; line-height: 31px; background: #2c2b2b; padding: ...

javascript form post submit working in IE but not Chrome

Dynamicaly adding a form to a page and submitting it in c#. Works fine in IE but just realized its not working in chrome. Im doing it as a function of a PayPal Transaction Object I built for a little ecomerce app. Here is the code. private void PayPalPostScriptLONG(Page page) { StringBuilder strScript = new StringBuilder...

Any crossbrowser issues with making up your own HTML elements?

I understand that with a few simple arrangements, the new HTML5 elements can be used even in older browsers. Does this mean the browsers simply don't really care about what the tags are named? So would there be any critical issues with making up your own elements, like <comments></comments> or <feature></feature> or <chapter></chapter> o...

Cross-Browser Javascript Parser for XML with Namespace

This subject has been touched on before, but there's been some time since the last question regarding namespace handling. Is there a cross-browser solution to get the elements by name in Javascript? <?xml version="1.0" encoding="UTF-8"?> <NS:response success="1" xmlns:NS="http://someURI/ns"&gt; <NS:user firstname="foo" lastname="ba...

Modify prototypes of every possible DOM element

Updated title to better reflect what I'm trying to do. In short, there are different constructors for different dom elements, and they don't seem to all share a common prototype. I'm looking for a way to add a function property to every DOM element by modifying these prototypes, but I'm not sure how to find them. For example, I could d...

Links disabled in html

I've been working on a revamp of the charity site I'm the webmaster for, heroinitiative.org. It is located here: http://www.heroinitiative.org/revamp/default.html (and no it's not live code, it sits alongside the live site just so I can show progress to my boss, it's not really important to keep it under wraps, which is why I can post it...

Finding core javascript calls that are incompatible with IE6/7/8

Hey is there a jslint-like inspector that will flag on calls that are incompatible with older versions of IE? or just cross browser incompatible calls in general? ...

How can I find the button that was clicked from the form submit event in jquery?

I have a function that I'm using to prevent multiple postbacks of a form: var submitted = false; $(function() { $('form').bind('submit', function(e) { if (!submitted && CanSubmit(e)) { submitted = true; return true; } else { return false; } }); }); In the CanSubmit me...

Loading XML from string in javascript works fine in IE 8, fails in firefox

I have an XML file which was generated by serialising a C# object. I want to parse this XML using javascript. When i try to load a string as XML using javascript, it works fine in IE 8, but fails in Firefox. This is the code i am using if (window.DOMParser) { parser = new DOMParser(); xmlDoc = parser.parseFromString(stringValue, 'tex...

Tweet Button and Facebook Like Button appearing below menu bar in FF

My problem is that I have a menu bar with z-index 100, and two elements of that bar with z-index 1000 (Sorry, in the code, the z-indexes are actually higher numbers butt different by a factor of 10... i realize this is bad practice, but i havent changed it yet because there are a few pieces connected). In firefox, the tweet button and f...