jbrill Posted July 5, 2007 Share Posted July 5, 2007 <iframe id="steps" name="steps" src="steps.php" width="90%" frameborder="1"></iframe> This should display stepgs.php int he iframe right? its not working... Link to comment https://forums.phpfreaks.com/topic/58611-quick-iframe-question/ Share on other sites More sharing options...
L Posted July 5, 2007 Share Posted July 5, 2007 if i were u i would use an include instead of an iframe...that's not even valid xhtml....besides includes and frames do pratically the same thing. Link to comment https://forums.phpfreaks.com/topic/58611-quick-iframe-question/#findComment-290715 Share on other sites More sharing options...
jbrill Posted July 5, 2007 Author Share Posted July 5, 2007 the only reason i wanted to use an i frame is so i could have an external "refresh" button which would refresh the iframe without refreshing the entire page... is there another way of doing this? Link to comment https://forums.phpfreaks.com/topic/58611-quick-iframe-question/#findComment-290716 Share on other sites More sharing options...
clanstyles Posted July 5, 2007 Share Posted July 5, 2007 my expreiances w/ iframes are that in src you have to put the absoule location and also include http:// infront. Link to comment https://forums.phpfreaks.com/topic/58611-quick-iframe-question/#findComment-290717 Share on other sites More sharing options...
jbrill Posted July 5, 2007 Author Share Posted July 5, 2007 any other ways to refresh an "included" part of a page without using iframe? Link to comment https://forums.phpfreaks.com/topic/58611-quick-iframe-question/#findComment-290731 Share on other sites More sharing options...
BuCki Posted July 5, 2007 Share Posted July 5, 2007 <?php include("steps.php"); ?> Link to comment https://forums.phpfreaks.com/topic/58611-quick-iframe-question/#findComment-290736 Share on other sites More sharing options...
jbrill Posted July 5, 2007 Author Share Posted July 5, 2007 but how do i refrsh only "steps.php" once it is on the main page Link to comment https://forums.phpfreaks.com/topic/58611-quick-iframe-question/#findComment-290737 Share on other sites More sharing options...
BillyBoB Posted July 5, 2007 Share Posted July 5, 2007 you could use a iframe mine always work try: <iframe src=\"steps.php\" width=\"100\" height=\"100\" frameborder=\"1\"></iframe> i dont know your desired width and height Link to comment https://forums.phpfreaks.com/topic/58611-quick-iframe-question/#findComment-290738 Share on other sites More sharing options...
GingerRobot Posted July 5, 2007 Share Posted July 5, 2007 any other ways to refresh an "included" part of a page without using iframe? You can reload parts of a page using ajax. Not sure if this is really a viable solution - depends on the content of your steps.php page. I'd probably go for the iframe. Link to comment https://forums.phpfreaks.com/topic/58611-quick-iframe-question/#findComment-290743 Share on other sites More sharing options...
jbrill Posted July 5, 2007 Author Share Posted July 5, 2007 still no luck with the iframe... i dont knwo what it isnt working.. Link to comment https://forums.phpfreaks.com/topic/58611-quick-iframe-question/#findComment-290744 Share on other sites More sharing options...
jbrill Posted July 5, 2007 Author Share Posted July 5, 2007 heres what im trying to do... Link to comment https://forums.phpfreaks.com/topic/58611-quick-iframe-question/#findComment-290756 Share on other sites More sharing options...
per1os Posted July 5, 2007 Share Posted July 5, 2007 Given that structure, you should be able to use javascript to hide the first step and display the second step. I think Javascript is more of a viable solution for you. Not necessarily AJAX, just plain old javascript, you can code a function in the new window submit which posts to the main page and hides <div id="step1"> and displays <div id="step2"> Link to comment https://forums.phpfreaks.com/topic/58611-quick-iframe-question/#findComment-290761 Share on other sites More sharing options...
jbrill Posted July 5, 2007 Author Share Posted July 5, 2007 the div window on the main page is supposed to display all the entries that have been entered (kind of like a guestbook) only problem im having is since the "Add step" opens a new window for adding items the the database, once added the user needs to refresh the whole page to see the new entries, i would rather just be able to refresh the div, to display all the entries and the new ones Link to comment https://forums.phpfreaks.com/topic/58611-quick-iframe-question/#findComment-290766 Share on other sites More sharing options...
trq Posted July 5, 2007 Share Posted July 5, 2007 Post your question in the Ajax board. Link to comment https://forums.phpfreaks.com/topic/58611-quick-iframe-question/#findComment-290783 Share on other sites More sharing options...
scarhand Posted July 5, 2007 Share Posted July 5, 2007 Dude, look at the source you inputted <iframe id="steps" name="steps" src="steps.php" width="90%" frameborder="1"></iframe> You want this to be steps.php or stepGs.php? Link to comment https://forums.phpfreaks.com/topic/58611-quick-iframe-question/#findComment-290784 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.