Commits

Juan Carlos Picado Herrera committed 644c458

Migrated toaster widget

Comments (0)

Files changed (17)

enme-js/deps/src/main/resources/req/json_services.js

 /*
  * create a username profile link.
  */
-encuestame.utilities.usernameLink = function(username) {
-    var url = encuestame.contextDefault;
-    if (username) {
-        url = url.concat("/profile/");
-        url = url.concat(username);
-        return url;
-    } else {
-        url = url.concat("/404");
-        return url;
-    }
-};
+// encuestame.utilities.usernameLink = function(username) {
+//     var url = encuestame.contextDefault;
+//     if (username) {
+//         url = url.concat("/profile/");
+//         url = url.concat(username);
+//         return url;
+//     } else {
+//         url = url.concat("/404");
+//         return url;
+//     }
+// };
 
 /**
  * Create a no results message node.

enme-war/src/main/webapp/WEB-INF/jsp/includes/web/menu.jsp

         </div>
     </div>
     <c:if test="${logged}">
-         <div dddojoType="encuestame.org.core.shared.utils.Toaster" duration="<%=EnMePlaceHolderConfigurer.getProperty("not.toaster.duration")%>"
+         <div data-dojo-type="me/web/widget/ui/Toaster"
+           duration="<%=EnMePlaceHolderConfigurer.getProperty("not.toaster.duration")%>"
            messageTopic="/encuestame/message/publish"
            positionDirection="<%=EnMePlaceHolderConfigurer.getProperty("not.toaster.position")%>"
            id="toasted_message">

enme-war/src/main/webapp/resource/css/resources.css

 }
 
 .web-item-wrapper .item .loading{
-	background-image: url(../../images/ball-loader.gif);
+    /*background-image: url(../../images/ball-loader.gif);*/
 }
 
 div.options .saveButton {

enme-war/src/main/webapp/resource/js/me/core/URLServices.js

-require(["dojo", "dojo/request/notify"], function(dojo, notify) {
+require(["dojo", "dojo/request/notify", "me/core/enme"], function(dojo, notify, _ENME) {
 
   notify("start", function(){
     // Do something when the request queue has started
            } else if (lang.isArray(url) && url.length === 1) {
                _service_url = _services.service(url[0]);
            }
-           console.log("url to call -->", _service_url);
+           _ENME.log("url to call -->", _service_url);
            if (_service_url !== null ) {
                 // make the request
                 request(_service_url, _params).then(_load, _error,

enme-war/src/main/webapp/resource/js/me/core/enme.js

-//require(["dojo/parser", "ready!"], function(AuthoredDialog, parser) {
-//    // Parse the page
-//    parser.parse();
-//
-//});
+/*
+ * Copyright 2013 encuestame
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *       http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+
+/***
+ *  @author juanpicado19D0Tgm@ilDOTcom
+ *  @version 1.146
+ *  @module ENME
+ *  @namespace Widget
+ *  @class enme
+ */
 define(["dojo",
         "dojo/dom",
         'dojo/_base/json',
       },
 
       /**
+       * Build a user profile url.
+       * @param username the user name
+       * @method
+       */
+     usernameLink :function(username) {
+          var url = this.config('contextPath');
+          if (username) {
+              url = url.concat("/profile/");
+              url = url.concat(username);
+              return url;
+          } else {
+              url = url.concat("/404");
+              return url;
+          }
+      },
+
+      /**
        *
        */
       stopEvent : function(e) {

enme-war/src/main/webapp/resource/js/me/web/widget/comments/Comment.js

+/*
+ * Copyright 2013 encuestame
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *       http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+
+/***
+ *  @author juanpicado19D0Tgm@ilDOTcom
+ *  @version 1.146
+ *  @module Comment
+ *  @namespace Widget
+ *  @class Comment
+ */
 define([
          "dojo/_base/declare",
      "dijit/_WidgetBase",
            try {
              this._fillComment();
            } catch (err) {
-             console.error("error on fill comment", err);
+              console.error("error on fill comment", err);
            } finally {
             //something could be happend.
               }
            var a = dojo.create("a");
            var commentedBy = (this.data.commented_by == null ? this.data.commented_username : this.data.commented_by);
            a.innerHTML = commentedBy;
-           a.href = encuestame.utilities.usernameLink(this.data.commented_username);
+           a.href = _ENME.usernameLink(this.data.commented_username);
            //a.target = "_blank";
            this._commented_by.appendChild(a);
          }
        }
 
   });
-});
-//dojo.provide("encuestame.org.core.comments.Comment");
-//
-//dojo.require("dijit._Templated");
-//dojo.require("dijit._Widget");
-//dojo.require("dijit.form.Button");
-//dojo.require("dijit.form.TextBox");
-//dojo.require('encuestame.org.core.commons');
-//dojo.require('encuestame.org.core.shared.utils.AccountPicture');
-//
-//dojo.declare(
-//        "encuestame.org.core.comments.Comment",
-//        [dijit._Widget, dijit._Templated],{
-//
-//          templatePath: dojo.moduleUrl("encuestame.org.core.comments", "templates/comment.html"),
-//
-//          widgetsInTemplate: true,
-//
-//          data : null,
-//
-//          /**
-//           *
-//           */
-//          postCreate : function() {
-//        	  if (this.data) {
-//        		  try {
-//        			  this._fillComment();
-//        		  } catch (err) {
-//        			  console.error("error on fill comment", err);
-//        		  } finally {
-//        			 //something could be happend.
-//        		  }
-//        	  }
-//          },
-//
-//          /*
-//           *
-//           */
-//          _fillComment : function() {
-//        	  //set user link
-//        	  if (this._commented_by) {
-//        		  var a = dojo.create("a");
-//        		  var commentedBy = (this.data.commented_by == null ? this.data.commented_username : this.data.commented_by);
-//        		  a.innerHTML = commentedBy;
-//        		  a.href = encuestame.utilities.usernameLink(this.data.commented_username);
-//        		  //a.target = "_blank";
-//        		  this._commented_by.appendChild(a);
-//        	  }
-//        	  //set content.
-//        	  /*
-//        	   * in the future the content could be formated by HTML.
-//        	   */
-//        	  if (this._comment_content) {
-//        		  var p = dojo.create("p");
-//        		  p.innerHTML = this.data.comment;
-//        		  this._comment_content.appendChild(p);
-//        	  }
-//        	  //set date
-//        	  if(this._comment_content_date){
-//        		  var date = dojo.create("a");
-//        		  date.innerHTML = ENME.fromNow(this.data.created_at, "YYYY-MM-DD");
-//        		  date.href = "#"; //TODO: future inprovments
-//        		  this._comment_content_date.appendChild(date);
-//        	  }
-//          }
-//    });
+});

enme-war/src/main/webapp/resource/js/me/web/widget/comments/Comments.js

+/*
+ * Copyright 2013 encuestame
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *       http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+
+/***
+ *  @author juanpicado19D0Tgm@ilDOTcom
+ *  @version 1.146
+ *  @module Comment
+ *  @namespace Widget
+ *  @class Comments
+ */
 define([
          "dojo/_base/declare",
      "dijit/_WidgetBase",
         }
 
   });
-});
-//dojo.provide("encuestame.org.core.comments.Comments");
-//
-//dojo.require("dijit._Templated");
-//dojo.require("dijit._Widget");
-//dojo.require("dijit.form.Button");
-//dojo.require("dijit.form.TextBox");
-//dojo.require('encuestame.org.core.commons');
-//dojo.require('encuestame.org.core.comments.Comment');
-//
-///**
-// * Comments Widgets.
-// */
-//dojo.declare(
-//    "encuestame.org.core.comments.Comments",
-//    [dijit._Widget, dijit._Templated],{
-//
-//      templatePath: dojo.moduleUrl("encuestame.org.core.comments", "templates/comments.html"),
-//
-//      type : "",
-//
-//      item_id : null,
-//
-//      widgetsInTemplate: true,
-//
-//      /*
-//       *
-//       */
-//      postCreate : function() {
-//          if (this.item_id) {
-//              this._loadComments({});
-//          }
-//      },
-//
-//
-//      /*
-//       * load all comments.
-//          error: {},
-//          success: {
-//            comments: [
-//              {
-//                id: 1,
-//                comment: "xxxxxx",
-//                created_at: "2011-06-29",
-//                likeVote: 432,
-//                dislike_vote: 31,
-//                item_id: 101,
-//                type: "TWEETPOLL",
-//                uid: 4,
-//                parent_id: null
-//              }
-//            ]
-//          }
-//       */
-//      _loadComments : function() {
-//              var load = dojo.hitch(this, function(data) {
-//                  console.info("comments", data);
-//                  if("success" in data) {
-//                      var comments = data.success.comments;
-//                      if (comments.length > 0) {
-//                          dojo.forEach(comments, dojo.hitch(this, function(data, index) {
-//                              var widget = new encuestame.org.core.comments.Comment({data : data});
-//                              this._items.appendChild(widget.domNode);
-//                          }));
-//                      } else {
-//                          this._printNoCommentsText();
-//                      }
-//                  }
-//              });
-//              var error = function(error) {
-//                  console.error("error", error);
-//              };
-//          encuestame.service.xhrGet(encuestame.service.comments.list(this.type), { id : this.item_id, max: 10}, load, error);
-//      },
-//
-//      /*
-//       *
-//       */
-//      _printNoCommentsText : function() {
-//          console.info("No comments");
-//          if (this._items) {
-//              var div = dojo.create("div");
-//              dojo.addClass(div, "comments-no-content");
-//              div.innerHTML = encuestame.constants.messageCodes["022"];
-//              //dojo.place(this._items. div);
-//              this._items.appendChild(div);
-//          }
-//      }
-//});
-//
-///**
-// *
-// */
-//dojo.declare(
-//        "encuestame.org.core.comments.CommentForm",
-//        [dijit._Widget, dijit._Templated],{
-//
-//          templatePath: dojo.moduleUrl("encuestame.org.core.comments", "templates/commentForm.html")
-//
-//
-//        });
+});

