Copy link to clipboard
Copied
Hello,
Hopefully, someone can shed some light on this particular issue that has arisen since switching servers. This is a form where individuals enter shift information like when coming on shift and going off shift to include dates and times. The <cfinput> for date and times have a mask attribute (see Coded As) so that the user only has to input the numbers. All was working without issues on previous server, however since migration to new server the Java Script Error listed below has arisen with IE 7 and IE 9 (compatibility mode). I have included how the <cfinput> form element is being rendered with IE7 and IE9 (See Rendered As below).
Does anyone have an idea as to why this is happening with just a server migration, when all was working before on the other server? Thanks in advance for insight.
Leonard B
Previous Server: 2003 w/ IIS 6
Current Server: 2008 R2 Datacenter SP1 Build 7601 w/ IIS 7
CF8 Version 8,0,1,195765
Browser: IE 7 & 9 w/ IE 9 running in compatibility mode
Java Scrip Error:
Description: The value of the property 'mask_onSetFocus' is null or undefined, not a Function object.
Source:
http://www.domainname.com/members_only/view/members/eforms/time_cards/career/index.cfm
Line: 218
Coded As:
<div style="clear: both; float: left; padding: 0px 10px 0px 0px">
<label for="start_date" class="formLabel"> FROM DATE</label><br />
<cfinput type="text" name="from_date" mask="99/99/9999" class="formInput" id="from_date" style="text-align: center; width: 85px;" dir="ltr" lang="en" maxlength="10" typeahead="no" showautosuggestloadingicon="true" xml:lang="en">
</div>
Rendered As:
<div style="clear: both; float: left; padding: 0px 10px 0px 0px">
<label for="start_date" class="formLabel"> FROM DATE</label><br />
<input name="from_date" type="text" maxlength="10" class="formInput" dir="ltr" xml:lang="en" id="from_date" style="text-align: center; width: 85px;" lang="en" onkeyup="mask_onValueChanged();" onfocus="mask_onSetFocus(this, '99/99/9999');" onblur="mask_onKillFocus();" />
</div>
Update -
The JavaScript Error was not just in IE it was also present in FireFox as well. FireFox does display the JavaScript PopUp Error Messages like IE does.
Cause - no reference to the CFIDE folder/contents.
Solution - create a virtual CFIDE folder for each web site, pointing to the CFIDE folder for CF.
The cause and solution was determined by the server technical support team at CrystalTech (now Newtek). I was too tunnel visioned on the fact the new server was the same as the previous server, wh
...Copy link to clipboard
Copied
Update -
The JavaScript Error was not just in IE it was also present in FireFox as well. FireFox does display the JavaScript PopUp Error Messages like IE does.
Cause - no reference to the CFIDE folder/contents.
Solution - create a virtual CFIDE folder for each web site, pointing to the CFIDE folder for CF.
The cause and solution was determined by the server technical support team at CrystalTech (now Newtek). I was too tunnel visioned on the fact the new server was the same as the previous server, when in reality it wasn't, hence the CFIDE reference.
Leonard B