Hi,
I am writing the pdf content to output stream:
res.setContentType("application/pdf");
res.setHeader("Content-disposition","inline; filename=XXX.pdf");
out.println(report.getContentString().toString());
Now along with this request I need to run javascript to log the details of a pdf in another server(It basically requests an image on logger server there by sending the details set by the javascript).
Can I do that in the same request.
Can I do the same for excel report also.
Is there any way the the browser recoginizes the javascript and executes it eventhough the content type is pdf

Hi If you need to inject
6 August, 2008 - 16:06 — SenakaHi
If you need to inject custom javaScript to the server delta you can make use of the DeltaActionJavaScript
e.g.
DeltaActionJavaScript jsAction1 = new DeltaActionJavaScript(event.getComponent(), command1);
context.addDeltaAction(jsAction1);
Hope this helps.
-Senaka