mo Posted May 28, 2009 Share Posted May 28, 2009 Is there a way to get php to render in an iFrame w/o specifying a src file? I just want to for example call a fucntion which prints a list and I want the list in the iFrame. I'm trying to avoid creating a paginated list by using an iFrame and I am new to iFrames. Link to comment https://forums.phpfreaks.com/topic/160023-solved-php-in-iframe-wo-src/ Share on other sites More sharing options...
gevans Posted May 28, 2009 Share Posted May 28, 2009 I've been pushing this a lot recently, but with a lot of these ideas ajax really is a great option. With the constant improvements of javascript frameworks it couldn't be easier. Example jQuery could be just this simple, $("#id-of-iframe").load("the-php-file-to-load"); Link to comment https://forums.phpfreaks.com/topic/160023-solved-php-in-iframe-wo-src/#findComment-844148 Share on other sites More sharing options...
mo Posted May 28, 2009 Author Share Posted May 28, 2009 I've been pushing this a lot recently, but with a lot of these ideas ajax really is a great option. With the constant improvements of javascript frameworks it couldn't be easier. Example jQuery could be just this simple, $("#id-of-iframe").load("the-php-file-to-load"); Thanks for the reply but I would still be referencing a php file to load. On my current PHP page I have a form where I can add entries to a database table. Below the form I have a list of all the entries in the table, I want just the entries in the iFrame not my entire page. I could easily reference a new PHP file with the logic to produce the list but that would mean that for every page where I want to use the iFrame in this manner, I would have to create a seperate file with the actual list code for the iFrame to reference. I really want to use the iFram like a wrapper or table tag. Is this possible? Link to comment https://forums.phpfreaks.com/topic/160023-solved-php-in-iframe-wo-src/#findComment-844155 Share on other sites More sharing options...
gevans Posted May 28, 2009 Share Posted May 28, 2009 Why not just using a scrolling div with overflow: auto; . http://www.wickham43.supanet.com/tutorial/scrollingdivs.html The above is a very basic (which is all you need) look at it. Link to comment https://forums.phpfreaks.com/topic/160023-solved-php-in-iframe-wo-src/#findComment-844161 Share on other sites More sharing options...
mo Posted May 28, 2009 Author Share Posted May 28, 2009 Why not just using a scrolling div with overflow: auto; . http://www.wickham43.supanet.com/tutorial/scrollingdivs.html The above is a very basic (which is all you need) look at it. Son of a biscuit eating bulldog...This is just what I wanted. Unfortunetely HTML, CSS, PHP, etc. are not my main languages as my focus is standalone/non-web applications and I am still learning what syntax, APIs, etc. are available to me. Thanks. Link to comment https://forums.phpfreaks.com/topic/160023-solved-php-in-iframe-wo-src/#findComment-844165 Share on other sites More sharing options...
gevans Posted May 28, 2009 Share Posted May 28, 2009 Son of a biscuit eating bulldog HAHA, I had time for that quote Link to comment https://forums.phpfreaks.com/topic/160023-solved-php-in-iframe-wo-src/#findComment-844169 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.