GB_001 Posted March 1, 2008 Share Posted March 1, 2008 Is it possible to target a frame with a PHP include();. Thankyou. -GB. Quote Link to comment https://forums.phpfreaks.com/topic/93809-target-frame-with-php-include/ Share on other sites More sharing options...
Oldiesmann Posted March 1, 2008 Share Posted March 1, 2008 The only way you can do this is to put the php include inside the proper section of HTML code (I'm not real familiar with frames, so I couldn't tell you exactly how to do it). Quote Link to comment https://forums.phpfreaks.com/topic/93809-target-frame-with-php-include/#findComment-480699 Share on other sites More sharing options...
GB_001 Posted March 1, 2008 Author Share Posted March 1, 2008 Sorry, But can you please elaborate on how I could do so? =). -GB Quote Link to comment https://forums.phpfreaks.com/topic/93809-target-frame-with-php-include/#findComment-481212 Share on other sites More sharing options...
Ads Posted March 1, 2008 Share Posted March 1, 2008 Is it a Frame set, or an Iframe? Quote Link to comment https://forums.phpfreaks.com/topic/93809-target-frame-with-php-include/#findComment-481235 Share on other sites More sharing options...
GB_001 Posted March 2, 2008 Author Share Posted March 2, 2008 It's in an iframe but I want it targeted to the parent frame. Quote Link to comment https://forums.phpfreaks.com/topic/93809-target-frame-with-php-include/#findComment-481239 Share on other sites More sharing options...
Ads Posted March 2, 2008 Share Posted March 2, 2008 Why Not Just put the include in the parent frame? Quote Link to comment https://forums.phpfreaks.com/topic/93809-target-frame-with-php-include/#findComment-481242 Share on other sites More sharing options...
GB_001 Posted March 2, 2008 Author Share Posted March 2, 2008 Because the link being click is suppose to affect the iframe and parent frame. Quote Link to comment https://forums.phpfreaks.com/topic/93809-target-frame-with-php-include/#findComment-481246 Share on other sites More sharing options...
Ads Posted March 2, 2008 Share Posted March 2, 2008 So what Exactly are You trying to do? Quote Link to comment https://forums.phpfreaks.com/topic/93809-target-frame-with-php-include/#findComment-481248 Share on other sites More sharing options...
GB_001 Posted March 2, 2008 Author Share Posted March 2, 2008 Basically in the iframe you click a link that passes a variable to another page that you gain from the page before, then it updates the database and then opens a DHTML window in the parent frame. Quote Link to comment https://forums.phpfreaks.com/topic/93809-target-frame-with-php-include/#findComment-481251 Share on other sites More sharing options...
Ads Posted March 2, 2008 Share Posted March 2, 2008 Basically in the iframe you click a link that passes a variable to another page that you gain from the page before, then it updates the database and then opens a DHTML window in the parent frame. okay Is that what it does, or what you want it to do? Quote Link to comment https://forums.phpfreaks.com/topic/93809-target-frame-with-php-include/#findComment-481254 Share on other sites More sharing options...
GB_001 Posted March 2, 2008 Author Share Posted March 2, 2008 That's what it does, but the DHTML window appears in the iframe, and I want it to be included in the parent frame. Quote Link to comment https://forums.phpfreaks.com/topic/93809-target-frame-with-php-include/#findComment-481291 Share on other sites More sharing options...
helraizer Posted March 2, 2008 Share Posted March 2, 2008 To get page inside the iFrame, have you HTML to set up the page and the frame as normal then use <iframe src="<?php include ('page.dhtml'); /*or whatever*/ ?>"> or do you not want it in the iframe? In theory you can use the target element of 'a' <a href="whatever.dhtml" target="_parent">. Sam Quote Link to comment https://forums.phpfreaks.com/topic/93809-target-frame-with-php-include/#findComment-481297 Share on other sites More sharing options...
GB_001 Posted March 2, 2008 Author Share Posted March 2, 2008 Thankyou, I wanted it in the parent frame though. Also, I tried targeting the parent frame with an <a href> tag and it redirected my parent page, so the only way I can do it is through an include. Quote Link to comment https://forums.phpfreaks.com/topic/93809-target-frame-with-php-include/#findComment-481298 Share on other sites More sharing options...
GB_001 Posted March 2, 2008 Author Share Posted March 2, 2008 Bump, Still not solved. =/. Quote Link to comment https://forums.phpfreaks.com/topic/93809-target-frame-with-php-include/#findComment-481824 Share on other sites More sharing options...
GB_001 Posted March 3, 2008 Author Share Posted March 3, 2008 Bump. Quote Link to comment https://forums.phpfreaks.com/topic/93809-target-frame-with-php-include/#findComment-482141 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.