Hi all,

I´ve been for two whole days treating with this issue, so I would be very greateful if any help.

Well, I have a .jspx for my left tile of the page and then I have another tile for the right side.

When the left side is loaded, it has 2 links:

- one called "Try". If I click this link, an ajax request in sent to the server and the result is written in the rigth side of the page. OK.

***Here is the code***
<s:url id="pruebaUrl" action="Prueba"/>
<s:a theme="ajax" href="${pruebaUrl}" indicator="indicator"
       loadingText=" " targets="workspaceAjaxContent">
   Try
</s:a>
***  ***

- another one, called "Create link", which, once clicked, creates a link to the same ajax action that before. Here, I made copy&paste of the first link's html source-code to create a javascript function to achieve this purpose. The problem is that this new generated link does NOT make an ajax request to Prueba.do action, but it does a "normal" request to "http://host:port/app-name/Prueba.do";. So, if I have copied the generated html for the first link, why this second one's behaviour is different?

***Here is the code***
<script language="JavaScript">
<![CDATA[
function aver() {
   var texto = "<a dojoType=\"struts:BindAnchor\" " +
"href=\"/scheduler-admintool-1.0/Prueba.do\" loadingText=\" \" targets=\"workspaceAjaxContent\" " +
             "indicator=\"indicator\" showError=\"true\">Prueba2</a>";
  document.getElementById('tree').innerHTML = texto;
}
]]>
</script>

<a href="javascript:void(0)" onclick="javascript:aver();">
   Create link
</a>
***  ***



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

Reply via email to