Using ActiveX objects in Javascript in Linux (in Firefox) - linux

It's not quite a "programming" question, but I hope its related closely enough.
Do you know if it is possible to configure the browser in Linux (e.g. Firefox) to use Wine to create ActiveX objects? I would like to handle web pages that use:
var xmlDocument = new ActiveXObject( Msxml2.DOMDocument.4.0 )
etc. in Javascript.

I think you can only do that in Internet Explorer on Wine

ActiveXObject is part of the Windows Script host, and not available in Linux unless you can use Wine to install it.
As a side issue, the actual ActiveXObject is an instance of a windows application, and not generally available in Linux (especially not the MS Office suite).
Links:
Windows Scripting Host
Wine
Edit: Had Wine confused with Mono. Fixed now.

If you just want an xml document you can do that via standard javascript. Their is no need for ActiveX. Simply ask the document to parse the xml for you. Have a look on Mozilla Developers Centre. They have very good JS docs.
On another note, if you want cross browser web pages steer clear of ActiveX. Especailly with all its security holes.

you can see flash in firefox of linux. try used flash.

Related

How does one use the Chromium Embedded Framework from GtkSharp?

I'm a Microsoft stack developer most familiar with Windows Forms and WPF, but have a need to develop a Linux desktop application that can display some web apps in a modern browser that offers very recent HTML 5, CSS 3, SVG, etc.
I'm thinking GtkSharp running on top of Mono is probably the replacement for WinForms/WPF running on top of .NET which will best leverage what I already know. As for the embedded browser control, I have other requirements strongly advocating CEF over any other solution (although I'm still open to strong suggestions to do otherwise).
Anyone have experience with any of this?
Try looking at CefGlue, it has a CefGlue.Demo.GtkSharp project which would indicate it's possible.
https://bitbucket.org/xilium/xilium.cefglue/
https://bitbucket.org/xilium/xilium.cefglue/issues/108/linux-support
Personally I've never used CefGlue so I cannot say more than I've seen in passing.

Best bugzilla desktop client

We've just started to used bugzilla and I found the web interface quite slow and not user-friendly.
I'm wondering if anyone have a suggestion for a client desktop or a browser add-on running under windows.
I found the following page: https://wiki.mozilla.org/Bugzilla:Addons
Which one of these clients (or any other) is the best ? Any other suggestions ?
I already tried Deskzilla Lite, which seem pretty good. However, there is a lot of field (edit bug) that we don't use (i.e. hardware, os, url, depends on, etc). Is there a desktop client that allow to remove and customize the field used in the bug entry form? On this one, please do not answer I can customize the bugzilla templates, we don't want to use the web interface anyway.
Well it depends on your Bugzilla Version. Since I updated to 4.0 I've got no alternative to Deskzilla since MyZilla is not running anymore. LiveProject looks pretty neat but I never tested it, so... Deskzilla lite. :/

How to build an shipable, "local", branded mini-browser

Since I don't really have a good idea for word to search with myself I’d like to ask you:
Is there some project, technology, w/e that enables you to build a 'browser' with a very slim ui. Just some CI and a customised "starting page".
I'm thinking of something like the Webkit engine (and interface) Valve/Steam uses for it's clients store page.
In what direction should I search for something like that ? How would one start implement something like that ?
Answers to questions:
We need this to provide something like a "Kiosk" application (for touchscreens) and shippable to our Customers. Running a browser in "full screen" is a temporary solution.
As of Platforms: Windows is absolutely sufficient for now, but Mac/Linux wouldn't hurt.
Prism looks nice so far but lacks the "shippable" part, e.g. I see no way of packaging it.
Take a look at Mozilla Prism. It's a "UI-Less" version of the Mozilla/Gecko rendering engine aimed at deploying web apps on the Desktop. It's also multi-platform. It might be fairly close to what you need, with comparably little work.
WebKit has bindings for many languages, is cross-platform, and is full-featured as a HTML engine. A bit of work capturing signals and calling functions will make it into any kind of web browser you like.
You could use Adobe Air, follow this tutorial and include your website within an iframe. That would allow you to build an executable you can ship to your customer.
Various graphics toolkit libraries contain some components which can display a limited amount of HTML. I've seen this in qt (a C++ GUI library) and in Java Swing, and have indeed built a tiny "browser" in Java within a couple of hours. Java Swing lets you attach a link listener so links can be made clickable and thereby jump to different URLs. Thus, my application could be made to work as a very limited browser.
This approach lets you display text, images and links; in the case of Java, there's even fairly good support for CSS styling. However, there's no simple way to make buttons and form fields work, and of course no support for manipulating the DOM or anything else done in JavaScript.

