|
-
Jun 7th, 2001, 05:15 AM
#1
Thread Starter
Evil Genius
totally confused ...
- 1 ) [VB one] I normally use :
Code:
response.write request.form("TxtBox1")
for server side ASP to show the value of the textbox on the submitting
request form, on my current server / response page.
How can I get this working with a checkbox please 
Code:
<%
Dim TempVar
Select Case request.Form.Item("chkFixed.checked")
Case true
TempVar= "Hello World !"
Case false
TempVar = "Goodbye World !"
End Select
response.write TempVar
%>
- 2) [Java one] Probably a simple one this
,
how can I close the current page / window / instance
of the web browser please ?
I'm trying the following :
Code:
close();
window.close();
which isn't working.
Thanks all
-
Jun 7th, 2001, 06:11 AM
#2
Black Cat
1. Remember that a checkbox on a web page isn't really an object. I believe you would use:
Code:
<input type="checkbox" name="CheckboxName" value="ValueAttribute">
If Request.Form("CheckboxName") = "ValueAttribute"
'then its checked, else it wasn't
2. window.close(); works for me on IE 5.5. It prompts for confirmation, though. (And it crashed Homesite when I said yes.)
Josh
Get these: Mozilla Opera OpenBSD
I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|