# Javascript popup not firing

**URL:** <https://www.ruby-forum.com/t/javascript-popup-not-firing/83126>\
**Category:** Rails\
**Created:** [January 23, 2007, 8:37pm UTC](https://www.ruby-forum.com/t/javascript-popup-not-firing/83126 "2007-01-23T20:37:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![miked](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ed655f/32.png) [@miked](https://www.ruby-forum.com/u/miked)\
**Post date:** [January 23, 2007, 8:37pm UTC](https://www.ruby-forum.com/t/javascript-popup-not-firing/83126/1 "2007-01-23T20:37:57Z")

</div>

Hello:

I’m using a javascript calendar I found on the web, which I’m hoping  
will invoke a popup. For some reason, it almost looks like rails is  
squelching it. From my view:

Month+year scrollers

Since this is pure javascript/html, i can’t understand why it’s not  
popping up. Is rails squelching it for some reason? If so, why & how  
do I fix it.

If I’m down the wrong path - howabout a good on-page calendar for rails  
that will populate a field when a date is clicked on? I found  
calendargrid but didn’t have much luck getting it to work.

Mike

---

<div class="post-metadata">

**Author:** ![miked](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ed655f/32.png) [@miked](https://www.ruby-forum.com/u/miked)\
**Post date:** [January 23, 2007, 10:32pm UTC](https://www.ruby-forum.com/t/javascript-popup-not-firing/83126/2 "2007-01-23T22:32:33Z")

</div>

First off, go get Firebug ([https://addons.mozilla.org/firefox/1843/](https://addons.mozilla.org/firefox/1843/)).  
It’s  
invaluable for web, especially javascript, development. It will let you  
know  
where the error is if there is one.

From first glance though, make sure you have type=“text/javascript” in  
your

 tag, that's thrown me a few times. Otherwise, there's probably a javascript compiler error, which Firebug will tell you about. Jason
