From: Heiko Stuebner <heiko [email protected]>

---
 source/class/hjx/Hijax.js |   24 ++++++++++++++++++------
 1 files changed, 18 insertions(+), 6 deletions(-)

diff --git a/source/class/hjx/Hijax.js b/source/class/hjx/Hijax.js
index 669471c..5633924 100644
--- a/source/class/hjx/Hijax.js
+++ b/source/class/hjx/Hijax.js
@@ -381,6 +381,14 @@ qx.Class.define("hjx.Hijax",
 
       // Prepare the request
       var url = this._baseUrl + path;
+
+      //when told to submit the elements to refresh
+      if (this._settings._sendElements) {
+        url+= (url.indexOf("?") == -1) ? "?" : "&";
+        var elems = this._getWantedElementId(path);
+        url+= 
this._settings._sendElements.key+"="+elems.join(this._settings._sendElements.separator);
+      }
+
       if (formInfo) {
         var req = new qx.io.remote.Request(url, formInfo.method.toUpperCase());
         req.setRequestHeader("Content-Type", 
"application/x-www-form-urlencoded");
@@ -476,12 +484,7 @@ qx.Class.define("hjx.Hijax",
       anchorElem.scrollIntoView(true);
     },
 
-
-    _updateContent : function(pageContent, path, anchor, isFormSubmit) {
-      var contentParentElem = [];
-      pageContent = this._parsePageContent(pageContent);
-      document.title = pageContent.title;
-
+    _getWantedElementId : function(path) {
       var wantedElemId = null;
       var pageSettings = this._settings._pages[path];
       if (pageSettings != null && pageSettings.event == (isFormSubmit ? 
"submit" : "click")) {
@@ -489,6 +492,15 @@ qx.Class.define("hjx.Hijax",
       } else {
         wantedElemId = this._settings._pages['*'].domElem;
       }
+      return wantedElemId;
+    },
+
+    _updateContent : function(pageContent, path, anchor, isFormSubmit) {
+      var contentParentElem = [];
+      pageContent = this._parsePageContent(pageContent);
+      document.title = pageContent.title;
+
+      var wantedElemId = this._getWantedElementId(path);
 
       if (wantedElemId != null) {
         if (typeof(wantedElemId) != 'object') {
-- 
1.6.3.3


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to