Dojo browser compatibility check? - dojo

I am writing the Dojo applications. I want to provide the browser compatibility for Firefox 3.0+, IE 7+. Should I follow any specific techniques to get the browser compatiability?

The list of supported browsers is here : http://dojotoolkit.org/reference-guide/releasenotes/1.7.html.
One of the advantages of using a framework over plain javascript is that it deals with most compatibility issues for you.

Related

Is there a chrome extension to setup proxies and switch between them using a programming language?

I'm developing a selenium application that uses undetected chromedriver as a web driver, I want to use the application with a proxy, undetected chromedriver doesn't really have a functional way to add a proxy, I am wondering if there's a chrome extension that allows you to add a proxy using a programming language, I'm developing my selenium application in Python. Otherwise, I'll appreciate any way to implement a proxy to my application efficiently. Thanks for your time.
I tried selenium-wire, but the web drivers are missing quite so many classes and do behave poorly. I also tried a lot of chrome extensions, they require you to use their UI. I also tried a project I found at github but it doesn't support undetected chromedriver. There's a chrome extension that does what I need according to its description but it's not functional.

Working with multiple APIs for Multi-platform apps

I currently have a Chrome extension that uses Chrome's APIs and plan on making a Microsoft Edge version once it opens up as well. My question is how do you work with the multiple API's?
For example, I use the following to check if the extension has just been installed or not:
chrome.runtime.onInstalled
I'm assuming for Edge it would be something like:
edge.runtime.onInstalled
What's the best way to work with both of these? Do I just duplicate the code within the file where there is a copy of the code for one and the other and presumably the browser will ignore the other browser's code? (doesn't sound like the good option)
Or is there some cross-browser framework that I should use instead?
Or is there some other solution?
And please forgive me, this is my first entry into building extensions/apps, I'm generally just a Web Designer.
Thank you!
All browsers support or
chrome.runtime.onInstalled
or
browser.runtime.onInstalled
So, the right way is to start scripts in your extension with this code:
var browser = browser || chrome
And then use browser, for example:
browser.runtime.onInstalled
(I'm sorry about my english)
Edit:
Chrome and Opera support chrome and not browser.
Firefox support chrome and browser.
Edge support browser and I don't know if it support chrome.
Anyway, my solution work in all browsers.
Update (5.8.16):
Edge support browser and not chrome.

what does "*firefoxproxy" or "*iexploreproxy" do

I am researching the selenium and I don't understand "*firefoxproxy" does for ? I can use selenium well with just "*firefox". Please explain to me when we will use that mode ?
From the Selenium documentation:
"...additional run modes of *iexploreproxy and *firefoxproxy. These are provided for backwards compatibility only, and should not be used unless required by legacy test programs. Their use will present limitations with security certificate handling and with the running of multiple windows if your application opens additional browser windows."
http://seleniumhq.org/docs/05_selenium_rc.html
So just stick with *firefox.

XUL used in web development

I am looking for some start up guidelines to share their experience on XUL development in web application. How good is the option to develop the interface in XUL ?. Can IE understand XUL interface?. I have started reading about XUL and I am liked confused a lot.
Please share your development experience on XUL development.
Thanks
XUL is a Mozilla-only technology meaning that it will only work in Firefox and other browsers based on the Gecko engine. I have bad news for you though: Firefox 4 (meaning Gecko 2.0) disabled support for remote XUL for security reasons, so using it in web applications will no longer be possible. It was arguably a bad idea in the first place.
Take a look into Ample SDK UI Framework, XUL (see examples) is just one of the several XML-based technologies it enables across all browsers, also in IE6.
The ZK web framework (www.zkoss.org) is based on XUL. Actually the web pages you built, using this framework, have the extension ZUL. It produces html + ajax code capable to run in all modern browsers. We are using it in my company for two years now and i have to say it changed my view about XUL.

Formatblock cross browser compatible alternative

I'm using the jhtmlarea html editor in a webb application.
Now during testing I found out that it doesn't work properly with setting headers (h1-4) since it uses the execcommand with "formatblock".
According to this page this isn't supported by for example IE7 and testing has shown that it also has issues in Safari 3-4.
This is at the end of the development project so I need a solution quite fast. Does anybody have any idea on how to make a crossbrowser compatible solution for setting headers?