On 2/3/06, Andres Muñoyerro Pindado <[EMAIL PROTECTED]> wrote:
> I have links in my PDF reports.
>
> If I use the browser Firefox work perfectly. My problem starts whe I use the
> browser Internet Explorer. When I click on a link to open another window (A
> Document PDF is created dynamically from the servlet), then the new window
> work perflectly, but the firts window (Documente PDF with links) is cleared
> out an [OBJECT] OR [WINDOW OBJECT] is displayed in the window.
>
> I used the following piece of code:
>
> Anchor anchor1 = new Anchor(nameAnchor);
>
> anchor1.setReference("JavaScript:mv=window.open('http://-----/-----/--
> -.htm','window1').focus();")
Try
anchor1.setReference("JavaScript:mv=window.open('http://-----/-----/---.htm','window1');mv.focus();")
Note that it's actually 2 JavaScript statements - one to create the
window and return a reference to it in mv, and the second to focus the
window.
Be aware that users with pop-up blockers active or JavaScript disabled
while using your system may not be able to follow this link; in HTML,
one would normally provide a graceful fallback option that simply
opens the link in the current window.
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions