Here is an example javascript popup you can use in a web page to open another window. A popup box can be used to add controls or a message box to an application. Note that the window.open Javascript method is blocked by the Google Toolbar, Windows XP Service Pack 2 Internet Explorer and Mozilla.
This example opens a 200x200 fixed square with no controls at the Group29 home page.
Code:
<HTML>
<HEAD>
<TITLE>Group29 Test</TITLE>
<SCRIPT LANGUAGE="JScript">
function testPopup() {
open('http://www.group29.com','myPopup', 'toolbars=no, height=200, width=200');}
</SCRIPT>
</HEAD>
<BODY onclick="testPopup();">
Click this page and window.open() is called.
</BODY>
</HTML>
More Information on the Window.open method can be found in this section of MSDN.
MSDN Home > MSDN Library > Web Development > HTML and CSS > HTML and DHTML Reference > Methods
Last edited by BB on Thu Apr 07, 2005 8:56 am; edited 1 time in total
Problem with Request.Cookies Boolean Values ASP.NET VB.NET
Posted: Thu Apr 07, 2005 8:51 am
BB
Regular
Joined: Jun 23, 2004
Posts: 340
In Visual Studio.NET ASP.NET web page applications, The Response.Cookies function automatically converts a Boolean value into "True" or "False" string values.
Code:
Private mShowAnonymousUsers As Boolean
Request.Cookies("RPTUserLog")("ShowAnonymousUsers") = mShowAnonymousUsers
So when you go to request the cookie value from another page, you will want to convert the value from a string.
Code:
Private mShowAnonymousUsers As Boolean
mShowAnonymousUsers = CookieBooleanConvert(Request.Cookies("RPTUserLog")("ShowAnonymousUsers"))
Here is a helper function:
Code:
' If you store a boolean in a cookie using Response.Cookies, it gets converted
' to a string. "True" or "False" (case sensitive)
Private Function CookieBooleanConvert(ByVal CookieString As String) As Boolean
Select Case CookieString
Case "False"
Return False
Case "True"
Return True
Case Else
Return False
End Select
End Function
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
All logos and trademarks in this site are property of their respective owner. The comments are property of their posters, all the rest (c) 2006 by Group29 Productions.
You can syndicate Group29 Productions news with an RSS Feeder using the file backend.php