browser

Invalid blending results across all browsers with HTML5 canvas

只谈情不闲聊 提交于 2019-12-30 03:46:04
问题 Summary When repeatedly drawing anything (apparently with a low alpha value) on a canvas, regardless of if it's with drawImage() or a fill function, the resulting colors are significantly inaccurate in all browsers that I've tested. Here's a sample of the results I'm getting with a particular blend operation: Problem Demonstration For an example and some code to play with, check out this jsFiddle I worked up: http://jsfiddle.net/jMjFh/2/ The top set of data is a result of a test that you can

Why don't the modern browsers support PUT and DELETE form methods?

拥有回忆 提交于 2019-12-30 03:44:07
问题 I just finished building a RESTful API for one of my latest apps. I also built a simple admin interface scaffolding class that will enumerate resources and build simple forms and tables to edit, create, delete etc. For updating and deleting resources, the class outputs a form with methods of PUT and DELETE, pretty simple: <form action="/posts/xxxxxxx" method="DELETE"> <input type="submit" value="Delete" /> </form> and <form action="/posts/xxxxxxx" method="PUT"> <input type="text" name=

ExtJS : handling browser exit event (click on cross-exit)

一曲冷凌霜 提交于 2019-12-30 00:54:07
问题 I would like to know if there is any way to handle the browser exit event. For example, I would like to send a query when the user click on the cross-exit or simply close his browser. 回答1: This thread might shed some insight: http://forums.devarticles.com/javascript-development-22/how-to-stop-browser-from-closing-using-javascript-8458.html I haven't given this solution a test-run yet. But it seems possible. Here's a more in-depth discussion on the onbeforeunload event handler. http://bytes

Which HTML5 tags can I use without worrying about browser compatibility?

醉酒当歌 提交于 2019-12-29 10:07:21
问题 I am building a web app for use on PCs. What are the HTML5 tags to stay away from to prevent compatibility issues with Browsers like IE8 and above? Note: Most questions are 1-3 years old on this subject. 回答1: You asked what HTML5 tags to stay away from. Well Some of the tags from HTML5 from my knowledge were made for semantic reasons. like the following for example. <article> <section> <aside> <nav> <header> <footer> ..ect These are almost fine to work with, and just require a bit of CSS eg.

PDF download fails in Android Browser

天大地大妈咪最大 提交于 2019-12-29 09:57:08
问题 I have an ASP.Net WebForm that dynamically generates a pdf. The pdf download works in all the desktop browsers, as well as the IPad, Chrome mobile, and Firefox mobile. However, the pdf download fails in the Android browser with the message "Download Unsuccessful" in the notification area. I am writing the pdf to the response with this code: using (PdfDocument pdf = this.RenderPDF()) using (MemoryStream stream = new MemoryStream()) { pdf.Save(stream, false); response.Clear(); response

Open link in same browser tab

不打扰是莪最后的温柔 提交于 2019-12-29 09:29:31
问题 How do I open a link in the same browser tab? I tried this code: ShellExecute(Handle, 'open', 'http://site.com', '_self', nil, SW_SHOWNORMAL); But it continues to open the link in a new table. Thanks. 回答1: I've written on this topic before: ShellExecute has absolutely no notion of "tab." In fact, it doesn't even have a notion of "default browser." All it does is find whatever program is configured for file names that start with "http://" and execute the configured command line. What the

disable IE visibility while using WatiN

為{幸葍}努か 提交于 2019-12-29 09:27:10
问题 I use watin, because I need to open some websites in the background for which the user needs to support Javascript. I don't know if WatiN is the best for this job, but at the moment it takes very long until Internet Explorer gets visible. I need to disable to popping up of Internet Explorer while using WatiN. User doesn't need to see the opening of sites. Is it possible while using WatiN to visit a website without showing it the user or should I use another alternative which supports JS on

AS3: get browser window size?

倖福魔咒の 提交于 2019-12-29 09:12:32
问题 Can I get the obtain the size of the browser window in AS3? The best method I've found is to get the size with Javascript and send it to Flash as a FlashVar. One limitation of this method is that it doesn't give the current size if the window is resized. Is there a pure Flash way to do this? 回答1: It depends if you are trying to set your swf to fullscreen, or simply obtain window dimensions for some other purpose. If you are doing fullscreen, you need to set your stageScaleMode to NO_SCALE,

Is the web browser performance rule “only 2 requests in parallel per hostname” still correct?

久未见 提交于 2019-12-29 09:11:32
问题 In his book "High Performance Websites" Steve Souders wrote (2007) that browsers limit parallel requests to a domain/hostname to two at a time. Is this still valid today? 回答1: Almost incorrect today. Most browsers have upgraded to 6 parallel connections. See Steve Souder's Browserscope > Network tab > Connections per Hostname. Older browsers still restrict to 2 connections - that may or may not be relevant to you depending on the browsers your application supports. 回答2: Firefox bumped up its

CodeIgniter is generating multiple sessions in the database. Why?

非 Y 不嫁゛ 提交于 2019-12-29 09:10:51
问题 I have a site which does a few ajax calls on page load. For some reason, CodeIgnitor is inserting 4 sessions (I'm assuming one for each ajax call) as you load the page. I'm storing the sessions in the database. I'm pretty sure there should only be one session per browser. Firefox seems to generate only one; other browsers seem to create a whole bunch of sessions. Multiple sessions for the same user are giving me some serious authentication problems. Why is this happening? How can I stop it?