what to use? function does not work

Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.

  1. #1

    Default what to use? function does not work

    I want to modulized part of code which is used in a few pages of our site. I
    was hoping i can use function and put it in application.cfm and call it from
    other pages. But it seems that in function with cfscript tag i can not use
    cfquery tag. I makes it useless, I was hoping to pass ID as parameter,Query the
    table by this ID, make some other calculations and return value from that
    function. Please let me know how else i can do it? another way i know to use
    cfinclude tag. But may be there are other ways ? thank you

    morenews1 Guest

  2. Similar Questions and Discussions

    1. Can't get an onRollOver function to work
      I'm very new to actionscript but I've been trying make a code where I create several instances of a movieClip. I want that for each of these...
    2. mail() function, how to get it work?
      How do I set up the mail() function in php.ini. How do I define the username and password? My smtp service requires me to log on. I'm using...
    3. imagerotate() function doesn't work?
      Hi all, I've been trying to get imagerotate() working with PHP 4.4.3 and the latest version of GDlib. An error message is given saying the...
    4. why doesn't default values for this function work
      Hi, I'm having problem with a function that I'll use to validate user input before passing it to MySQL. For strings, I want to make sure that...
    5. Autoplay function does not work
      At MS. No charge usually. "Morris Reeves" <morrisr1@earthlink.net> wrote in message news:066401c3461d$ec31d2f0$a001280a@phx.gbl...
  3. #2

    Default RE: what to use? function does not work

    What version of Coldfusion are you using?
    Rob Guest

  4. #3

    Default Re: what to use? function does not work


    If you are using an MX version (6 or 7) you can use the CFFUNCTION tag, which can be called just like a cfscript function but can contain CF tags.

    Bryan
    blewis Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139