My main doubt is how dojo knows what to do in the first case (when I just use the s:a tag) and why it does not know what to do in the second case (when I copy the resultant html from the 1st case to create a new link). Because the resultant html is the same in both cases...

Thank you in advanced.



Pablo Vázquez Blázquez escribió:
If I just write your code, the new link is created similar to the other one, but when I click it nothing happens...

Do I have to register some event in dojo or sth like this?

Thank you very much.

Alvaro Sanchez-Mariscal escribió:
Why not using dojo api to clone the node?
<div id="source">
  <s:a theme="ajax" href="${pruebaUrl}" indicator="indicator"
       loadingText=" " targets="workspaceAjaxContent">
   Try
  </s:a>
</div>

...

<script type="text/javascript">
function aver() {
   var sourceNode = dojo.byId('source');
   var targetNode = dojo.byId('workspaceAjaxContent');

   dojo.dom.copyChildren(sourceNode, targetNode);
}
</script>

If copyChildren does not fit to your requirements, take a look at the
dojo.dom api:

http://dojo.inpdx.net/dojobox/trunk/api/#dojo.dom

Un saludo,



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to