Jump to content

[SOLVED] View The Page Correctly


Daney11

Recommended Posts

Hi Guys,

 

My problem is that i have used a javascript open window command to open a new window with the pixels height=450,width=320.

 

Then i have created a new page and entered a table with the pixels height=450,width=320.

 

However when i open the window the page is not being viewed correctly. The pixels are are out by a few pixels from the right and the top. Any ideas on how to position my table correctly within the new opened window?

 

thanks

 

Dane

Link to comment
https://forums.phpfreaks.com/topic/47911-solved-view-the-page-correctly/
Share on other sites

I'm still having problems.

 

<table width="320" height="450" cellpadding="0" cellspacing="0" align="center" class="outline">
<tr> 
<td width="120" height="20"> From:</td>
<td width="200" height="20"> <?php echo $first_name ?>td>
</tr>
<tr> 
<td width="120" height="20"> To:</td>
<td width="200" height="20"> <input type="text" name="mail_to" size="30" maxlength="30" class="shoutbox"></td>
</tr>
<tr> 
<td width="120" height="20"> Subject:</td>
<td width="200" height="20"> <input type="text" name="mail_subject" size="30" maxlength="30" class="shoutbox"></td>
</tr>
<tr> 
<td width="120" height="20"> Date:</td>
<td width="200" height="20"> <?php $date = date('d/m/Y'); $time = date('H:i:s'); echo $date; ?> <?php echo $time; ?></td>
</tr>
<tr> 
<td width="320" height="350" colspan="2"><textarea name="mail_body" cols="60" rows="20" class="shoutbox"></textarea></td>
</tr>
<tr> 
<td width="320" height="20" colspan="2" align="right">Send Mail </td>
</tr>
</table>

 

The Javascript that i am using is

 

<Script Language="JavaScript">
function mail_compose() {
var load = window.open('compose.php','','scrollbars=no,menubar=no,height=450,width=320,resizable=no,toolbar=no,location=no,status=no');
}
</Script>

 

How would i make it so that the content fits perfectly into the newly opened javascript page.

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.