Connecting Tech Pros Worldwide Forums | Help | Site Map

Small window popup

Mark B
Guest
 
Posts: n/a
#1: Jul 25 '08
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?


Munna
Guest
 
Posts: n/a
#2: Jul 25 '08

re: Small window popup


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
Mark Rae [MVP]
Guest
 
Posts: n/a
#3: Jul 25 '08

re: Small window popup


"Munna" <munnaonc@gmail.comwrote in message
news:3be9f20a-aca8-4630-9fd4-4cb35049c2cf@w1g2000prk.googlegroups.com...
Quote:
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

marss
Guest
 
Posts: n/a
#4: Jul 25 '08

re: Small window popup


On Jul 25, 5:04*am, "Mark B" <none...@none.comwrote:
Quote:
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
bruce barker
Guest
 
Posts: n/a
#5: Jul 25 '08

re: Small window popup


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:
Quote:
On Jul 25, 5:04 am, "Mark B" <none...@none.comwrote:
Quote:
>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
Munna
Guest
 
Posts: n/a
#6: Jul 26 '08

re: Small window popup


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
Munna
Guest
 
Posts: n/a
#7: Jul 26 '08

re: Small window popup


Hi,

thik box is all purpose javascript dialog ...

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

Regards

Munna
Closed Thread