Web editor question

anybody can recommend a good web editor to me?
page created in windows should be working ok in linux as long as firefox support it, right?
1.) Here you have a list with 10 free web editors for windows:
http://webdesign.about.com/od/windowshtmleditors/tp/free-windows-editors.htm
(the first one komodo it's pretty good at least the mac version I use)
Link
2.) OS and browser doesn't matter with HTML as long as you write (W3C compliant code).
In case of CSS & JavaScript some functions have different behaviors depending on the browser.
Notepad++
Firefox isn't the only browser used on Linux (I'm currently using Chrome). Fonts are something to look out for on Linux, so it's always worth testing.
I use the Telerik editor. It is not cheap, but it is very good. My users like it.
I am assuming you mean a content editor for use on your site.
I've used TextPad in the past. I also like Eclipse.
Are you looking for an editor with Syntax Highlighting then TextPad, KomodoEdit, NotePad++ are good.
Aptana Studio is also free and also provides Intellisense for HTML and Javascript editing.
If your page is W3C compliant, then it should be rendered well in any standard browser. Don't forget your DOCTYPE declaration.
The most suitable web editor depends on what technologies you are using.
If you are using ASP .NET, then you should use Visual Studio.
For Java (JSP), Eclipse is what you want.
If you are asking about a more general web editor (html/javascript) and you are more likely to be using php or Ruby, you really need to give a try to : PSPad. I have been using it for months, and it has a lot of cool features: from basic code editing to code verification etc. And yes, it's free! You can even add to it a lot of extensions.
For interoperability between navigators, you have to test your website on many of them as you can, be careful with Internet Explorer especially, here you can find some known CSS bugs that you may encoutner while running your pages on IE.
Alors I recommand you to use special tools that can do cross-navigator testing for you, like Browsershots.

Running C# app inside browser as a plugin

I have a small 2D game engine written in C#, using DirectX. Is it possible to somehow run it in a browser as a plugin? Like for example Flash and others, where you go to a site with a game and it will ask you to install a certain plugin and then you can play the game in the browser, with mouse and keyboard input.
I have searched around for hours and I still don't know what I'm looking for. I have so far primarily focused on Internet Explorer, but there are plugins, addons, extensions, etc I don't know what I need really.
Yes I think it is possible.
For example, I have an HTML page which includes an element like this:
<object id="simpleControl1"
classid="http:RenderTextProject5.dll#RenderTextProject.ScrollableControl"
height="300"
width="300">
</object>
The 'classid' attribute value has the following meaning/syntax:
RenderTextProject5.dll is the filename of a compiled .NET assembly
RenderTextProject.ScrollableControl is the qualified name (namespace plus classname) of a class which subclasses System.Windows.Forms.Control
I can then see the control being rendered in the browser.
I'm using IE (IE8, but it used to work with IE6 too), and I have the .NET framework installed on my machine (but I think I needn't have the RenderTextProject5 assembly installed on the client machine).
There may be some other caveats too (e.g. I needed to run in the Intranet security zone).
See Return of the Rich Client: Code Access Security and Distribution Features in .NET Enhance Client-Side Apps.
Look for Silverlight.. It is maybe not exactly what you need but it is a browser plugin capable of running C# code ;)
There is a relatively new plugin called Unity. It is a bit more complex, as it is a dev/3D authoring environment on its own, but uses C# as its language as far as I know. However I don't know if pure 2D programming is possible (well, may be worked around using ortho 3d?).
The basic version is free to download recently, maybe worth a check.
It is possible to run C# applications in a web browser without using plugins. For example, C# applications can be compiled into JavaScript applications using JSIL.

Resources