borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (how session is maintained by web server ?)Next Topic (How to open a window by javascript in the center of the screen?) New Topic New Poll Post Reply
AndreaVB Forum : ASP.Net : Need Netscape specific javascript help ?
Poster Message
tri_inn
Level: Regular User
Registered: 26-08-2002
Posts: 395

icon Need Netscape specific javascript help ?

suppose i have two webform called weform1 and weform2 in webform1 i have grid.
at run time my grid will show textboxes and and a hyperlink in all the row
when some one will click on hyperlink then webform2 will open and a calender will be show in
webform2. when some one will select any date then webform2 will close and that date will be inseted
in the textbox of datagrid of webform1. i have given below a script which works fine in IE browser but
this script does not work at all in netscape browser.so please give me the script like below
which will work in netscape browser.

my script is given below which work only in IE browser.

Public Sub Calendar1_SelectionChanged(ByVal sender As Object, ByVal e As EventArgs)
        Dim strjscript As String = "<script language=javascript>"
        strjscript &= "window.opener." & _
              HttpContext.Current.Request.QueryString("formname") & ".value = '" & _
              Format(Calendar1.SelectedDate, "dd/MM/yyyy") & "';window.close();"
        strjscript &= "</script>"
    Literal1.Text = strjscript
  End Sub

10-09-2004 at 05:35 AM
View Profile Send Email to User Show All Posts | Quote Reply
AndreaVB Forum : ASP.Net : Need Netscape specific javascript help ?
Previous Topic (how session is maintained by web server ?)Next Topic (How to open a window by javascript in the center of the screen?) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder