Menu

#20 [Framework]update description from data path

open
5
2004-07-12
2004-07-12
No

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.

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.