Re: [PHP-DB] Question in js about frameset rows
Hi, It's working Thanks Suad Bastien Koert wrote: I have fixed values that I adjust to, but you basically need to give the frame an ID and then use .rows and.columns to adjust the size function shrink() { top.document.getElementById(TOP).rows = 65,*,0,46,0; } function expand() { top.document.getElementById(TOP).rows = 65,*,200,46,0; } bastien From: suad [EMAIL PROTECTED] To: php-db@lists.php.net Subject: [PHP-DB] Question in js about frameset rows Date: Wed, 21 Jun 2006 11:44:07 +0200 Hi, I have this page: html head titletitle1/title /head frameset cols=*,200pxframeset id=frameset1 rows=10%,30%,10%,* frame src=/page1.phtml name=name1 frameborder=0 scrolling=no / frame src=/page2.phtml name=name2 frameborder=0 / frame src=/page3.phtml name=name3 frameborder=0 scrolling=no / frame src=/page4.phtml name=name4 frameborder=0 / /frameset frame src=/page5.phtml name=name5 frameborder=0 / /frameset /html And this is the content of the page page1.phtml: html head titlename1/title /head body span onclick=alert(window.parent.frames[1].name);change size of frame 2/span /body /html How can I change (using js) the rows of the frameset to: frameset rows=10%,10%,10%,* Thanks Suad -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DB] Question in js about frameset rows
appologies to the list. i think this should not be asked here. anyway i'll answer. IMHO, there is no easy way to do what you like. what i would suggest is use document.write() or inclosing your frameset in a container div then dynamically change it using innerHTML hth On 6/21/06, suad [EMAIL PROTECTED] wrote: Hi, I have this page: html head titletitle1/title /head frameset cols=*,200px frameset id=frameset1 rows=10%,30%,10%,* frame src=/page1.phtml name=name1 frameborder=0 scrolling=no / frame src=/page2.phtml name=name2 frameborder=0 / frame src=/page3.phtml name=name3 frameborder=0 scrolling=no / frame src=/page4.phtml name=name4 frameborder=0 / /frameset frame src=/page5.phtml name=name5 frameborder=0 / /frameset /html And this is the content of the page page1.phtml: html head titlename1/title /head body span onclick=alert(window.parent.frames[1].name);change size of frame 2/span /body /html How can I change (using js) the rows of the frameset to: frameset rows=10%,10%,10%,* Thanks Suad -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- GMail Rocks!!!
RE: [PHP-DB] Question in js about frameset rows
I have fixed values that I adjust to, but you basically need to give the frame an ID and then use .rows and.columns to adjust the size function shrink() { top.document.getElementById(TOP).rows = 65,*,0,46,0; } function expand() { top.document.getElementById(TOP).rows = 65,*,200,46,0; } bastien From: suad [EMAIL PROTECTED] To: php-db@lists.php.net Subject: [PHP-DB] Question in js about frameset rows Date: Wed, 21 Jun 2006 11:44:07 +0200 Hi, I have this page: html head titletitle1/title /head frameset cols=*,200pxframeset id=frameset1 rows=10%,30%,10%,* frame src=/page1.phtml name=name1 frameborder=0 scrolling=no / frame src=/page2.phtml name=name2 frameborder=0 / frame src=/page3.phtml name=name3 frameborder=0 scrolling=no / frame src=/page4.phtml name=name4 frameborder=0 / /frameset frame src=/page5.phtml name=name5 frameborder=0 / /frameset /html And this is the content of the page page1.phtml: html head titlename1/title /head body span onclick=alert(window.parent.frames[1].name);change size of frame 2/span /body /html How can I change (using js) the rows of the frameset to: frameset rows=10%,10%,10%,* Thanks Suad -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php