Opening a module in an iframe ?

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   Opening a module in an iframe ?
phptest
CZ Super Newbie
phptest has been a member for over 19 year's 19 Year Member
Status: Offline
Joined: Aug 22, 2004
0.01 posts per day
Posts: 58
Points: 3,076
   
I know my questions keep getting even more strange but here it goes.

When i load a module from my own website into an iframe i will not only get that module loaded into the iframe but also the header (mainpage) etc..

How can i load a module in an iframe without loading the entire mainpage into the iframe ?



Hope you understand my question.



Back to top Reply with quote
#2   re: Opening a module in an iframe ?
Taut
PayPal Donation
CZ Revered Member
 Codezwiz Site Donator
Taut has been a member for over 20 year's 20 Year Member
usa.gif california.gif
Occupation: Entrepreneur
Gender: Female
Fav. Sports Team: SF Giants
Status: Offline
Joined: May 27, 2003
0.72 posts per day
Posts: 5530
Points: 481,695
   
no I don't understand...if your module is already incorporated into your site, there shouldn't be a need to iframe. You only use the iframe to bring in an external page from a different site or server



Back to top Reply with quote
#3   re: Opening a module in an iframe ?
phptest
CZ Super Newbie
phptest has been a member for over 19 year's 19 Year Member
Status: Offline
Joined: Aug 22, 2004
0.01 posts per day
Posts: 58
Points: 3,076
   
I would like to use the iframe to load that particular module because i like the border that the iframe has...



Back to top Reply with quote
#4   re: Opening a module in an iframe ?
Taut
PayPal Donation
CZ Revered Member
 Codezwiz Site Donator
Taut has been a member for over 20 year's 20 Year Member
usa.gif california.gif
Occupation: Entrepreneur
Gender: Female
Fav. Sports Team: SF Giants
Status: Offline
Joined: May 27, 2003
0.72 posts per day
Posts: 5530
Points: 481,695
   
hmmm...the only way I can think of is a long way. Telli may have some other idea

You would need to create another page and have the module link open up in that page. Then using some absolute positioning, cutting off the header and other parts you don't want seen. Now you can iframe that newly created page.

The newly created page would look something like this in HTML format:


<html>
<head>
<style type="text/css"> iframe { position: absolute; top: -300px;left: -10px; right: -10px; } </style>
</head>
<body>
<iframe src="http://yourURLhere.php" height="YOUR page height" width="YOUR PAGE WIDTH"></iframe>
</body>
</html>


You'll have to play with the positioning to give you the values of the page


Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

Jump to 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum