Small window popup

M

Mark B

I'd like a little window to pop up when a user clicks the hyperlink text
"Grade Key":

Grade Key

Score Range
A+ 95% - 100%
A 90% - 94%
A- 85% - 89%
B+ 80% - 84%
B 75% - 79%
B- 70% - 74%
C+ 65% - 69%
C 60% - 64%

(it's a small table).

In ASP 3.5, how can I specify that the window is small, has no browser menus
etc?
 
M

marss

I'd like a little window to pop up when a user clicks the hyperlink text
"Grade Key":

Grade Key

Score                Range
A+                    95% - 100%
A                      90% - 94%
A-                    85% - 89%
B+                    80% - 84%
B                      75% - 79%
B-                    70% - 74%
C+                    65% - 69%
C                      60% - 64%

(it's a small table).

In ASP 3.5, how can I specify that the window is small, has no browser menus
etc?

You can set browser window height/width by means of javascript
(regardless of ASP.Net version).
http://www.javascript-coder.com/window-popup/javascript-window-open.phtml
http://msdn.microsoft.com/en-us/library/ms536651(VS.85).aspx

If you want to show in new popup window just a few html tags without
creating special static html page then you can open empty window and
write required html directly there. For example:

<script type="text/javascript">
function ShowPopup()
{
var html = "Grade Key<table><tr><th>Score</th><th>Range</th></
tr><tr><td>A+</td><td>95% - 100%</td></tr><tr><td>...</td><td></td></
tr></table>";
var w = window.open("about:blank", null,
"toolbar=0,menubar=0,location=0,width=250px,height=300px");
w.document.write(html);
w.document.close();
}
</script>
<a href="javascript:ShowPopup();void(0);">Grade Key</a>

Mykola
http://marss.co.ua
 
B

bruce barker

most browsers will no longer honor this settings for security. the most
approach is a floating div. the ajax toolkit has a control that does this.

-- bruce (sqlwork.com)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,996
Messages
2,570,237
Members
46,825
Latest member
VernonQuy6

Latest Threads

Top