First of all, this question has _nothing_ to do with Pylons -- if you
didn't know about it, you do now.

Second, it seems that you have intentionally renamed the downloaded
JavaScript library, so I think the first point to check can be: Is
your installed copy accessed at http://yourserver/js/calendar.js ?

Third, a bare-bone working HTML example (not tested) would be --

"""
<html>
  <head>
    <script type="text/javascript" src="/js/
dhtmlgoodies_calendar.js"></script>
  </head>
  <body>
    <form>
      <input type="button" value="Cal" onclick="displayCalendar
(document.forms[0].theDate,'yyyy/mm/dd',this)" />
    </form>
  </body>
</html>
"""

Fourth, I can't stop myself from warning you that that site is
providing very sloppy (reads BAD) HTML example with non-progressive
(reads BAD) JavaScript usage which does not even get rendered properly
in Firefox. The same effect can be achieved 42 times more elegantly
with any modern unobstructive JavaScript libraries such as JQuery,
Prototype, etc.

Finally, I think you should show more effort by reading up on the HTML
basics first.

Jerry

On Mar 6, 4:34 am, "[email protected]"
<[email protected]> wrote:
> Hello.
>
> How to use JavaScript in template form?
>
> I'v add
>
> <script src='/js/calendar.js'></script>
> <input type="text" value="2004/02/02" readonly name="theDate">
> <input type="button" value="Cal" onclick="displayCalendar
> (document.forms[0].theDate,'yyyy/mm/dd',this)">
>
> http://www.dhtmlgoodies.com/index.html?page=calendarScripts
>
> Alexy
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to