Hi,
1) a link overview.php activates display.php
2) display.php returns a pdf-file stored in a blob.
This works fine, but I instead I would like to do the following in display.php:
include("display_blob.php"); ==>displays the pdf
include("footer.php"); ==> here i would present a link to go back to overview.php
Problem is that Acrobat Reader takes up the whole page and footer.php is not displayed.
How could I handle this ?
Thanks for any help in advance,
Gijs
is there a soltion for this ?
Moderator: General Moderators
That simple ?
Hi qads,
Is this realy this simple ?
Full explanation:
I start with a framed site: catalog.php which contains
1) navagition.php (leftframe)
2) intro.php (rightframe)
From navigation.php I use a link to pass variables to the rightframe and call overview.php which contains a list of articles.
How would I pass the variables from overview.php to the framed display.php which has for example:
a)display_blob.php (topframe)
b)footer.php (bottomframe)
Any suggestions ?
Thanks in advance,
Gijs
Is this realy this simple ?
Full explanation:
I start with a framed site: catalog.php which contains
1) navagition.php (leftframe)
2) intro.php (rightframe)
From navigation.php I use a link to pass variables to the rightframe and call overview.php which contains a list of articles.
How would I pass the variables from overview.php to the framed display.php which has for example:
a)display_blob.php (topframe)
b)footer.php (bottomframe)
Any suggestions ?
Thanks in advance,
Gijs
Found it
Hi,
I went through the sticky concerning frames,javascript and found an interesting post from Virgill.
viewtopic.php?t=1030
He uses <?=$_SERVER['QUERY_STRING']?> combined with the "get" method in forms to pass variables even to pages within a framed-file.
I tried to make it work without "get" & "forms" and it works. Here is the code I used in dsiplay.php:
Thanks,
Gijs
I went through the sticky concerning frames,javascript and found an interesting post from Virgill.
viewtopic.php?t=1030
He uses <?=$_SERVER['QUERY_STRING']?> combined with the "get" method in forms to pass variables even to pages within a framed-file.
I tried to make it work without "get" & "forms" and it works. Here is the code I used in dsiplay.php:
Code: Select all
<?php
// Check if the variable region_id is set
if (isset($_GETї'article_id'])) {
?>
<html>
<head>
</head>
<frameset rows="50,*,50" border="0">
<frame name="top" src="header.php" marginwidth="10" marginheight="10" scrolling="auto" frameborder="0">
<frame name="center" src="display_blob.php?<?=$_SERVERї'QUERY_STRING']?>" marginwidth="10" marginheight="10" scrolling="auto" frameborder="0">
<frame name="bottom" src="footer.php" marginwidth="10" marginheight="10" scrolling="auto" frameborder="0">
</frameset>
<body>
</body>
</html>
<?php
}
?>Thanks,
Gijs
Last Waltz
Final remarques,
The code above works as well.
The previous one is perhaps more interesting if you want to pass all the variables from a query.
Gijs
Code: Select all
src="display_blob.php?article_id=<? echo $_GETї"article_id"]; ?>"The previous one is perhaps more interesting if you want to pass all the variables from a query.
Gijs