Casey Bralla on 23 Nov 2010 07:38:43 -0800


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

[PLUG] OT: Need Javascript Help


Sorry for the off-topic, but I'm working on a web page that runs on apache on 
Debian. <grin>


I'm trying to incorporate a javascript to select dates.  I'm using Matt 
Kruse's CalendarPopup.js routine, which seems pretty cool ( 
http://www.mattkruse.com/javascript/calendarpopup/ )

However, I'm having a weird problem.  The calendar popup will not work if 
there is an html FORM preceeding the call to the OnClick routine.  If the FORM 
follows the OnClick routine, everything works fine.  If the form preceeds the 
OnClick, nothing happens.  (No error messages in /var/loga/apache2/error.log, 
either)

I'm new to javascript, but this seems totally goof-ball and makes no sense to 
me.



Here are 2 pages that show what I mean:

This works:
http://project.nerdworld.org/popupworks.html


This does not work:
http://project.nerdworld.org/popupnoworks.html

The pages are almost identical, except that I commented out the FORM 
preceeding the call to the javascript routine.


Can somebody explain what the heck is going on here?
-- 

Casey Bralla
Chief Nerd in Residence
The NerdWorld Organisation
http://www.NerdWorld.org
___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug