Index: SPARQLBuilderWWW/web/sparqlbuilder.js
===================================================================
--- SPARQLBuilderWWW/web/sparqlbuilder.js (revision 219)
+++ SPARQLBuilderWWW/web/sparqlbuilder.js (revision 220)
@@ -162,5 +162,4 @@
     var path = JSON.stringify(pathobj);
     var url = 'http://www.sparqlbuilder.org/api/sparql?path=' + encodeURIComponent(path);
-    //var url = 'http://localhost:8080/api/sparql?path=' + encodeURIComponent(path);
     var sparql = '';
     var self = this;
@@ -171,8 +170,9 @@
         async: false,
         success : function(data) {
+            var event = new $.Event('write');
             $("#" + self.result).val(data);
-            //$("#" + self.endPoint).val($('EndPointSelect').val());
             $("#" + self.endPoint).val(self.endpoint);
             self.hideBuilder();
+            $("#" + self.result).trigger(event, [data, pathobj]);
         }
     });
