PDA

View Full Version : canvas.setAttribute


arina
11-08-2004, 06:27 AM
Hello!

Please help me to continue with this example:


<canvas debug="true" title="simple">
<dataset name="dset" src="configuration.jsp" request="true" type="http"/>

<datapointer xpath="dset:/resp/anam" ondata="process()">
<method name="process">
Debug.write(this.immediateparent.getAttribute('tit le')); //ok--->displays 'simple'
Debug.write(this.xpathQuery('@first'));
this.immediateparent.setAttribute("title",this.xpathQuery('@first')); //doesn't change anything
</method>
</datapointer>
</canvas>


This example is working now until the moment when i'm trying to set up a title for canvas. I'd like to set up this title from another resource.


Thank you


Arina