[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 801
  • Last Modified:

JS calendar popup


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
kneidels
Asked:
kneidels
  • 2
1 Solution
 
ZvonkoSystems architectCommented:
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
 
kneidelsAuthor Commented:
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
 
ZvonkoSystems architectCommented:
Oh!, you are welcome :)
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now