This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"title": "External Link Example (Get)", | |
"alert": "Sample Alert", | |
"icon": "little_star", | |
"badge": "+1", | |
"sound": "circus.wav", | |
"vibrate": false, | |
"callToAction": { | |
"action": "B", | |
"uri": "http: //www.example.com", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
qxhr.create(conn).then(function(data) { | |
//do something here | |
}, function(error) { | |
//handle the error here | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
erfPicker = require('ui/common/fragments/erfPicker').create({ | |
data : erfData, | |
callBack : function(e) { | |
var selection = e.selectedValue[0] || 1; | |
erfButton.title = selection; | |
} | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
erfPicker = require('ui/common/fragments/erfPicker').create({ | |
data : erfData, | |
callBack : function(e) { | |
var selection = '' + (e.selectedValue[0] || 1); | |
erfButton.title = selection; | |
} | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html xmlns="http://www.w3.org/1999/html"> | |
<head> | |
<title>Dementia ScrapBook</title> | |
<link href="css/bootstrap.css" rel="stylesheet"> | |
<link href="css/bootstrap-responsive.css" rel="stylesheet"> | |
<link href="css/docs.css" rel="stylesheet"> | |
<link href='http://fonts.googleapis.com/css?family=Metrophobic' rel='stylesheet' type='text/css'> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script> | |
<script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*global L */ | |
/*jslint nomen: true, sloppy : true, plusplus: true, vars: true, newcap: true*/ | |
/** | |
* Background Services. File and data uploads as well as claim status updates are all processed | |
* using the background services. They feed off items written to the dataqueue table by the UI | |
* during normal operation. The background service is sandboxed from the main app therefore there is | |
* a degree of code duplication here with copies of functions used elsewhere in the app duplicated here. | |
* @module bgService | |
*/ | |
//TODO refactor all these helper functions as commonJS so we can remove all the duplicated code. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$mongoDB = new Mongo(); | |
$database = $mongoDB->selectDB("BVS"); | |
$collection = $database->createCollection('fs.files'); | |
$search = array("metadata.formdata.claimid" => "4"); | |
$replace = array('$set'=>array("metadata.formdata.mynewfield" => "wibble")); // note use of single quotes around $set. This is compulsory | |
$multiple = array("multiple" => true); // used to update all records that match default is false (update first record only) | |
$collection->update($search, $replace, $multiple); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(function() { | |
$(document).ready(function() { | |
$.getJSON('howrwe.json', function(chartvalues) { | |
var chart = new Highcharts.Chart({ | |
chart: { | |
renderTo: 'container', | |
type: 'bar' | |
}, | |
tooltip: { | |
formatter: function() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*global $ Highcharts */ | |
$(function () { | |
$(document).ready(function () { | |
$.ajax({ | |
url: 'http://www.stepupsoftware.co.uk/howrwe.json', | |
method: 'GET', | |
async: false, | |
success: function (chartvalues) { | |
var chart = new Highcharts.Chart({ | |
chart: { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$mongoDB = new Mongo(); | |
$database = $mongoDB->selectDB("BVS"); | |
$collection = $database->createCollection('fs.files'); | |
//to get the attachments metadata back | |
$query = array("metadata.formdata.claimid" => "SUS14052012-001"); | |
// $items is a cursor of mongodata | |
$items = $collection->find($query); | |
//iterate through the collection and retrieve the named file | |
$grid = $database->getGridFS(); |