cross-browser

Inconsistent LinkButton PageMethod behavior in different browsers

偶尔善良 提交于 2019-12-03 22:00:13
I have a LinkButton on a page that performs a post-back, but also has an onClientClick event. The idea is to set some session variables in the background from client-side data (don't ask). I've placed a break point in the web method to step through our code, and what we're experiencing is that depending on the browser, the PageMethods may return a success message, failure message, or no message at all . Additionally, the web method may or may not get called, regardless of the PageMethods result. Here's a handy little chart of our results: Browser PageMethods WebMethod -------------- ----------

Auto-resize SVG inside AngularJS directive based on container element

不问归期 提交于 2019-12-03 20:30:19
I am placing an angular directive inside a dynamically-sized element. The directive itself consists of an SVG which is computed based on the element size. I am trying to make the SVG auto-resize and redraw based on the size of the container. I initially tried something like this: my-directive.js angular .module('myModule') .directive('myDirective', function () { return { templateUri: 'path/to/my-directive-template.html', ... }; }); my-directive-template.html <svg style="width: 100%; height: 100%; max-width: 100%; max-height: 100%"> ... </svg> Note the style attributes on that SVG element. This

ASP.NET Ignores IE7 Compatibility Mode Tag in Web.config

别来无恙 提交于 2019-12-03 19:39:57
问题 I have the following section in my Web.config file <system.webServer> <!-- For now..... lets be safe and put IE8 in IE7 compatibility mode--> <httpProtocol> <customHeaders> <clear /> <add name="X-UA-Compatible" value="IE=EmulateIE7" /> </customHeaders> </httpProtocol> </system.webServer> but the <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7"/> is not present in the header of the pages when they are rendered on my site. I followed the advice in this post ASP.NET App - Set IE7

Display a Message When a Browser is Unsupported

孤街浪徒 提交于 2019-12-03 18:32:03
问题 I want to warn users of Internet Explorer 6 using my site, that IE6 has had serious compatibility issues with my site in the past. What is the best way to do this? Ideally, I want to have a message appear (not a new window, but a message box, if possible) that warns IE6 users of the issues and reccommends they update to either IE7, Firefox 3 or Opera 9.5. 回答1: If you want to determine if it's anything other than support browsers, you might want to use jQuery's browser detection, something

Consistently sizing a <textarea> under IE, FF, Safari/Chrome

╄→尐↘猪︶ㄣ 提交于 2019-12-03 18:05:46
问题 I have a <textarea> that needs to fit into a space whose size is not pre-determined (is a percentage of the screen size). I can get good results if FireFox by setting the regular CSS properties: #container { width: 70%; height:70% } #text_area { width: 100%; height: 100%; margin: 0; padding:0; } However in IE 6 and 7 I get different, odd results. In IE6 the textbox appears to have padding to both the left and the right, pushing the size of my container to grow. In IE7 the textbox has padding

How to Prevent Caching in IE8 when using AngularJS Models

橙三吉。 提交于 2019-12-03 17:34:38
My technology stack is - AngularJS Bootstrap Spring MVC Hibernate What am I doing : There is a list of Items on which I am doing CRUD (Create, Read, Update and Delete) Posting form Data via Angular Controller to a Spring Controller. Spring Controller -> DAO method -> DB is updated Spring Controller Returns "Y" or "N" Angular gets the Status Message and Reloads the Angular Model(A Json Array to populate the List of Items) Same with Update and Delete My objective is to achieve real-time data manipulation without page reload. This works fine in Chrome. However, IE can not detect the Model Change.

Launch file:// from Firefox or Chrome

余生颓废 提交于 2019-12-03 17:25:15
问题 I am looking for a way to launch a file located on our local file network for use via our local intranet using Firefox or Chrome. The link works well in IE: <a href="\\Start\Of\My\Network\file.xlsx">View Report</a>  but in Firefox it shows: <a href="http://mydomain.com/\\Start\Of\My\Network\file.xlsx">View Report</a>  is there a way to get the link to render properly?...Just a simple click from a href tag. 回答1: This is not enabled in firefox for security reasons (remember that most computers

JavaScript key handling and browser compatibility

核能气质少年 提交于 2019-12-03 17:19:50
问题 I'm working on key handling in Javascript. I have done some research and I'd like to know whether I have a correct understanding of key handling. KeyDown/KeyUp Event The key down and key up events are supported by IE7+ and Firefox 3.5+ I didn't check the earlier versions of the browsers, but I guess that they also support these events. Is it correct to say that each key on the keyboard will always have a keycode. CharCode CharCode value is available on the keypress.Majority of the keys will

Can I code CSS specifically for Mac browsers?

大憨熊 提交于 2019-12-03 17:14:09
Site: http://clientfiles.priworks.com/lgmanagedportfolios/test/investment.html I have been working at this web page for a while now trying to get the left side of the first submenu link to line up with the left of the 1st parent/main menu link. I don't think there is a logical way of doing it but after much fudging I am close to getting it just right. The position is consistent for all win browsers and all Mac browsers (with some conditional CSS) but not for Win and Mac browsers together, for instance in Mac Firefox the text is too far right while in Win Firefox it's perfect. Question: Is

Generate sine wave and play it in the browser [closed]

▼魔方 西西 提交于 2019-12-03 16:59:35
I need a sample code that could: generate sine wave (an array of samples) and then play it . All done in browser using some HTML5 API in JavaScript. (I am tagging this web-audio, although I am not 100% sure it is applicable) exebook This is how to play 441 Hertz sine wave tone in the browser using the cross-browser AudioContext . window.AudioContext = window.AudioContext || window.webkitAudioContext; var context = new AudioContext(); function playSound(arr) { var buf = new Float32Array(arr.length) for (var i = 0; i < arr.length; i++) buf[i] = arr[i] var buffer = context.createBuffer(1, buf