Solved

cfinput type=t

Posted on 2009-05-12
15
133 Views
Last Modified: 2013-12-24
This tag is failing to validate in Coldfusion 8.  It was running on 7, now isn't working in 8.  Any ideas?


<cfinput required="yes" message="Last Name is Required"  name="lastname" type="text"  value="#t.lastname#">

Open in new window

0
Comment
Question by:NYGiantsFan
  • 7
  • 5
  • 3
15 Comments
 
LVL 19

Expert Comment

by:erikTsomik
ID: 24367342
what is name of the query
0
 
LVL 19

Expert Comment

by:erikTsomik
ID: 24367346
what error do you get ?
0
 
LVL 52

Expert Comment

by:_agx_
ID: 24368180
There is nothing wrong with the code.  It works fine with CF8.  

It is probably a problem with your mappings.  The validation scripts are located in /CFIDE .  If that mapping does not exist, CF will not be able to find the scripts that perform validation.  So the validation will not fire.


<cfset t.lastName = "something">

<cfform method="post">

	<cfinput required="yes" message="Last Name is Required"  name="lastname" type="text"  value="#t.lastname#">

	<cfinput type="submit" name="submitButton">

</cfform>

Open in new window

0
 

Author Comment

by:NYGiantsFan
ID: 24368184
object expected on this line

    if( _CF_hasValue(_CF_this['effectivedate'], "TEXT", false ) )

0
 
LVL 19

Expert Comment

by:erikTsomik
ID: 24368232
make sure that cfide mapping is created in CF administrator
0
 

Author Comment

by:NYGiantsFan
ID: 24368262
The mapping is created in the coldfusion 8 administrator.  I was able to go to the admin page from the main name.  

http://fe.mainwebsite.com/CFIDE/administrator/index.cfm
0
 
LVL 52

Accepted Solution

by:
_agx_ earned 500 total points
ID: 24368263
NYGiantsFan:

Open your browser and try and view this file:  (Replace 'localhost' with your server name)

          http://localhost/CFIDE/scripts/cfform.js

If you get an HTTP 404 (file not found) error, the problem is you are missing the /CFIDE mapping.

> make sure that cfide mapping is created in CF administrator

     Which is exactly what I just said.


0
Scale it in WD Gold

With up to ten times the workload capacity of desktop drives, WD Gold hard drives employ advanced technology to deliver among the best in reliability, capacity, power efficiency and performance.

 
LVL 52

Expert Comment

by:_agx_
ID: 24368277
>   if( _CF_hasValue(_CF_this['effectivedate'], "TEXT", false ) )

   Do you have a field named 'effectivedate' in your form?
0
 

Author Comment

by:NYGiantsFan
ID: 24368354
Yes...

<cfinput required="yes" message="Effective Date (E-Date) is Required (mm/dd/yyyy format)"  name="effectivedate" type="text" id="effectivedate" size="7" maxlength="15" validate="date">
0
 
LVL 52

Expert Comment

by:_agx_
ID: 24368369
What about the cfform.js file.  Does it exist?   Also, you are using an html form, yes?
0
 

Author Comment

by:NYGiantsFan
ID: 24368452
Yes, cfform.js exists in these locations:

c:\coldfusion8\wwwroot\cfide\scripts

and

c:\inetpub\wwwroot\cfide\scripts

Also, this is the form tag...

<cfform method="post" action="formp.cfm">
0
 
LVL 52

Expert Comment

by:_agx_
ID: 24368483
No, view it from a browser.   The physical file might exist, but you have to test the mapping. (ie what the browser sees).  That is what matters.
0
 

Author Closing Comment

by:NYGiantsFan
ID: 31580652
I remapped it in IIS and it works now.  Thanks.
0
 
LVL 52

Expert Comment

by:_agx_
ID: 24368602
NYGiantsFan,

Why the "B" grade? The problem was exactly what I said: the CFIDE mapping was wrong.
0
 
LVL 52

Expert Comment

by:_agx_
ID: 24371046
Good luck ..
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Introduction This article explores the design of a cache system that can improve the performance of a web site or web application.  The assumption is that the web site has many more “read” operations than “write” operations (this is commonly the ca…
Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
This tutorial demonstrates a quick way of adding group price to multiple Magento products.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now