Jump to content

[SOLVED] PHP in Iframe w/o src


mo

Recommended Posts

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");

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?

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.