-
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 :confused:
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 :rolleyes: ,
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 :D
-
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.)