Results 1 to 2 of 2

Thread: totally confused ...

  1. #1

    Thread Starter
    Evil Genius alex_read's Avatar
    Join Date
    May 2000
    Location
    Espoo, Finland
    Posts
    5,538

    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

    Please rate this post if it was useful for you!
    Please try to search before creating a new post,
    Please format code using [ code ][ /code ], and
    Post sample code, error details & problem details

  2. #2
    Black Cat JoshT's Avatar
    Join Date
    Nov 2000
    Location
    WNY, USA
    Posts
    4,032
    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
  •  



Click Here to Expand Forum to Full Width