Saturday, May 24, 2014

_48a is undefined datefield in coldfusion

I was using ColdFusion calender control inside cfform and always I was getting error "_48a is undefined" in cfcalender.js. After doing a lot of searching and some R&D finally I got the solution for this issue.

The issue was due to the wrong formatting of HTML code, lets see what was that in my case:

<table>
<cfform>
<tr>...</tr>
</cfform>
</table>

When I was putting cfform outside of td but inside of table then it was throwing error. So, what is the solution???

Solution: Put cfform tag either outside of table or inside of td.

But, in some cases it may not solve your problem, at that time you can take care following points:


  • Make sure your HTML formatting is correct. Example: There should not be start cfform tag inside <p> and end cfform tag outside of <p>.
  • Make sure there is no duplicate ID or name for a form and form elements inside the page.
  • Put the following meta tag in the header of the page: <meta http-equiv="X-UA-Compatible" content="IE=8" />. (This is optional)

1 comment:

  1. Do this hack to drop 2lb of fat in 8 hours

    Over 160k women and men are utilizing a simple and SECRET "liquid hack" to lose 2lbs every night while they sleep.

    It's scientific and works with anybody.

    Here's how to do it yourself:

    1) Take a glass and fill it up half full

    2) And then follow this amazing HACK

    you'll become 2lbs skinnier when you wake up!

    ReplyDelete

Followers