function (sSampleId, sIframePath) {
				var aIFramePathParts = sIframePath.split("/"),
					i;

				for (i = 0; i < aIFramePathParts.length - 1; i++) {
					if (aIFramePathParts[i] == "..") {
						// iframe path has parts pointing one folder up so remove last part of the sSampleId
						sSampleId = sSampleId.substring(0, sSampleId.lastIndexOf("."));
					} else {
						// append the part of the iframe path to the sample's id
						sSampleId += "." + aIFramePathParts[i];
					}
				}

				return sSampleId;
			}
function (sSampleId, sIframePath) {
				var aIFramePathParts = sIframePath.split("/"),
					i;

				for (i = 0; i < aIFramePathParts.length - 1; i++) {
					if (aIFramePathParts[i] == "..") {
						// iframe path has parts pointing one folder up so remove last part of the sSampleId
						sSampleId = sSampleId.substring(0, sSampleId.lastIndexOf("."));
					} else {
						// append the part of the iframe path to the sample's id
						sSampleId += "." + aIFramePathParts[i];
					}
				}

				return sSampleId;
			}
function ( sSampleId , sIframePath ) { var aIFramePathParts = sIframePath . split ( "/" ) , i ; for ( i = 0 ; i < aIFramePathParts . length - 1 ; i ++ ) { if ( aIFramePathParts [ i ] == ".." ) { // iframe path has parts pointing one folder up so remove last part of the sSampleId sSampleId = sSampleId . substring ( 0 , sSampleId . lastIndexOf ( "." ) ) ; } else { // append the part of the iframe path to the sample's id sSampleId += "." + aIFramePathParts [ i ] ; } } return sSampleId ; }
Extends the sSampleId with the relative path defined in sIframePath and returns the resulting path.
@param {string} sSampleId
@param {string} sIframe
@returns {string}
@private
Extends the sSampleId with the relative path defined in sIframePath and returns the resulting path .
Returns the id of the sample based on the path of the iframe