Solved

JS calendar popup

Posted on 2004-04-29
3
792 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Dynamic Dropdowns 15 32
How to pass JavaScript generated HTML text form values to PHP? 5 38
iframe - style elements within an iframe 7 36
Copying table data to one another 15 29
Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
In Part 1 (http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/A_7849-Hex-Maze.html) we covered the hexagonal maze basics -- how the cells are represented in a JavaScript array and how the maze is displayed.  In this part, we'…
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…

861 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