how to use the new mozilla's console in xulrunner? - firefox-addon

is there a way to embed the new firefox's console in a xulrunner application?
I always used to do so:
<iframe type="chrome" src="chrome://global/content/console.xul" flex="1">
but, I would love to use the new one if possible. I will mainly use it for JS debugging so also the scratchpad would be ok!
thank you in advance

It's not possible, devtools are part of the browser app (aka Firefox).

Related

Open a new browser Window from a webview, without user input

I'm looking for a way to open a new browser window from a WebView, from a wp8.1 RT, silverlight or UWP app.
It should happen when the page loads, or after a few seconds, without any user input (I know it's possible if the user clicks on a 'target="_blank"' link)
Does anyone know if any way to do this exists?
I tried with window.open, jquery's .click() or .submit(), but nothing...
Neither the the javascript alert() works, it does work instead redirecting to a uri protocol with location.href and open an app, but unfortunately IE/Edge doesn't have an app protocol to launch it...
Any help would be much appreciated.
Since you put both Windows Phone 8 and Windows 10 in your tags, I can't be sure what to offer you here. SO I will tell you how to do it in 8.
JavaScript in a WebView can call external C# code by using ScriptNotify. You can read more about that in this question: Call Native C# from WinJS that's loaded in a WebView
Also, once you are in C# and you want to launch a browser, the answer is to use the LaunchUriAsync API. Read more about that here: https://msdn.microsoft.com/library/windows/apps/windows.system.launcher.launchuriasync.aspx
Best of luck!

How to print .docx,doc,xls,csv in rails 4?

How can I print .docx,doc,xls,csv in rails 4?
I tried window.open and window.print using javascript, but each time when it invokes window.open it downloads the file.
I tried to embed that in an iframe, that also fails.
Displaying a specific type of file isn't something that relies on your application it relies on the browser. In common browsers there is no support to display the file formats you mentioned.
What you can do is implementing some document viewers based on js if they are available for your usage. For example I know there is a plugin viewer.js that provides functionality to convert office and pdf to html. That might help you out... https://developers.box.com/viewer-js-tutorial/
I tried doing this some time back and this is the blog which i refereed. Helped a great deal.
Hope this helps.

Google's Dart "tracker" sample application doesn't work under Dart Editor environment

There is a very nice task tracker Dart demo application at the following URL.
https://www.dartlang.org/samples/tracker/
When I download the source code and run it in the Dart editor with Dartium, the app works, but the layout of the controls is completely wrong. It looks like this.
I guess you should just make your browser windows less wide to get the same layout as shown in your above link.

Firebug lite on iPad

Already found this page with some helpful hints.
Problem is I need to debug a web application on a CMS using an iPad and Safari.
So far I haven't been able to make firebug-lite work. I am working in a secured environment having no internet acces, but can copy files using a USB-key.
I have copied firebug-lite.js to the local server and included the file in a script tag in the head:
<script type="text/javascript" src="http://my_server/js/firebug-lite.js"></script>
Unfortunatly when I open the page in the CMS I cannot see the firebug-lite-button on the page. Verifying the source code firebug-lite should have been loaded on the page. There is no way to get a right click menu to inspect anything.
What can I do to make firebug-lite work on the iPad? What am I doing wrong?
Start Firebug Lite already opened, as per http://getfirebug.com/firebuglite#Options :
<script type="text/javascript" src="proto://path/to/firebug-lite.js#startOpened=true"></script>
I think you won't be able to inspect elements, but you can navigate to the elements in the DOM tree provided by Firebug Lite.
It looks like Firebug-lite has problems with the iPad browser since late 2010.
The problem (ticket on official tracker) has not been yet solved.
Have you tested the problematic page in Safari/Chrome/Chromium for desktop? Since they use Webkit, the same system used with mobile Safari/Chrome, you may be able to duplicate the error and find its solution. You can open Chrome's debugger with right click, Inspect element.

Page load Problem

My web page is not loading properly.How to debug this problem?Is there any addon on mozilla for this?
Depending on what you need to test you can get away with Firebug - for example XUL page without much XBL.
If you need to test some chrome JavaScript you might use Chromebug: http://getfirebug.com/releases/chromebug/
If Firebug nor Chromebug can help you can try JavaScript Debugger aka Venkman: https://addons.mozilla.org/en-US/firefox/addon/216/
Venkman is probably most powerful but not the friendliest one.
Also, if nothing else helps you can use alerts.
It is a static web page, or you have a backend with a specific language?
You can try use firebug to figure out the problems, but if you have an backend application, so you have to debug the app instead of the page.

Resources