Solved

JS calendar popup

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

When you need to keep track of a simple list of numbers or strings, the Array object is your most direct tool.  As we saw in my earlier EE Article (http://www.experts-exchange.com/A_3488.html), typical array handling might look like this: (CODE) B…
This article discusses how to create an extensible mechanism for linked drop downs.
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…

758 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

22 Experts available now in Live!

Get 1:1 Help Now