Skip to content

Instantly share code, notes, and snippets.

View gootyfer's full-sized avatar
🎯
Focusing

Israel Gutiérrez gootyfer

🎯
Focusing
View GitHub Profile
@gootyfer
gootyfer / gist:3162734
Created July 23, 2012 09:02
Space update problem
//Update data in the space
space.getSubResources({
relation: openapp.ns.role+"data",
type: "classon:question",
onAll: function(arr){
var found = false;
for(var i=0; i<arr.length; i++){
if(arr[i].uri == question.id){
//Set representation IS NOT WORKING!!!!!
arr[i].setRepresentation({
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Ejemplos</title>
<style>
ul{
list-style: none;
display: flex;