Casey Bralla on 23 Nov 2010 07:52:47 -0800


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

Re: [PLUG] OT: Need Javascript Help


On Tuesday 23 November 2010 10:42:08 am Ezra Wolfe wrote:
> 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.

Doh!  Good catch, but closing the table didn't solve the problem.  <sigh>

> 
> 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