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... Quote Link to comment 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. Quote Link to comment 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? Quote Link to comment 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. Quote Link to comment 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? Quote Link to comment Share on other sites More sharing options...
BuCki Posted July 5, 2007 Share Posted July 5, 2007 <?php include("steps.php"); ?> Quote Link to comment 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 Quote Link to comment 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 Quote Link to comment 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. Quote Link to comment 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.. Quote Link to comment Share on other sites More sharing options...
jbrill Posted July 5, 2007 Author Share Posted July 5, 2007 heres what im trying to do... Quote Link to comment 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"> Quote Link to comment 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 Quote Link to comment Share on other sites More sharing options...
trq Posted July 5, 2007 Share Posted July 5, 2007 Post your question in the Ajax board. Quote Link to comment 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? Quote Link to comment 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.