NetTalk Central

Author Topic: Chaining multiple pages?  (Read 3923 times)

lanmicro

  • Full Member
  • ***
  • Posts: 112
    • View Profile
    • Email
Chaining multiple pages?
« on: June 20, 2007, 11:59:58 AM »
Hi Guy,

I want to generate a pdf and have it open in another window AND then display a page with some instructions on what to do with the pdf that has been opened.

Is it possible to chain two pages together like this?  I already can generate the report to pdf and have it open in the browser, but I really need to have that happen in the background and display the page of instructions as the next url.
Gregory C. Bailey

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11171
    • View Profile
Re: Chaining multiple pages?
« Reply #1 on: June 20, 2007, 11:00:57 PM »
Hi Lan,

Nope, this is not easy, indeed I'm not convinced that it's even possible.
Others should feel free to suggest alternate ways as well.

Your browser does the asking, and the server does the serving. The server cannot "force" stuff to the browser. Thus if the browser asks for the PDF they get the PDF, if they ask for the instructions page, then they get the instructions page.

From what you've described I think I might try somethign like this;
a) create a netwebpage, with nothing but a FrameSet extension. Use the extension to break the page into 2 frames, let's say a top and bottom frame.
b) set the default url for the top to the Instructions page, and the default url of the bottom to the PDF page
c) create a separate Instructionspage procedure (or static htm).

Then when the user clicks on the URL to get the report, make sure it's the Framepage (created in (a)) that the URL points to.

That may well do what you are chasing, and keeps the instructions, and report together.

cheers
Bruce