browser

Dealing with large numbers of HTML checkboxes

依然范特西╮ 提交于 2019-12-24 09:49:02
问题 I am dealing with a dynamic form that can potentially provide the user with an unspecified number of checkboxes in an array (category[]). This causes a few issues. Issue #1 : Hitting the maximum number of POST variables that the browser and/or server allows. This can be solved by using a bit of script and actually posting the array in a single comma separated value. Issue #2 : Browsers getting very slow and / or crashing. One user has over 5000 checkboxes representing categories, which causes

Is there any way to detect a user's Mac hardware model from the browser?

一个人想着一个人 提交于 2019-12-24 09:16:45
问题 I wanted to see if anyone knows if it's possible to detect what Mac computer model a user is has, straight from the browser. Aka "MacBook Pro (Mid/Late 2007)" or "MacBook Air (Late 2008 or newer)." This is probably a long shot, but since Mac browsers provide the OS via userAgent (http://www.quirksmode.org/js/detect.html), I thought there could be a chance. 回答1: Nope. The User-Agent header provides some information, but not much: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_8) AppleWebKit/536

Jquery script for document preview?

夙愿已清 提交于 2019-12-24 08:39:12
问题 Do you know any components from jQuery with which you can preview .doc,.pdf,.jpg .... files in browser ? Thanks 回答1: If you really want to keep it all native inside the browser you can display images on their own and pdfs with pdf.js. If you only need to display it somehow I advise you to look at Google docs viewer (officially discontinued, see below) which allows you lots of different files and which you can next embed in one of the scripts altschuler mentioned. (See my comment to his answer

Selenium RC - disabling browser cookie

痴心易碎 提交于 2019-12-24 08:23:58
问题 Is it possible to disable a browser cookie using selenium, RC specifically? If so, what is the api call or sequence of calls to make this happen. There is a feature being tested where theres a need to verify the behavior when cookies are enabled or disabled. Thanks 回答1: As specified in the comment. If you are using FF, you could specify the profile to be used. The way to do it it so specify the browserStartCommand (3rd argument of the DefaultSelenium constructor) to something similar to:

Upload of very large files

六月ゝ 毕业季﹏ 提交于 2019-12-24 06:48:12
问题 I am looking for a way to upload very large files, means, 5 GB or more, via a Web-Interface. The language/server system can be chosen. POST-Requests seem not to work since the browser-internal filepointer only handles files up to 2 GB. Other options would be e.g. an Java-applet, a FTP-Request (for example done by a Javascript-Library) or anything else that can do it reliably. Any ideas appreciated. 回答1: I'd same task here; we ended with a Silverlight client application which performs

Does the webbrowser require IE installed on client machine

安稳与你 提交于 2019-12-24 06:45:07
问题 I was just wondering whether any version of I.E. must be installed on the client machine when deploying an application that uses the webbrowser control (target .net 2 platform) Thanks 回答1: Yes, the webbrower control uses mshtml.dll which is provided by Internet Explorer. 回答2: When you use the "Add/Remove Windows Components" applet to "remove" Internet Explorer, it removes the iexplore.exe entry point but leaves all of the components of the Web Browser Control installed. Those components are a

C# trouble webbrowser onclick elementid

北城以北 提交于 2019-12-24 06:44:51
问题 What i'm trying to do is crawl this webpage using C# http://www.madisonhonda.com/Preowned-Inventory.aspx?layout=layout1# What I have so far is this public const string TestURL = "http://www.madisonhonda.com/PreownedInventory.aspx#layout=layout1"; static void kickOFF() { WebBrowser wb = new WebBrowser(); //wb.DocumentCompleted += new WebBrowserDocumentCompletedEventHandler(webBrowser1_DocumentCompleted); wb.Navigate(TestURL); while (wb.ReadyState != WebBrowserReadyState.Complete) { Application

how to access to my browser in local machine from remote machine

纵饮孤独 提交于 2019-12-24 06:36:09
问题 because I run spark application on my remote machine and I want to see the progress so I need to access to spark web UI from a browser. What should I do to be able to run my browser firefox on my local machine from the remote one in which I run my spark application? If the distant (remote) one has an IP address: 192.yy.yy.yy knowing that I use to access to remote machine from my local one ssh name@xx.xx.xx.xx ps: I can interact with the remote machine only using commands. 回答1: Every

Adding true hyperlink support to TRichEdit

痴心易碎 提交于 2019-12-24 06:26:11
问题 I need support for "friendly name hyperlink" in TRichEdit and all solutions I have found are based on autoURLs (EM_AUTOURLDETECT) which works by detecting strings entered by user that start with www (or http). But I want to place links on strings that does not start with www. Example: 'Download'. 回答1: You need to do the following: send the RichEdit an EM_SETEVENTMASK message to enable the ENM_LINK flag. Do this once after the RichEdit has been created, and then do it again every time the

Local virtual hosts show Privacy Error on Chrome due to HSTS

风流意气都作罢 提交于 2019-12-24 05:24:07
问题 I have created several virtual hosts for my development processes. They were working just fine till yesterday. But in my chrome app, today they stopped working. Chrome shows: NET::ERR_CERT_AUTHORITY_INVALID All my vhosts end with .dev . I changed one .dev to .work and its again working. But I can not do this for all vhosts as there are too many of them. What do I do? PS : They are working fine in firefox. The error remains same in chrome incognito mode. I tried clearing cache and hard reload,