1

Hi all,

I'm trying to embed a small javascript within the page that creates a PDF, though...

1 when i put the code before ob_start(); it returns an error msg "headers already send"

2 when i put the code after ob_start(); it returns an error msg like "<SCRIPT>" is not defined

What i intend to do is redirect the opener.window with this javascript:

<script type="text/javascript">
window.opener.location='somepage.php';
</script>

any suggestions?

2

1. look at the examples in the ZIP file
2. it is not HTML javascript, but PDF javascript.... there is no opener, no location, no WEB...
Ancien pseudo : lolo

3

Spipu (./2) :
1. look at the examples in the ZIP file
2. it is not HTML javascript, but PDF javascript.... there is no opener, no location, no WEB...


Thanks for your reply!

So basicly what you're saying (there is no opener) is that my idea is not going to work?

I've found a solution by setting a javascript function on submit, that is before a child window has been opened with pdf creation, though it would be nicer to send back results to trigger some action.

Anyways, im having a hard time with the french and finding the right example, so if anyone has a suggestion!?

4

when you make a PDF, there is no more windows, opener, internet navigator and others. The user can save the pdf, and open it after, without any internet connection...

Ancien pseudo : lolo