Categories > OpenTBS with DOCX >

redirect page after Show()

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: Arnold
Date: 2014-07-12
Time: 09:44

redirect page after Show()

Hello,

i'm using OpenTBS for creating invoices. as follows:
1) a form to specify all kosts and labour.
2) submit the form to the same php page
3) safe the date into a database, and reload the page (with variables)
4) create the invoice using OpenTBS send to browser

now i want to add an 5 stage. which is:
5) reload the page showing all costumer invoices

but for some reason (Headers sent probably) i can't get it to work.
offcourse the php header(location) wont work.
but olso a javascript with window.location.href isn't fired.

has somebody any suggestion?
kind regards,
By: Skrol29
Date: 2014-07-15
Time: 09:31

Re: redirect page after Show()

A direct download is an HTML query that cannot do anything after it.

So a good solution is to reload the page showing all costumer invoices, and having this new page sending a "window.location.href" in order to start the download.
By: Arnold
Date: 2014-07-15
Time: 15:34

Re: redirect page after Show()

Thanks Skrol

not really the answer i was hoping for ;-)
got some re-writing to do....