focus popups

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dhoward
    New Member
    • Aug 2007
    • 18

    focus popups

    I having a problem with my popup calendar. What I would like to do is focus on a particular textbox after a date is selected and right now it's not doing that. Does anyone have any idea how to do it? here's the code...
    [code=vb]
    Dim popupScript As String = "<script language='javas cript'>" & _
    "window.open('c alendar.aspx?fo rmname=frmFirew orksPe rmitApp.txtdisp laydate', 'calendar', " & _
    "'width = 300, height = 200, menubar = no, resizable=yes, scroll=auto');m y_window.focus( )" & _
    "</script>"

    Private Sub btncal1_Click(B yVal sender As System.Object, ByVal e As System.EventArg s) Handles btncal1.Click
    Page.RegisterSt artupScript("Po pUPScript", popupScript)

    End Sub
    [/code]
    --------------------------------------------------------------------------------
    Last edited by pbmods; Sep 14 '07, 11:12 PM. Reason: Added CODE tags.
  • pbmods
    Recognized Expert Expert
    • Apr 2007
    • 5821

    #2
    Heya, DHoward.

    Please use CODE tags when posting source code:

    &#91;CODE=vb]
    VB code goes here.
    &#91;/CODE]

    Comment

    • acoder
      Recognized Expert MVP
      • Nov 2006
      • 16032

      #3
      Show the form HTML markup.

      Comment

      Working...