Rank: Newbie
Joined: 10/3/2007 Posts: 2
|
hi,
i used documentservices webservice via javascript and it rightly deleted a node from the database and from the treeview. however, when i list nodes/images via xslt then the deleted node is still there and still displays. it even has the same deleted @id and title of image. i restarted browser, computer, everything. does anyone know where this relationship may be stored or cached. there must be a file or multi-valued database cell storing this information and i can't find it to delete it.
the deleteFile() below is just a javascript function to call the web service to delete the node.
[code] <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE xsl:Stylesheet [ <!ENTITY nbsp " "> ]> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxml="urn:schemas-microsoft-com:xslt" xmlns:umbraco.library="urn:umbraco.library" exclude-result-prefixes="msxml umbraco.library">
<xsl:output method="xml" omit-xml-declaration="yes"/>
<xsl:param name="currentPage"/>
<xsl:template match="/">
<!-- The fun starts here --> <xsl:for-each select="$currentPage/node [string(data [@alias='umbracoNaviHide']) != '1']"> <div style="text-align: center; width: 150px; height: 125px; float: left; border: 1px solid #999; background-color: #EDEDED; padding: 5px; margin: 10px;" onMouseOver="this.style.backgroundColor='CCC';" onMouseOut="this.style.backgroundColor='#EDEDED';">
<!-- get first photo thumbnail --> <a href="{umbraco.library:NiceUrl(@id)}"> <img src="{concat(substring-before(data [@alias='umbracoFile'],'.'), '_thumb.jpg')}" style="border: none;"/><br/> <b><xsl:value-of select="@nodeName"/></b> </a> <br/>
<b> <input Type="Button" Value="delete!" OnClick="alert({@id}); deleteFile({@id})"/> </b> </div> </xsl:for-each>
</xsl:template>
</xsl:stylesheet>
thanks, c.
|