Site Home  »  Intro

Intro

Tags:  

Introduction to the Crossrider Framework

Crossrider framework gives every developer easy developing tools to achieve a full-on cross-browser extensions using regular Javascript. That means you can write simple JS code that will run on different browsers as extension, without the hassle of taking care of each browser specific requirements and different procedures. 
Write your code once in JS with native support of jQuery library and its vast array of plugins and  we will export it to the different browsers.

Although you can write your own JS code without the need of anything else, Crossrider platform provides easy JS appAPI object that will make your life even easier when developing your own extension.

Check out the left sidebar and drill down each section.

We would be glad to answer any question you have at our Q&A community.
Also, feel free to contact us at support@crossrider.com with any question you might have. 


smidwap@gmail.com+(Guest) 186 - days ago 
Is there any way to widen the scope of variables in the background code so that the extension can see them? For example, I am declaring several constants in the background code which the extension needs access to as well. I would rather not define them twice, one on each script (that would sort of defeat the purpose of the constants). Maybe there's a way to include a common file on both scripts that contains the constants? - Matt
As they are two different instances there is no way to share the variables between the page and the background codes, but good solution for not having them declared twice is:
1. At the starting point of 'page script' to send message to the background with request to initialize these vars
2. The background will get this message and send back hash of the variables
3. The page script will get these values and initialize all the variables and will start the page code itself

This will work well but obviously it's only to avoid a lot of duplicated variables and doesn't worth for 2-3 variables...
Post a comment

Your Name or E-mail ID (mandatory)






 RSS of this page

Written by:   Version:   Last Edited By:   Modified