tri_inn Level: Regular User Registered: 26-08-2002 Posts: 395
|
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
|