Page 1 of 1

Forcing a page update with frameset like phpAdmin

Posted: Fri Aug 09, 2002 6:08 pm
by cigy23
Hello all,

The only way that I think I can explain this is, I need to find out how to get a page to update or refresh in a frame set.

As phpAdmin does, once you create a new table and add the colums..after the submit, it auto updates the left frame.
I am working on something that just has two frames, left and right, but once they submit a form on the right side, I need to be able to update the left frame after the data has been recorded into the DB.

How is this done and or where can I go to read up on this.

Thanks for any help on this.

Posted: Fri Aug 09, 2002 6:39 pm
by learning_php_mysql
mine doesnt update the left frame and i have the newest version =/

Posted: Fri Aug 09, 2002 6:54 pm
by cigy23
Yes, I have 2.3.0 rc4
and when you go to a database and create a new table...once you have filled in all the colums and clicked the submit buttom, it adds the table and colums and then refreshes the left frame to show the new table..

If this is only a feature that works for me...wow, it is a cool feature.

Posted: Fri Aug 09, 2002 10:19 pm
by learning_php_mysql
my bad you were right... well the source is at your finger tips why dont you sift through the code and find it... or heres a better solution... dont use frames.

Posted: Fri Aug 09, 2002 10:47 pm
by hob_goblin
i can guarantee they are using javascript to refresh the left side... or meta tags or something

Posted: Fri Aug 09, 2002 10:50 pm
by lc
how about including the framesets in php

Meaning.. post your form data to the whole page (prolly index.php) that houses the framesets... then have php load the correct pages in the framesets, meaning the ones you want displayed after the form data has been entered.

so just set target="_top" and do an if statement for the frameset's content.