Hi Adam-

Could you post your JSP?
in particular could we see XMLHttpRequest.OnReadyStateChange AND the javascript 
function which is the receptor for the Asynchronous call

Thanks,
M
This e-mail communication and any attachments may contain confidential and 
privileged information for the use of the 
designated recipients named above. If you are not the intended recipient, you 
are hereby notified that you have received
this communication in error and that any review, disclosure, dissemination, 
distribution or copying of it or its 
contents
----- Original Message ----- 
From: "Adam Gordon" <[EMAIL PROTECTED]>
To: <user@struts.apache.org>
Sent: Tuesday, November 28, 2006 3:43 PM
Subject: Struts, AJAX, JSP, and JavaScript question


>I have a JSP and there's a link in the rendered page that makes an AJAX call
> (to a Struts action) when clicked.  The results of that action, and the
> contents of the response are set as the innerHTML on a hidden <div> defined
> inside the afore mentioned rendered page.  The <div> is then un-hid.
> 
> Everything is working correctly except for one part:  When the div is
> displayed, the JavaScript code in the contents returned by the AJAX call
> isn't being executed and thus, the contents of the <div> aren't set up
> correctly.
> 
> Does anyone know a way to have the JavaScript be executed?  Or force the
> browser to execute it? 
> 
> I used to have an <iframe> and everything worked great, but there was a bad
> side effect with session timeouts and so we've decided to not use them.
> 
> Any help would be appreciated.  Thanks.
> 
> -Adam
> 
>

Reply via email to