[Framework]update description from data path
Brought to you by:
bgarrigues,
gyom
This function updates all descr nodes that print data
given in the path.
It could be usefull to integrate it into the js framework
(very usefull when combined with on_change() attribute)
function refresh_display_from_data_path(strPath){
var xmlDataNode = xml_selectSingleNode
(gform_XMLDATA,strPath)
var l_xmlDESCRNodesList = formDATA_selectDESCR
(xmlDataNode)
for(i=0; i<l_xmlDESCRNodesList.length; i++)
{
formDESCR_refreshDisplay(
l_xmlDESCRNodesList[i])
}
}
Any improvement welcome
Note :
Using this function in a on_change() call makes IExplorer
5.0 bugs (fatal error) when you click on a field being
updated within the on_change().
It does works starting from 5.5 version.