# HG changeset patch # User paulb # Date 1115594019 0 # Node ID 4d1f2d5dde87b888a4c88914be33c78d13bc9da8 # Parent 46e5c4da46ce66591250b063e3f3e525c08ebf64 [project @ 2005-05-08 23:13:39 by paulb] Introduced element path usage instead of identifying the interesting elements using the field names. This makes the updating of multiple fields more reliable. diff -r 46e5c4da46ce -r 4d1f2d5dde87 examples/Common/Configurator/Resources/scripts/XSLForms.js --- a/examples/Common/Configurator/Resources/scripts/XSLForms.js Sun May 08 23:13:18 2005 +0000 +++ b/examples/Common/Configurator/Resources/scripts/XSLForms.js Sun May 08 23:13:39 2005 +0000 @@ -1,4 +1,4 @@ -function requestUpdate(url, fieldName, targetName, targetFieldNames) { +function requestUpdate(url, fieldName, targetName, targetFieldNames, elementPath) { var xmlhttp = Sarissa.getXmlHttpRequest(); xmlhttp.open("POST", url, false); @@ -27,11 +27,11 @@ targetFieldValue = targetFieldNodes[v].value; requestBody += ("\r\n" + targetFieldName + "=" + targetFieldValue); } - - // Add the target name specification. + } - requestBody += ("\r\ntarget-field-name=" + targetFieldName); - } + // Add the element path specification. + + requestBody += ("\r\nelement-path=" + elementPath); // Load the remote document with the given parameters sent as text in the request body.