enme-war/src/main/webapp/resource/js/me/web/widget/hashtags/HashtagChart.js

     RaphaelLine,
     _ENME) {
 
-  console.log("_RaphaelLine", RaphaelLine);
+    _ENME.log("_RaphaelLine", RaphaelLine);
 
    var line_default = {
           smoot : false,

enme-war/src/main/webapp/resource/js/me/web/widget/poll/PollNavigate.js

 
                 // provide an update on progress:
                 deferred.progress(function(e){
-                    console.log('progress', e);
+                    _ENME.log('progress', e);
                 });
 
                 // when the process finishes:
                 deferred.resolve(function(e){
-                    console.log('resolve', e);
+                    _ENME.log('resolve', e);
                 });
 
                 // performing "callbacks" with the process:

enme-war/src/main/webapp/resource/js/me/web/widget/support/AbstractFilterSupport.js

 
   return declare(null, {
 
-  	   /*
+         /*
         * the key to restore / save the status of the widget in the browser
         */
        _key_save : 'filter-default',
        /*
         * save the status of all components.
         */
-       _status : {},       
+       _status : {},
 
        /*
         * Save the status of widget in the browser
         */
        _buildStatusObject : function(data) {},
 
-       /* 
+       /*
         * Restore the status form storage data.
         */
        _restoreStatus : function() {
            var _saved = _ENME.restoreItem(this._key_save);
-           console.log("RESTORE STATUS", _saved);
+           _ENME.log("RESTORE STATUS", _saved);
            if(_saved) {
                this._status = json.fromJson(_saved);
-               console.log("RESTORE STATUS this._status", this._status);
+               _ENME.log("RESTORE STATUS this._status", this._status);
                this._buildStatusObject(this._status);
            }
-       },       
+       },
 
   });
 });

