PDA

Click to See Complete Forum and Search --> : totally confused ...


alex_read
Jun 7th, 2001, 05:15 AM
1 ) [VB one] I normally use :

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:
<%
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 :

close();
window.close();

which isn't working.


Thanks all :D

JoshT
Jun 7th, 2001, 06:11 AM
1. Remember that a checkbox on a web page isn't really an object. I believe you would use:


<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.)