473,327 Members | 1,997 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,327 software developers and data experts.

Small window popup

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?

Jul 25 '08 #1
6 2507
HI,

You can use JavaScript to do such times... with
window.showmodaldialog ...
or perhaps use light box stuff..
use ajax modal dialog...
http://www.asp.net/AJAX/AjaxControlT...odalPopup.aspx

best of luck

Munna
Jul 25 '08 #2
"Munna" <mu******@gmail.comwrote in message
news:3b**********************************@w1g2000p rk.googlegroups.com...
You can use JavaScript to do such times... with
window.showmodaldialog ...
Please don't advise people to use window.showModalDialog as it is totally
non-standard, and proprietary to IE and Safari.

Much better cross-browser solutions exist these days with AJAX:
http://www.google.co.uk/search?sourc...2&q=AJAX+modal
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Jul 25 '08 #3
On Jul 25, 5:04*am, "Mark B" <none...@none.comwrote:
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/wind...dow-open.phtml
http://msdn.microsoft.com/en-us/libr...51(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
Jul 25 '08 #4
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)

marss wrote:
On Jul 25, 5:04 am, "Mark B" <none...@none.comwrote:
>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/wind...dow-open.phtml
http://msdn.microsoft.com/en-us/libr...51(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
Jul 25 '08 #5
Hi,,

Mark is right ...

window.showmodaldialog works in ie and Safari...
j query light box on the there hand works with all browser...

http://leandrovieira.com/projects/jquery/lightbox/

Regards

Munna
Jul 26 '08 #6
Hi,

thik box is all purpose javascript dialog ...

http://jquery.com/demo/thickbox/

Regards

Munna
Jul 26 '08 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: John | last post by:
Is it possible to use PHP to pop a small window to display some quick information. For example if someone adds an item to a shopping cart, a small window should pop up, saying the item has been...
1
by: Noozer | last post by:
When using the WebBrowser control, is it possible to cause popup windows to appear within the WebBrowser control itself instead of a new window? This is what I've written in the NewWindow2 event,...
3
by: Arthur Connor | last post by:
Below you will find the first lines of my HTML page. Why doesn't popup a dialog window ? I click the Html page which is on my hard disc. A IE 5.5 browser window opens but not a dialog window...
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...
1
by: tmp | last post by:
I want to have a 'help' popup on seveal key words on a page. I don't want to use a button... But would like to do it like a link... so the text on the page is the link to the Popup Window. ...
19
by: Darren | last post by:
I have a page that opens a popup window and within the window, some databse info is submitted and the window closes. It then refreshes the original window using window.opener.location.reload(). ...
14
by: D. Alvarado | last post by:
Hello, I am trying to open a window containing an image and I would like the image to be flush against the window -- i.e. have no padding or border. Can I make this happen with a single call to a...
7
by: anthony.turcotte | last post by:
Hi, I've looked for a solution to this problem on google, read posts in this newsgroup and I still haven't found anything that could help me. Here's the scenario. 1. User accesses...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.