473,320 Members | 2,088 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,320 software developers and data experts.

Calendar control (WEB)

Hello everyone,

I have a terrible with Calendar control and I hope someone of you can
help me. The problem is following. I have to display a calendar to
select date. I have prepared page with calendar control I and open it
when user click a button. The problem is that I need this “Calendar
page” to be modal, so I use window.showModalDialog function. If I open
my page in that way then the calendar control (where every day is a link
with javascript:SetDate(…) ) open new window with address
“javascript:SetDate(…)” . I have changed the construction of this “day
links” in that way that now href=”#” but onclick event calls SetData
function. It works fine. But the problem is that there are two links to
navigate between months which I cant access from my code (I mean I don’t
know how to do it). These links still has href= javascript:SetDate(…)
and open new page. Do you have any idea how to access these links
(override some methods or ssthng like that). Thanks for any help.

Best Regards
Slawek


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 18 '05 #1
1 1174
Hi, Slawek,

To prevent opening a new window add

<base target="_self">

in the <head></head> part of the page that opens in the modal dialog.

I'm afraid I don't understand the rest of your problems.

Hope this helps
Martin
"slawek xxxxx" <sl********@wp.pl> wrote in message
news:OE**************@TK2MSFTNGP09.phx.gbl...
Hello everyone,

I have a terrible with Calendar control and I hope someone of you can
help me. The problem is following. I have to display a calendar to
select date. I have prepared page with calendar control I and open it
when user click a button. The problem is that I need this "Calendar
page" to be modal, so I use window.showModalDialog function. If I open
my page in that way then the calendar control (where every day is a link
with javascript:SetDate(.) ) open new window with address
"javascript:SetDate(.)" . I have changed the construction of this "day
links" in that way that now href="#" but onclick event calls SetData
function. It works fine. But the problem is that there are two links to
navigate between months which I cant access from my code (I mean I don't
know how to do it). These links still has href= javascript:SetDate(.)
and open new page. Do you have any idea how to access these links
(override some methods or ssthng like that). Thanks for any help.

Best Regards
Slawek


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 18 '05 #2

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

Similar topics

7
by: Colin Young | last post by:
I have a UserControl that contains a calendar control. The calendar is not raising events (month navigation, date selections, etc.). I've checked that the OnSelectionChanged event has a handler...
6
by: Jeff S | last post by:
I would like recommendations for implementing a calendar in an ASP.NET web site. My plan is to store date and event information (e.g,, "Spring Sale") in a database, and when the page is requested,...
5
by: Miguel Dias Moura | last post by:
Hello, i am trying to create a .css file with several styles and apply them to the calendar control so i can change the look of: 1. Text Type and Format (Bold, Underline, etc) 2. Background...
4
by: Nad | last post by:
Hello, I have a user control that has a button and a Calendar. Once you click on the button I display the calendar. Now when I move this user control to a web form, once I click on this button...
1
by: Frank Bishop | last post by:
I have a user control that will open and close the calendar control when the user clicks on an anchor tag. Instead of having the user remember to close the calendar after they make a day selection,...
5
by: Peter | last post by:
Is it possible to span / display a graphic in the web calendar control that spans more than one cell / day? Does anyone have an example of this? Thanks Peter
2
by: serge calderara | last post by:
Dear all, I have a webform with a calendar control on it. When loaded the calendar is set to the current date. Depending on a criteria from a database field, calendar day cell appears with red...
3
by: Peter | last post by:
Is there anyway to make the System.Web.UI.WebControls.Calendar to display only Month Name and Year, like: January, 2006 February, 2006 ..... .... .... ....
4
by: rushikesh.joshi | last post by:
Hi All, I want to create custom control by using Web.UI.WebControls.Calendar, in which I want to set few days with different color. I had created two property to set the color and storing in...
3
by: mark4asp | last post by:
How can I stop my Calendar control from firing the form validation events? I have a form containing several controls which have several validation controls each. One control is a TextBox...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.