473,396 Members | 1,914 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Netscape and .net calendar

SS
Hi

I am using .net Calendar control, which works fine in IE but in netscape it
shows up but
when clicking on the date does not close and does not pass date back to
calling window.

ANy help would be appreciated, please

Here is the sample code.

Public Class Calendar

Inherits System.Web.UI.Page

#Region " Web Form Designer Generated Code "

'This call is required by the Web Form Designer.

<System.Diagnostics.DebuggerStepThrough()> Private Sub
InitializeComponent()

End Sub

Protected WithEvents Button1 As System.Web.UI.WebControls.Button

Protected WithEvents Label1 As System.Web.UI.WebControls.Label

Protected WithEvents Calendar1 As System.Web.UI.WebControls.Calendar

Protected WithEvents control As
System.Web.UI.HtmlControls.HtmlInputHidden

'NOTE: The following placeholder declaration is required by the Web Form
Designer.

'Do not delete or move it.

Private designerPlaceholderDeclaration As System.Object

Private Sub Page_Init(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Init

InitializeComponent()

End Sub

#End Region

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load

control.Value = Request.QueryString("textbox").ToString()

End Sub

Private Sub Calendar1_SelectionChanged(ByVal sender As System.Object, ByVal
e As System.EventArgs) Handles Calendar1.SelectionChanged

Dim strScript As String = "<script>window.opener.document.forms(0)." +
control.Value + ".value = '"

strScript += Calendar1.SelectedDate.ToString("MM/dd/yyyy")

strScript += "';self.close()"

strScript += "</" + "script>"

RegisterClientScriptBlock("DueDateScript", strScript)

End Sub

End Class

Here is the html page

<%@ Page Language="vb" AutoEventWireup="false" Codebehind="GetDate.aspx.vb"
Inherits="LifetimeFitness.GetDate" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<HTML>

<HEAD>

<title>GetDate</title>

<meta name="GENERATOR" content="Microsoft Visual Studio .NET
7.1">

<meta name="CODE_LANGUAGE" content="Visual Basic .NET 7.1">

<meta name="vs_defaultClientScript" content="JavaScript">

<meta name="vs_targetSchema"
content="http://schemas.microsoft.com/intellisense/ie5">

</HEAD>

<body MS_POSITIONING="GridLayout">

<form id="Form1" method="post" runat="server">

<asp:TextBox id="txtDate" style="Z-INDEX: 101; LEFT: 8px;
POSITION: absolute; TOP: 32px" runat="server"></asp:TextBox>

<a href="javascript:;"
onclick="window.open('Calendar.aspx?textbox=txtDat e','cal','width=225,height
=210,left=270,top=180')">

<img src="images/SmallCalendar.gif" border="0"> </a>

</form>

</body>

</HTML>

Thx

SS
Jul 23 '05 #1
2 1320


SS wrote:
Private Sub Calendar1_SelectionChanged(ByVal sender As System.Object, ByVal
e As System.EventArgs) Handles Calendar1.SelectionChanged

Dim strScript As String = "<script>window.opener.document.forms(0)." +
control.Value + ".value = '"


Make that at least

"<script
type=""text/javascript"">window.opener.document.forms[0].elements['" +
control.Value + "'].value = '"

of course all on one line.

--

Martin Honnen
http://JavaScript.FAQTs.com/
Jul 23 '05 #2
SS
Thx Martin that worked

SS

"Martin Honnen" <ma*******@yahoo.de> wrote in message
news:41***********************@newsread2.arcor-online.net...


SS wrote:
Private Sub Calendar1_SelectionChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Calendar1.SelectionChanged

Dim strScript As String = "<script>window.opener.document.forms(0)." +
control.Value + ".value = '"


Make that at least

"<script
type=""text/javascript"">window.opener.document.forms[0].elements['" +
control.Value + "'].value = '"

of course all on one line.

--

Martin Honnen
http://JavaScript.FAQTs.com/

Jul 23 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Matthew | last post by:
Hello - I have this DHTML calendar that displays about 10 pixels off its target in Netscape 7.0 -- from the script layer I have the block of code identified that positions the calender on the...
1
by: LJL | last post by:
Greetings: I have a question regarding the system time and Netscape 7. I am running Win98SE. When Netscape 7 first loads it seems to store the currently set system time zone information. If...
4
by: Jesse Wade | last post by:
Hello people. Does the world need another DHTML popup calendar? Probably not, but I'm writing one anyway. It's unique in that it allows drag selection of a range of dates. Works great on IE6 but...
2
by: Shafiq | last post by:
Hello All, I am using calendar.htc successfully in Internet Explorer 6, but when i try the code to work in Netscape 7.1 it donot show the calendar control at all. A sample of calendar.htc...
4
by: Neal | last post by:
Hi All I developed a site in ASP.Net 2003, which is great in IE 5.5 + but a lot of our users at the University use Netscape and it just don't work in Netscape. Hyperlinks (webform) align...
0
by: SS | last post by:
Hi I am using .net Calendar control, which works fine in IE but in netscape it shows up but when clicking on the date does not close and does not pass date back to calling window. ANy help...
1
rcollins
by: rcollins | last post by:
I built a css and looks great in ie, but that is the only one. I am not familiar with how browsers react to css, so could someone please help me? On the side of my page I have images that are used as...
3
by: thorpk | last post by:
I posted this problem earlier in the month and some one decided it was better to change the subject and ask a completely different question. I am therefore reposting. I am hoping some one can...
1
by: abhishekbrave | last post by:
The code below is opening a calendar on mouse over in the same window. I need the calendar to be opened in new window. Have to fulfill this requirement urgentely so posting the whole code here. I...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.