Solved

JS calendar popup

Posted on 2004-04-29
3
793 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Having worked on larger scale sites, we found out that you are bound to look at more scalable solutions to integrating widgets, code snippets or complete applications and mesh them into functional sites, in any given composition. To share some of…
This article discusses the difference between strict equality operator and equality operator in JavaScript. The Need: Because JavaScript performs an implicit type conversion when performing comparisons, we have to take this into account when wri…
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…

733 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