enme-war/src/main/webapp/resource/js/me/web/widget/ui/Message.js

+/*
+ * Copyright 2013 encuestame
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *       http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+
+/***
+ *  @author juanpicado19D0Tgm@ilDOTcom
+ *  @version 1.146
+ *  @module UI
+ *  @namespace Widget
+ *  @class Message
+ */
+define([
+     "dojo/_base/declare",
+     "dijit/_WidgetBase",
+     "dijit/_TemplatedMixin",
+     "dijit/_WidgetsInTemplateMixin",
+     "me/core/main_widgets/EnmeMainLayoutWidget",
+     "me/core/enme",
+     "dojo/text!me/web/widget/ui/templates/message.html"],
+    function(
+    declare,
+    _WidgetBase,
+    _TemplatedMixin,
+    _WidgetsInTemplateMixin,
+    main_widget,
+    _ENME,
+     template) {
+
+  return declare([ _WidgetBase, _TemplatedMixin, main_widget, _WidgetsInTemplateMixin], {
+
+     /**
+      * template string.
+      * @property
+      */
+     templateString : template,
+
+     /**
+      *
+      * @property
+      */
+     message : "message test",
+
+      /**
+       * Post create
+       * @method postCreate
+       */
+      postCreate : function () {
+         if (this.description) {
+             dojo.addClass(this._description, "hidden");
+         }
+      }
+  });
+});

