![]() |
|
#1
|
|||
|
|||
|
I created a new template as follows:
========================================================== <table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="100%"> <tr> <td class="tcat"><span class="smallfont"><strong>$vba_options[portal_blockbullet]Request A Song<!-- Module Title Here --></strong></span></td> </tr> <tr> <td class="$getbgrow" width="100%"> <!-- Content for your module goes here --> <script type="text/javascript"> function autoResize() { var dest = document.getElementById('container'); var source = window.frames[0].document.body.innerHTML; dest.innerHTML = source } </script> <div id=container> <iframe onload="autoResize()" name="I1" src="http://72.9.240.20/~jazba/sam/index.php" width="100%" scrolling="yes" border="0" frameborder="0"> Your browser does not support inline frames or is currently configured not to display inline frames. </iframe> </div> </td> </tr> </table> <br /> ========================================================== The resulting page is http://www.desiradio.ca/vb/index.php?page=request The problem is that the "Request A Song" page has a smaller height rather than having 100% height.. I tried the iframe code with height=100% but that didnt work either. I want the height of that frame containing the PHP file to be 100% of the php page itself (it works fine with html pages) The current workaround is to add height in the iframe tag , but that gives a fixed height and some php pages that are linked need scrolling. Workaround Code: ------------------------------- <iframe onload="autoResize()" name="I1" src="http://72.9.240.20/~jazba/sam/index.php" width="100%" height="500" scrolling="yes" border="0" frameborder="0"> ------------------------------------ Please advise if there is any effective way to get the height to a 100% for PHP pages ? Thanks |
|
#2
|
|||
|
|||
|
You might want to think about using the Webtemplates hack for this as it will probably be easier.
|
|
#3
|
|||
|
|||
|
web templates hack? can you guide me where to find it?
|
|
#4
|
||||
|
||||
|
|
|
#5
|
|||
|
|||
|
That is one of the most powerful scripts for VB, love it.
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Error when editing pages Invalid SQL: SELECT * FROM vb3_adv_pages ORDER BY display | Pooh | Troubleshooting & Problems | 3 | 08-12-2005 04:18 PM |
| Bug (and Fix) - Pages Display Order Meaningless | Kaelon | Bugs From 2.0 RC2 | 0 | 07-26-2005 05:27 PM |
| How Do I Display Columns in All Forum Pages | Spider-Man | "How Do I..." Questions | 19 | 07-15-2005 10:19 AM |
| How do I display vbadvanced cpanel logo | LEAD_WEIGHT | "How Do I..." Questions | 1 | 06-04-2005 06:36 PM |
| Display HTML pages within VBAdvanced? | MtnDewMan | Troubleshooting / "How do I..." Questions | 16 | 03-29-2005 08:16 AM |