Hi all,

I have a jspx page where I have a <div> tag whose content is being
refreshed by ajax response.

<s:url id="refreshPageUrl" action="RefreshPage" />
<s:a theme="ajax" href="${refreshPageUrl}"  indicator="indicator"
        loadingText=" " targets="divId">
    <fmt:message key="Refresh"/>
</s:a>

<div id="divId">
    <jsp:directive.include file="page.jspf"/>
</div>


The page.jspf is like this:

<script language="JavaScript">
    some script code...
</script>


Well, when I first load the jspx page, the javascript sentences are
successfully executed, but when I clic Refresh link, div content
appears empty, that is likely javascript code is not been interpreted
by ajax response and nothing appears in the page. However, if I change
the .jspf file to introduce plain text (outside the <script></script>,
it appears in the response...

Any idea? Can´t be javascript an Ajax response?

Thanks very much.


-- 
Pablo Vázquez

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

Reply via email to