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
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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.