473,466 Members | 1,457 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Calendar Widget Problem

101 New Member
Hi ,

I am facing a problem with Calendar widget in IE a combo is overlapping calendar widget but in mozilla it is working fine...


IE


Mozilla:




Please Help...i tried z-index:100 in css but not got any success...

Bunty
Jun 1 '07 #1
8 2529
merseyside
48 New Member
Good news, there's nothing wrong with what you've done and both browsers are working as expected. Bad news, IE is doing exactly what is says on the tin and isn't overlapping the select properly.

Two alternatives you could try. Firstly (using JavaScript), on displaying the calendar, take the select out of the document and replace with an ordinary text box (making sure the user can't do anything with it). On closing the calendar recreate the select and put back into the document. Secondly, instead of using a div for the calendar widget try an iframe.
Jun 1 '07 #2
acoder
16,027 Recognized Expert Moderator MVP
This has been fixed in IE7 so you're probably using IE6. The second method mentioned by merseyside is called "iframe shimming" and should work in IE5.5+.
Jun 1 '07 #3
buntyindia
101 New Member
Good news, there's nothing wrong with what you've done and both browsers are working as expected. Bad news, IE is doing exactly what is says on the tin and isn't overlapping the select properly.

Two alternatives you could try. Firstly (using JavaScript), on displaying the calendar, take the select out of the document and replace with an ordinary text box (making sure the user can't do anything with it). On closing the calendar recreate the select and put back into the document. Secondly, instead of using a div for the calendar widget try an iframe.

What exactly the bug is?
Jun 1 '07 #4
acoder
16,027 Recognized Expert Moderator MVP
What exactly the bug is?
It's a browser bug. Select elements always appear above anything no matter what the z-index setting is. This was fixed in IE7. Firefox and other browsers do not suffer from this.
Jun 1 '07 #5
buntyindia
101 New Member
Thanks ....for your help acoder...

Help is really very much appreciable :)
Jun 1 '07 #6
acoder
16,027 Recognized Expert Moderator MVP
You're welcome. Try and search for "iframe shim" and you should find examples of code which will help to solve your problem.
Jun 1 '07 #7
buntyindia
101 New Member
You're welcome. Try and search for "iframe shim" and you should find examples of code which will help to solve your problem.
I think the second idea is more effective that we can Hide the combo when calendar appears & show again when calendar disappear ?

How we can do this?
Jun 4 '07 #8
acoder
16,027 Recognized Expert Moderator MVP
I think the second idea is more effective that we can Hide the combo when calendar appears & show again when calendar disappear ?

How we can do this?
The first method is actually more effective - it appears as though there isn't a problem/bug at all. Surely that's more effective. In the second method, the user will notice something flashing away and coming back again.

I admit though that it is easier to program. In your calendar display function, hide the select element using:
Expand|Select|Wrap|Line Numbers
  1. document.getElementById('selObjId').style.visibility='hidden';
To show again, in your code/function that hides the calendar, just use the same line replacing 'hidden' with 'visible'.
Jun 4 '07 #9

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Camilo Olarte | last post by:
If you ever need a calendar dialog in Tkinter , You can use mine: http://pythonical.sourceforge.net/pyTkCalendar.html Camilo Olarte
2
by: Srinath Avadhanula | last post by:
Hello, Sorry to be bringing up what seems to be a somewhat beaten up topic... This is what I wanted to do: Create a _simple_ text editor widget which supports VI(M) style keybindings but...
3
by: Thomas Kemetmüller | last post by:
Hi folks! I'm searching for a cross browser compatible DHTML popup calendar, there are plenty of those on the web, but I need one, which is absolutely free, very simple and good looking, do you...
2
by: Caesar Augustus | last post by:
First, let me start by saying my asp.net experience is still in it's infancy so please bare with me as I try to explain my situation. I have created a single page that with the use of many...
3
by: buntyindia | last post by:
Hi, I am using the following Calendar widget script .... http://img169.imageshack.us/img169/5866/dateof5.gif http://www.totallysmartit.com/examples/calendar/simple.asp I am facing a...
0
by: kang jia | last post by:
hi currently, i am doing car rental final year project. Now i need to let user choose their date and specific time to book the car from our website. however, i am not sure how to make use of...
3
by: mariox19 | last post by:
Are Tkinter widgets running on their own thread? If I try to make a simple application that will print the letters A to Z to a Tkinter Text widget, and I space the printing of each letter by 1...
4
by: gubbachchi | last post by:
Hi all, Please anybody help me solve this problem. I am stuck up with this from past 2 weeks. I am developing an application where, when the user selects date from javascript datepicker and enters...
15
by: Gilles Ganault | last post by:
Hello Since Python is such a productive language, I'd really like to be able to use it to write GUI apps for Windows, but business apps require rich widgets like (DB)grids, calendars, etc. ...
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
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
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.