Menu ▾ ▴

#11 formDATA_set bug when "updateDisplay" parameter to true

open
nobody
5
2005-02-04
2005-02-04
No

Here is the correct code for this function :

//=========================================

function formDATA_set(p_strPath,p_strValue,
updateDisplay)
{
var l_xmlNode=xml_selectSingleNode
(gform_XMLDATA, p_strPath)
if(l_xmlNode)
{
if(! updateDisplay) xml_setValue
(l_xmlNode,p_strValue)
else formDATA_update(l_xmlNode,
p_strValue)
}

}

"p_xmlDataNode" has been replaced with "l_xmlNode".

Discussion


Log in to post a comment.