enme-war/src/main/webapp/resource/js/me/web/widget/ui/MessageSearch.js

          * Hide the loader.
          */
         hide : function () {
-            console.log("HIDEEE MESSAGEEEE");
+            _ENME.log("HIDEEE MESSAGEEEE");
             this._wipeWidget.wipeOutOne();
         }
     });

enme-war/src/main/webapp/resource/js/me/web/widget/ui/Toaster.js

-dojo.provide("encuestame.org.core.shared.utils.Toaster");
+/*
+ * Copyright 2013 encuestame
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *       http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
 
-dojo.require("dojox.widget.Toaster");
-dojo.require("encuestame.org.main.EnmeMainLayoutWidget");
+/***
+ *  @author juanpicado19D0Tgm@ilDOTcom
+ *  @version 1.146
+ *  @module UI
+ *  @namespace Widget
+ *  @class Toaster
+ */
+define([
+         "dojo/_base/declare",
+   		 "dojox/widget/Toaster",
+   		 "me/web/widget/ui/Message",
+     	  "me/core/enme"],
+    function(
+    declare,
+    Toaster,
+    Message,
+    _ENME) {
 
-dojo.declare(
-    "encuestame.org.core.shared.utils.Toaster",
-    [dojox.widget.Toaster],{
-    	
-		postCreate: function(){
-			//this.inherited(arguments);
-			this.hide();			
-			// place node as a child of body for positioning
-			//dojo.body().appendChild(this.domNode);		
-			if (this.messageTopic) {
-				dojo.subscribe(this.messageTopic, this, "_handleMessage");
-			}
-		},
-		
-		
-		/**
-		 * 
-		 * @param message
-		 */
-		_setContent: function(message) {
-			var widget = new encuestame.org.core.shared.utils.Message({
-				message : message,
-				descriptiom : "",
-				type : this.messageCurrentType || 'message'
-			});
-			
-			if (message && this.isVisible) {
-				this.contentNode.appendChild(widget.domNode);
-			} else {
-				dojo.empty(this.contentNode);
-				this.contentNode.appendChild(widget.domNode);
-			}						
-		},	
-		
-		/**
-		 * 
-		 * @param message
-		 */
-		_handleMessage: function(/*String|Object*/message) {
-			if (dojo.isString(message)) {
-				this.setContent(message);
-			} else {
-				var currentMessage = message.message;
-				if (message.description) {
-					var content = dojo.create("div");
-					content.innerHTML = currentMessage;
-					var desc = dojo.create("p");
-					desc.innerHTML = message.description;
-					content.appendChild(desc);
-					currentMessage = content;
-				}
-				this.messageCurrentType = message.type;
-				this.setContent(currentMessage, message.type, message.duration);
-			}
-		},		
-		
-		/**
-		 * 
-		 */
-		_placeClip: function() {
-			var view = dojo.window.getBox();
-			view.w = 900;
-			var nodeSize = dojo.marginBox(this.containerNode);
+  return declare([Toaster], {
+
+     /**
+      * template string.
+      * @property messageTopic
+      */
+ 	 messageTopic : "/encuestame/message/publish",
+
+ 	/**
+ 	 *
+ 	 * @method
+ 	 */
+	postCreate: function() {
+		//this.inherited(arguments);
+		this.hide();
+		// place node as a child of body for positioning
+		//dojo.body().appendChild(this.domNode);
+		if (this.messageTopic) {
+			dojo.subscribe(this.messageTopic, this, "_handleMessage");
+		}
+	},
 
-			var style = this.clipNode.style;
-			// sets up the size of the clipping node
-			style.height = nodeSize.h+"px";
-			style.width = nodeSize.w+"px";
 
-			// sets up the position of the clipping node
-			var pd = this.positionDirection;
-			if(pd.match(/^t/)){
-				style.top = view.t+"px";
-			}else if(pd.match(/^b/)){
-				style.top = (view.h - nodeSize.h - 2 + view.t)+"px";
+	/**
+	 *
+	 * @param method
+	 */
+	_setContent: function(message) {
+		var widget = new Message({
+			message : message,
+			descriptiom : "",
+			type : this.messageCurrentType || 'message'
+		});
+
+		if (message && this.isVisible) {
+			this.contentNode.appendChild(widget.domNode);
+		} else {
+			dojo.empty(this.contentNode);
+			this.contentNode.appendChild(widget.domNode);
+		}
+	},
+
+	/**
+	 *
+	 * @param message
+	 */
+	_handleMessage: function(/*String|Object*/message) {
+		if (dojo.isString(message)) {
+			this.setContent(message);
+		} else {
+			var currentMessage = message.message;
+			if (message.description) {
+				var content = dojo.create("div");
+				content.innerHTML = currentMessage;
+				var desc = dojo.create("p");
+				desc.innerHTML = message.description;
+				content.appendChild(desc);
+				currentMessage = content;
 			}
+			this.messageCurrentType = message.type;
+			this.setContent(currentMessage, message.type, message.duration);
+		}
+	},
+
+	/**
+	 *
+	 */
+	_placeClip: function() {
+		var view = dojo.window.getBox();
+		view.w = 900;
+		var nodeSize = dojo.marginBox(this.containerNode);
+
+		var style = this.clipNode.style;
+		// sets up the size of the clipping node
+		style.height = nodeSize.h+"px";
+		style.width = nodeSize.w+"px";
+
+		// sets up the position of the clipping node
+		var pd = this.positionDirection;
+		if(pd.match(/^t/)){
+			style.top = view.t+"px";
+		}else if(pd.match(/^b/)){
+			style.top = (view.h - nodeSize.h - 2 + view.t)+"px";
+		}
 //			if(pd.match(/^[tb]r-/)){
 //				style.left = (view.w - nodeSize.w - 1 - view.l)+"px";
 //			}else if(pd.match(/^[tb]l-/)){
 //				style.left = 0 + "px";
 //			}
-			style.left = "750px";	
-			style.clip = "rect(0px, " + nodeSize.w + "px, " + nodeSize.h + "px, 0px)";
-			if(dojo.isIE){
-				if(!this.bgIframe){
-					this.clipNode.id = dijit.getUniqueId("dojox_widget_Toaster_clipNode");
-					this.bgIframe = new dijit.BackgroundIframe(this.clipNode);
-				}
-				var iframe = this.bgIframe.iframe;
-				if(iframe){ iframe.style.display="block"; }
+		style.left = "750px";
+		style.clip = "rect(0px, " + nodeSize.w + "px, " + nodeSize.h + "px, 0px)";
+		if(dojo.isIE){
+			if(!this.bgIframe){
+				this.clipNode.id = dijit.getUniqueId("dojox_widget_Toaster_clipNode");
+				this.bgIframe = new dijit.BackgroundIframe(this.clipNode);
 			}
-		},
-});
-
+			var iframe = this.bgIframe.iframe;
+			if(iframe){ iframe.style.display="block"; }
+		}
+	}
 
-/**
- *
- */
-dojo.declare(
-    "encuestame.org.core.shared.utils.Message",
-    [encuestame.org.main.EnmeMainLayoutWidget],{
-    	
-        templatePath: dojo.moduleUrl("encuestame.org.core.shared.utils", "template/message.html"),
-        
-        message : "message test",
-        
-        postCreate : function () {	
-        	if (this.description) {
-        		dojo.addClass(this._description, "hidden");
-        	}
-        }   
+  });
 });

enme-war/src/main/webapp/resource/js/me/web/widget/ui/templates/loading_search.html

-<div class="enme-ui-loading-search" dojoAttachPoint="_loading" style="display: none;">
-      <div class="enme-ui-loading-search-base" dojoAttachPoint="_message">
+<div class="enme-ui-loading-search" data-dojo-attach-point="_loading" style="display: none;">
+      <div class="enme-ui-loading-search-base" data-dojo-attach-point="_message">
            Loading ...
       </div>
 </div>

enme-war/src/main/webapp/resource/js/me/web/widget/ui/templates/message.html

+<div class="message_toaster">
+    <div data-dojo-attach-point="_message">
+        ${message}
+    </div>
+</div>

enme-war/src/main/webapp/resource/js/me/web/widget/utils/template/message.html

-<div class="message_toaster">
-    <div dojoAttachPoint="_message">
-        ${message}
-    </div>
-</div>

enme-war/src/main/webapp/resource/js/me/web/widget/validator/RealNameValidator.js

+/*
+ * Copyright 2013 encuestame
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *       http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+
+/***
+ *  @author juanpicado19D0Tgm@ilDOTcom
+ *  @version 1.146
+ *  @module SignUp
+ *  @namespace Widgets
+ *  @class RealNameValidator
+ */
 define([
          "dojo/_base/declare",
          "dijit/_WidgetBase",
         _validate : function(event) {
             this.inputTextValue = this._input.value;
                 this._loadService(
-            this.getServiceUrl(), {
+                 this.getServiceUrl(), {
                 context : this.enviroment,
                 real_name : this._input.value
             }, this.error);