Embed samp applications in your web page

As first service we provide JavaScript API (V0.0.1) to display on your webpage a list of applications for a given list of SAMP MTypes. This API consists in a very basic jquery plugin. Please look at the sample snippet code provided just below to build list through following steps:

You can also look at our simple demo web page

Sample script

<div><!-- skip the following line if your page already integrates the jQuery library --> <script type="text/javascript" src="http://voar.jmmc.fr/api/jquery-1.11.1.min.js"/><!-- define an ul element with uniq id --> <ul id="sampListByMtype"/><!-- load the main javascript and call functions over the previously defined ul --> <script type="text/javascript" src="http://voar.jmmc.fr/api/voar-0.3.js"/> <script type="text/javascript"> $("#sampListByMtype").appendAppList({'mtype':'table.load.votable'}) </script> </div>
Javascript to include onto your web page

Sample result


If the proposed code does not satisty your needs, you may also try your own stuff from the json. API will be delivered versionned and is not subjected to changes, but json may changes.
Add a jsonp parameter with your desired callback name to get a JSONP output.