Ezra Wolfe on 23 Nov 2010 07:42:14 -0800


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

Re: [PLUG] OT: Need Javascript Help


On the broken page, you open a <TABLE> element, but don't close it. I'd try removing that first. It's probably causing a problem with DOM parsing. Just a guess.

On Tue, Nov 23, 2010 at 10:38 AM, Casey Bralla <MailList@nerdworld.org> wrote:
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



--
Regards,
Ezra Wolfe

DLC Solutions, LLC
109 South 13th Street 
Unit Two South
Philadelphia, PA 19107
Office: 267-234-7400 Ext. 21
Mobile: (215) 868-5336

Award-Winning eHealth Solutions | Philadelphia, PA & Washington, DC

___________________________________________________________________________
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