browser

Chrome RangeError: Maximum call stack size exceeded when using jQuery $.map

匆匆过客 提交于 2019-12-22 07:55:10
问题 I'm testing a web application for my employers which involves retrieving a large amount of data from the server. The data is returned as a JSON object using the $.ajax function, containing large quantities of sub-objects which I convert to arrays using jQuery's $.map function as follows data_points = $.map(result.data.LotsOfIt, function(value, ndx){ return value; }); //Throws Maximum call stack size exceeded with large data set. This seems to be exhausting Chromes stack size limit, everytime

Detecting browsers installed so Process.Start(“chrome”) won't error

爱⌒轻易说出口 提交于 2019-12-22 06:56:18
问题 I'm trying to let the user choose the browser my application uses to launch urls. Currently it uses the default browser, but some people want to specify a different browser. I'd like to show only installed browsers in the list, and I'm launching them like this: Process.Start("chrome", url); The problem is, if Chrome isn't installed (and in the path), it'll fail. How can I check whether this call will fail, without calling it (so I can pre-filter my list, and remove chrome if it's not going to

WebBrowser Control causes whole application to become unresponsive

孤街浪徒 提交于 2019-12-22 06:49:44
问题 I have a C# .NET 3.5 application with an embedded web browser. The browser is designed to point to remote sites (Rather than anything local). Everything works fine, but when the page is slow to respond this causes my entire application to become unresponsive until the page is loaded. I don't mind the browser being unresponsive while it does its thing, but the application going too is far from ideal. Is there a good way to prevent this? Would it be beneficial to run the WebBrowser on a

How to use phantomJS to simulate mouse hover on a HTML element

戏子无情 提交于 2019-12-22 06:40:38
问题 I have the phantomJS code below to fetch the HTML code: var page = require('webpage').create(); var url = 'http://example.com/'; page.open(url, function (status) { var js = page.evaluate(function () { return document; }); console.log(js.all[0].outerHTML); phantom.exit(); }); The content I want to fetch will only be read while the mouse is hover on the specific element which is controlled by JavaScript, so the code above is not working. I want to know how to simulate the mouse hover on a HTML

How to print webpage with background image? [duplicate]

孤者浪人 提交于 2019-12-22 06:37:18
问题 This question already has answers here : How can I print background images in FF or IE? (8 answers) Closed 6 years ago . I'm trying to print a web page form in IE with a background-image; now the issue is that it is not showing background-image in its print. Is there a way to fix it because I tried lots of tricks but none of them are actually working. if any one of you fixed it before please share. 回答1: This is just for people who may try to spend a lot of time to print css background images.

How Google deals with the Back Button after logout?

人盡茶涼 提交于 2019-12-22 06:08:05
问题 I've been searching the web trying to identify a good way to avoid show previous unsuitable information when the users click the Back Button. For instance: To avoid see information after logout. To avoid see a form after send and process it. I reviewed these posts and many others: avoid go back after logout Prevent back button after logout I like the Google solution but I don't know how is implemented. When I logout from my Gmail account and then I click the Back Button, I'm not able to see

FF and IE don't load img src from CSS

孤者浪人 提交于 2019-12-22 05:50:10
问题 I'm setting the src for an image with css like this #Banner { content: url(../Banners/prussia-awesomeness.gif); width: 1000px; } here's my image <div id="Header" class="Header"> <img id="Banner" src="as"/> </div> the image loads in google chrome with the proper img src (../Banners/prussia-awesomeness.gif) in internet explorer and firefox it keeps the src "as". Does ie and ff not support loading image sources from css? EDIT: adding #Banner:after { content: url(../Banners/prussia-awesomeness

Authorization header when following redirects

橙三吉。 提交于 2019-12-22 05:48:18
问题 When following redirects for a 303 response, in a Chrome, IE, and Firefox, the Authorization header is included. That's an issue when a request to an internal service respond with a signed S3 URL in the Location header. S3 will respond with a 400 response, and can't figure out which authentication method to use. Request to internal service GET INTERNAL_SERVICE HTTP/1.1 Pragma: no-cache Origin: https://example.com Accept-Encoding: gzip, deflate, br Accept-Language: en-GB,en;q=0.9,en-US;q=0.8

How can I show an image in webBrowser control directly from memory?

白昼怎懂夜的黑 提交于 2019-12-22 05:42:07
问题 How can I show an image in webBrowser control directly from memory instead of hard disk? When I use RAM Disk software to create a virtual drive, it is possible to address an image source to load it like this: img src = "Z:/image.jpg" that Z is a RAM Disk drive. Is it possible to do that in .NET programmaticly? or use MemoryStream to do that? I would really appreciate some suggestions about this. 回答1: You can encode the image in base64. For example <img src="data:image/gif;base64

Is there a way to disable .NET browser detection?

二次信任 提交于 2019-12-22 05:36:19
问题 I failed to find a way to disable the browser detection feature added by asp.net 2.0. I want all the request to my page to be treated as if IE is requesting them. My fix was to add an App_Browsers folder to my project and in it have the following .browser file: <browsers> <browser refID="Default"> <capabilities> <capability name="preferredRenderingMime" value="text/html" /> <capability name="preferredRenderingType" value="html32" /> <capability name="requiresFullyQualifiedRedirectUrl" value=