Skip to main content
May 18, 2011
Question

cfapplication stop bind function ?

  • May 18, 2011
  • 1 reply
  • 1721 views

Sorry i face a problem here with bind.

<cfinput type="text"

name="Name"

maxlength="100"

size="30"

required="yes"

message="Restaurant name is required!"

validateAt="onSubmit, onServer"

autosuggest="cfc:Restaurants.LookupRestaurant({cfautosuggestvalue})">

If just run this single file, the autosuggest or bind is working , i can get the result.

But after i add an application.cfm , start with

<cfapplication name="cfcentral"

       sessionmanagement="true"

       sessiontimeout="#CreateTimeSpan(0,0,30,0)#"

       />

  <cfset application.dsname="suman">

  <cfset request.dsname="suman">

  <cfset session.profile=StructNew()>

T.T then my big problem happen , the autosuggest or bind is no more function. i have use cflogin in the application.cfm

Please help me . . . .

    This topic has been closed for replies.

    1 reply

    glamorous_Wonder6C1C
    Inspiring
    May 18, 2011

    use <cfajaximport tag="cfform"> tag at the top of your template, it may works.

    May 19, 2011

    i try to put <cfajaximport tag="cfform"> at the top of my template, but it get error.

    Attribute validation error for tag CFAJAXIMPORT.

    It does not allow the attribute(s) TAG. The valid attribute(s) are CSSSRC,PARAMS,SCRIPTSRC,TAGS.
    The error occurred in E:\wamp\www\Test\test.cfm: line 1
    1 : <cfajaximport tag="cfform">
    2 : <cfform>
    3 :      <table>

    Inspiring
    May 19, 2011

    Well: what does the error message say is wrong with your code?  And what does it say you need to do to fix it?

    Equally, how do the docs say that tag should be called:

    http://help.adobe.com/en_US/ColdFusion/9.0/CFMLRef/WSc3ff6d0ea77859461172e0811cbec22c24-79fe.html

    --

    Adam