xulrunner

XULRunner error in Eclipse / SWT

不打扰是莪最后的温柔 提交于 2019-12-21 06:50:58
问题 I'm trying to run the Enhanced JavaScript Bridge example found here. I created a new project, and added a reference to SWT via: Project(right-click)-->Properties-->Libraries-->Add Variable-->Configure Variable-->New However I cannot get this project to run. The error I get depends on what SWT library I'm referencing: org.eclipse.swt.win32.win32.x86_64_3.103.2.v20150203-1351.jar : Error is Could not instantiate Browser: org.eclipse.swt.internal.mozilla.init.XPCOMInit.GREVersionRange_sizeof()I

Finding the difference in rows in query using SQLite

戏子无情 提交于 2019-12-21 04:39:29
问题 I have an SQLite table that contains prices for various products. It's a snapshot table, so it contains the prices on 5 minute intervals. I would like to write a query that would return the difference in price from one row to the next on each item. The columns are id (auto inc), record_id (id of the product), price (price at that point in time), time (just seconds since epoch) I'm trying to return a 'difference' column that contains a value of difference between intervals. Given the following

Building Cross Platform app - recommendation

岁酱吖の 提交于 2019-12-19 07:56:59
问题 I need to build a fairly simple app but it needs to work on both PC and Mac. It also needs to be redistributable on a disc or usb drive as a standalone desktop app. Initially I thought AIR would be perfect for this (it ticks all the API requirements), but the difficulty is making it distributable, as the app would require the AIR runtime to be installed to run. I came across Shu Player as an option as it seems to be able to package the AIR runtime with the app and do a (silent?) install.

Creating a SWT.MOZILLA browser on Windows 64 bit and SWT 4.3

坚强是说给别人听的谎言 提交于 2019-12-17 16:51:05
问题 I'm trying to create an SWT Browser widget of the SWT.MOZILLA type under windows 8 64Bit with SWT 4.3 64Bit. According to this, SWT 4.3 should support 64 Bit version on XULRunner 10.x or 24.x So, I have downloaded both the 10.x and 24.x 64 versions from here and unzipped under c:\xulrunner10 and c:\xulrunner24 respectively. If I start my java app pointing to xulrunner10 (using the VM argument -Dorg.eclipse.swt.browser.XULRunnerPath=C:\xulrunner10 ) it works, however if I try with xulrunner24

How to use ReadDirectoryChangesW in XULRunner (js-ctypes)

五迷三道 提交于 2019-12-14 03:52:37
问题 I'm trying to implement the answer to this question about monitoring a Windows filesystem asynchronously. I'm using js ctypes within a ChomeWorker as part of a XULRunner application but I assume this would be the same if I implemented as a Firefox add-on. As part of the task, I have tried to declare the function ReadDirectoryChangesW as follows (based on my limited knowledge of js ctypes and the MSDN documentation). const BOOL = ctypes.bool; const DWORD = ctypes.uint32_t; const LPDWORD =

How to completely uninstall XULRunner 7 Mac OS X

拈花ヽ惹草 提交于 2019-12-13 18:42:12
问题 There is a thread here: How to Install and run a XulRunner Application on Mac OS X? ...in which a user mentions having trouble uninstalling XULRunner 7 so he could then install XULRunner 6. Unfortunately he just says he figured it out, but doesn't say how. It appears that I cannot private-message or email that user (CIRK). So, does anyone know how one removes it, or at least get OS X to allow the install of XULRunner 6? As a side-note, removing the /Library/Frameworks/XUL.framework directory

Firefox 26 C++ Addon XPCOM dependency error

蓝咒 提交于 2019-12-13 05:09:22
问题 I prepare my C++ Firefox addon for the next Firefox - v.26 - but I can't build it with xulrunner-sdk 26 beta (it is OK with the previous major versions). Just as before, I link it against xpcomglue_staticruntime_s.lib, but I've got these errors: xpcomglue_staticruntime_s.lib(nsStringAPI.obj) : error LNK2019: unresolved external symbol _ imp _PR_sscanf referenced in function "public: __int64 __thiscall nsAString::ToInteger64(enum tag_nsresult *,unsigned int)const " (?ToInteger64@nsAString@@QBE

how to handle downloads on gecko15 with mozilla xul15 in visual basic?

泪湿孤枕 提交于 2019-12-13 04:45:41
问题 I am using gecko15 with mozilla xul15 as a web browser on my visual basic application anyone knows how i can handle downloads please ? because, when i click on a file to download from that browser nothing happens. thanks a lot for any help. 回答1: Also: @Form LOad Event: Add: AddHandler Gecko.LauncherDialog.Download, AddressOf LauncherDialog_Download Then Private Sub LauncherDialog_Download(ByVal sender As Object, ByVal e As Gecko.LauncherDialogEvent) e.cancel() try catch ex as exception

Internet Explorer behavior as Mozilla Firefox or Chrome

岁酱吖の 提交于 2019-12-12 20:17:38
问题 Is there a solution to get Internet Explorer to behave as Firefox or Chrome? I am looking for a solution that would not use css hacks. I mean maybe some scripts to force change all behavior of IE. Thanks a lot! 回答1: You can have your users download and install Google Chrome Frame, then add this meta tag to your page head per the Chrome Frame developer guide: <meta http-equiv="X-UA-Compatible" content="chrome=1"> Of course, this requires user action. You can't control what browser your users

How to know if the network is (dis)connected?

两盒软妹~` 提交于 2019-12-12 08:31:02
问题 How can I know, in Xul, if the network is (dis)connected? --update Using: function observe(aSubject, aTopic, aState) { if (aTopic == "network:offline-status-changed") { write("STATUS CHANGED!"); } } var os = Components.classes["@mozilla.org/observer-service;1"].getService(Components.interfaces.nsIObserverService); os.addObserver(observe, "network:offline-status-changed", false); and the preference: pref("network.manage-offline-status", true); it's not working.. There's a bug report here, but