gecko

Javascript - Gecko border radius adaptation on HTML Canvas (CSS border-radius)

与世无争的帅哥 提交于 2020-01-02 05:35:13
问题 I'm trying to figure out how to reproduce the behavior of the "border-radius" css property into an HTML canvas. So i've already done something in Javascript in order to compute the correct borders of a given shape, using a specific radius (for each corner). Here is the previous question if needed : Gecko - CSS layout border radius - Javascript conversion I've managed to get close from the browser adaptation but there's still an issue, and it seems that it's the last, and the hard part! Let's

Fill a select box using geckofx c#

流过昼夜 提交于 2020-01-01 19:17:08
问题 I am using the code: ((GeckoSelectElement) geckoWebBrowser1.Document.GetElementById("OA0001_dob_month")).Value = "Jul"; But its not working. How to select a value in a selectbox in geckofx c# without using the jscontext? 回答1: To select a value by index: var document = GeckoWebBrowser1.Document; var selectElement = (GeckoSelectElement)document.GetElementById("OA0001_dob_month"); selectElement.SelectedIndex = 2; 来源: https://stackoverflow.com/questions/33259192/fill-a-select-box-using-geckofx-c

Retrieve parent node from selection (range) in Gecko and Webkit

守給你的承諾、 提交于 2020-01-01 03:18:08
问题 I am trying to add an attribute when using a wysiwyg editor that uses "createLink" command. I thought it would be trivial to get back the node that is created after the browse executes that command. Turns out, I am only able to grab this newly created node in IE. Any ideas? The following code demonstrates the issue (debug logs at bottom show different output in each browser): var getSelectedHTML = function() { if ($.browser.msie) { return this.getRange().htmlText; } else { var elem = this

How to handle downloading in GeckoFX 29

匆匆过客 提交于 2019-12-29 08:12:15
问题 How can I handle downloading in GeckoFx I'm using version 29 I've found some ways like adding event of LauncherDialog_Download(object sender, LauncherDialogEvent e) But, I'm not able to add handler for this event I tried this for handler LauncherDialogFactory.Register(); LauncherDialog.Download += LauncherDialog_Download; But, it is showing as error, how can i add handler and is there any other ways to handle downloading in GeckoFx 29 ? 回答1: In form load after your browser.navigate("http:/

How to handle downloading in GeckoFX 29

会有一股神秘感。 提交于 2019-12-29 08:12:11
问题 How can I handle downloading in GeckoFx I'm using version 29 I've found some ways like adding event of LauncherDialog_Download(object sender, LauncherDialogEvent e) But, I'm not able to add handler for this event I tried this for handler LauncherDialogFactory.Register(); LauncherDialog.Download += LauncherDialog_Download; But, it is showing as error, how can i add handler and is there any other ways to handle downloading in GeckoFx 29 ? 回答1: In form load after your browser.navigate("http:/

CSS “outline” different behavior behavior on Webkit & Gecko

血红的双手。 提交于 2019-12-28 02:02:08
问题 I'm working on an experiment & I found out that the "outline" CSS2 property is not implemented the same way on Webkit & Gecko In the script below, I have a absolute position div inside another div but floating outside of it. The outline on Webkit outlines the actual parent div while on Gecko, it expands to cover the child item. http://jsfiddle.net/KrCs4/ Am I missing anything? Is there a property that I need to overwrite on Gecko? or it should be reported as a bug? Webkit Screenshot: Firefox

Embedding Gecko/WebKit in Java

℡╲_俬逩灬. 提交于 2019-12-27 20:20:08
问题 I'd like to have Gecko, WebKit, or another webbrowser embedded in Java as a Swing/AWT control. I'm looking for something different than JRex or JWebPane . 回答1: You could use JxBrowser. It features a Swing/JavaFX component that wraps the Chromium engine while providing a rich API and out-of-the-box hardware-acceleration through the GPU. Unfortunately, they've dropped support for other engines (like Gecko and WebKit) since 4.0 version. Note that it's not free, except for open-source projects.

Embedding Gecko/WebKit in Java

情到浓时终转凉″ 提交于 2019-12-27 20:18:00
问题 I'd like to have Gecko, WebKit, or another webbrowser embedded in Java as a Swing/AWT control. I'm looking for something different than JRex or JWebPane . 回答1: You could use JxBrowser. It features a Swing/JavaFX component that wraps the Chromium engine while providing a rich API and out-of-the-box hardware-acceleration through the GPU. Unfortunately, they've dropped support for other engines (like Gecko and WebKit) since 4.0 version. Note that it's not free, except for open-source projects.

Embedding Gecko/WebKit in Java

给你一囗甜甜゛ 提交于 2019-12-27 20:16:31
问题 I'd like to have Gecko, WebKit, or another webbrowser embedded in Java as a Swing/AWT control. I'm looking for something different than JRex or JWebPane . 回答1: You could use JxBrowser. It features a Swing/JavaFX component that wraps the Chromium engine while providing a rich API and out-of-the-box hardware-acceleration through the GPU. Unfortunately, they've dropped support for other engines (like Gecko and WebKit) since 4.0 version. Note that it's not free, except for open-source projects.

Firefox: If needs spellcheck? [duplicate]

断了今生、忘了曾经 提交于 2019-12-25 06:38:34
问题 This question already has answers here : Closed 10 years ago . Possible Duplicate: Javascript: I have a custom right-click menu but still want the spellcheck! Is there a JS property or command to see if a word is underlined in red (ie. needs to be spellchecked) in Firefox? Ideally, for sample code it would be like... if I right click on a word the is underlined in red it will alert: //watches for right click action if(firefox.isUnderlinedForSpellcheck == true) { //display firefox spellcheck