473,387 Members | 1,592 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

How to make it small window

93
Hi

How should I make this window small just to show only that text like in the box pop up? It just want to show deleted info and ok button only. But currently the window is too big.

[HTML]
<?php
session_start();


if(!isset($_SESSION['user'])) {
header('Location: /MB2Login.html');
die();
}
?>
<?php

include_once('../ez_sql.php');
$noteID = (int) $_GET['noteID'];
$db->query("DELETE FROM MovieNotes where userID = " . $_SESSION['user']->userID ." and noteID = $noteID ");
echo ("Movie Notes Deleted..");
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Confirm Delete Movie Notes</title>
<link rel="stylesheet" href="moviebrowser2.css" type="text/css" title="Default" media="screen"/>
<style type="text/css">
.style2 {color: #FFFFCC}

</style>

</head>
<body>
<table>
<tr>
<td><input type=button value="OK" onClick="history.go(-2)"></td>
</tr>
</table>
</body>
</html>
[/HTML]
Feb 5 '08 #1
9 3183
drhowarddrfine
7,435 Expert 4TB
What do you mean by "the window"?
Feb 5 '08 #2
nma
93
What do you mean by "the window"?
currently it display the window but the size too big just to show the word and the ok button only. can I fix the display window size when this file is being call?
At the moment it display a window with a resizable one.

What i mean is this file when it is called by the previous file show a window.
Is there any codes that i need to put here in this file somewhere so that it display according to the size we fix it.

The display is only like this
"Movie Notes Deleted..
ok(button)"

Thank you

nma
Feb 5 '08 #3
Minion
108 Expert 100+
I don't have the code handy off hand, but you may check in the Javascript section of the forum to see if it's there. Regardless you should be able to utilize javascripts to determine screen size then adjust the window size accordingly. Be warned though this will require several work arounds for different platforms and browsers and may be blocked by some ant-spam software.

Hope this helps and gets you pointed in the right direction.

- Minion -
Feb 6 '08 #4
drhowarddrfine
7,435 Expert 4TB
I still don't know what you mean by 'window'. Are you talking of the <td> containing the buttons, some other element such as a <div> containing the buttons, the browser canvas, a popup window, the window on your screen that contains the browser?

If this pertains to javascript then you have the wrong forum.
Feb 6 '08 #5
Death Slaught
1,137 1GB
I still don't know what you mean by 'window'. Are you talking of the <td> containing the buttons, some other element such as a <div> containing the buttons, the browser canvas, a popup window, the window on your screen that contains the browser?

If this pertains to javascript then you have the wrong forum.
He's talking about the browser window. I believe he wants it to show up in a/or something like a pop up window, because all he wants displayed is the text and the button.

^_^ Thanks, Death
Feb 6 '08 #6
Death Slaught
1,137 1GB
Hi nma, as drhowarddrfine and Minion pointed out, your question isn't HTML or CSS related, so please ask it in our JavaScript forum. Also you could put it in a frame if you want it on the same page.

^_^ Thank you, Death
Feb 6 '08 #7
Death Slaught
1,137 1GB
Sorry, accidently double posted. Please delete.

^_^ Thanks, Death
Feb 6 '08 #8
nma
93
Hi All

Thanks..

I'll send to the Javascripts forum.

nma
Feb 7 '08 #9
acoder
16,027 Expert Mod 8TB
Are you using window.open() to open the new window? You can specify the width and height in the third parameter. See link.
Feb 8 '08 #10

Sign in to post your reply or Sign up for a free account.

Similar topics

82
by: Peter Diedrich | last post by:
The site design is pretty simple: ============================================ | Head | ============================================ | | ...
3
by: Shiperton Henethe | last post by:
Hi Can anyone tell me how to open up a new normal, full-sized browser window from a small popup window? I'm using something like this. <script language="javascript"> <!--
4
by: Pat | last post by:
I want to submit an HTML form and have the reply appear in a small window that overlays the form window. After the reply is read, the user should be able to delete the small window, and then...
4
by: M Shafaat | last post by:
Hi! How can I make label, linklabel . controls to accept multilined text at design time and in the properties window of Visual Studio? Regards M Shafaat
0
by: Frnak McKenney | last post by:
Environment: OS Name Microsoft Windows 2000 Professional Version 5.0.2195 Service Pack 4 Build 2195 Microsoft Visual C# .NET 2003 Microsoft Development Environment 2003 Version 7.1.3088...
7
by: Tim Rogers | last post by:
Hi folks, this is a resolution-detect script that I used on a site. As you can see it is designed to detect when the screen resolution falls below a certain level then load an alternative style...
6
by: zdp | last post by:
Dear all: I made a window program by wxPython. Split windows, treectrl, listctrl and textctrl are used. When I program in python, the look & feel of the window controls are like the windos XP...
4
by: debadrita | last post by:
How to make a window page 100% using javascript or ajax , I want to make all pages height 100% in all resolution. I have small contents, so as I view this page in other resolutio I find this page...
20
by: Prisoner at War | last post by:
Hi, People, Is it possible to have an "empty" or "dummy" <a href***without*** the browser jumping back up the page?? I have a hyperlink that doesn't point to another document, but is used to...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.