Solved

JS calendar popup

Posted on 2004-04-29
3
790 Views
Last Modified: 2012-05-04

Hi guys.
 
i'm working on a form with dates as part of the entries. one of the fields uses a pop-up calendar.
 
the strange thing is that one fine day, the popup stopped working. it still works fine on another site, but this one - the page loads, but come up empty, ie: you scroll thru white space!
 
if i take out the script link to the calendar script, the page works fine, but naturally the popup doesnt. <script language="javascript" src="popcalendar.js"></script>
 
 
if someone can took a look, that would be great! the calendar popup should be on the last text field on the page ("expiry date"), loaded by either clicking in the field, or on the image next to it.
 
links (watch for line breaks):
loads fine, no calendar: http://64.156.223.247/admn/content/add_wo.asp?cat=2
 
with calendar script linked, but loads an empty page: http://64.156.223.247/admn/content/add.asp?cat=2 
 
 
thanks!
Kneidel
 
PS; dont look at the broken template links - this is currently a test page only.
0
Comment
Question by:kneidels
  • 2
3 Comments
 
LVL 63

Accepted Solution

by:
Zvonko earned 250 total points
ID: 10948653
When I look at your add.asp produced code, then I see this:



  <BODY>
    <DIV style="z-index: 999; position: absolute; visibility: hidden;"
         id="calendar" onclick="bShow=true">
      <TABLE bgcolor="#ffffff"


Therefore is the complete folowing section of the page invisible.
I suppose you did overwritten your regular body by some document.write() calls.

I see also only two top level <div>s in the body: calender and selectMonth
The complete rest of the body is inside of selectMonth. Perhaps that divs closing </div> was missing?

0
 

Author Comment

by:kneidels
ID: 10949268
thanks! this is indeed the answer!
many thanks for a qucik and accurate solution.
i had to change the "</select>" to </div> as you said.

seems to have done the trick :)
0
 
LVL 63

Expert Comment

by:Zvonko
ID: 10949302
Oh!, you are welcome :)
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Today I would like to talk about localizing (Internationalization) JavaScript applications. Introduction When creating an application that is going to be used by many people around the globe, it is important to remember that not everyone speak…
JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

947 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now