What would be the best way to add a decimal point in front of number, say 20 to
.20?
cfset myNum = 20
cfset newNum = . myNum
cfoutput#newNum#/cfoutput
Is this ok? If I need to do calculations will I have issues with newNum
because it's a string?
Or if you want a 'real' number, if you're more comfortable with that,
then just divide by 100:
cfset myNum = 20
cfset newNum = myNum / 100
cfoutput#newNum#/cfoutput
thanks for clearing that up guys!!
~|
Want to reach the
I want to loop form fields without using collection=#form# or list because I
want to specify which fields to loop over and not the complete form.
This is the syntax:
cfoutput
cfloop from=1 to=7 index=i
cfset F_Name#i# =#Form.L_Name[i]#
#F_Name[i]#
Yes! That did the trick.
Thank you!
Try this:
cfoutput
cfloop from=1 to=7 index=i
cfset variables[F_Name#i#] = Form[L_Name i]
#variables[F_Name#i#]# br /
/cfloop
/cfoutput
I think that's what you're looking for. I used variables
I'm leaning towards storing temp data in the client scope. Thanks guys for your
valuable input and insight.
~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
Working on shopping cart app and stuck between storing shipping info in a db
shipTable or in client scope. I'm hesitant to store shipping info into the db
because some users might not complete the transaction and take up rows in the
db. On the other hand if I store shipping info in the client
When creating session structures is it still necessary to cflock in cf8? I
think i read somewhere that it was no longer needed but I was probably
dreaming.
~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic
Does a plugin exist for Find/Replace that is as good as the one for
Dreamweaver? I like the option of searching the entire site or folder.
~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Can anyone recommend some titles on Flex 2 with focus on CF and AS3. Looked at
a couple of titles but Amazon doesn't seem to offer look inside for those
titles. Hate to purchase something with a brief overview of CF integration.
Looking for options for either a method or service to deliver electric goods
once the payment was confirmed by a payment gateway. Any advice would greatly
be appreciated.
Thanks in advance.
~|
Download the latest ColdFusion
I use cartweaver for products but does anyone know of a similar product for
services and invoicing. For example a service company that wants to give it's
customer an area for them to look over their invoice and payment history. Hate
to build this from scratch.
I'm experiencing problems receiving email from the list. I was getting them
fine for while and all of the sudden it just stop. I entered another another
email address and made it the primary but no success.
Is anyone else experiencing this problem? Who can help at HOF?
Looking for navigation menu that doesn't resemble a folder list style. I like
AminTree (http://dhtmlkitchen.com/)but its a little expensive. Anyone have an
alternative?
~|
Introducing the Fusion Authority Quarterly Update. 80
Why is Adobe's (labs) site so slow to load; is it the leased T1 at work or the
cable modem at home? Is it me or do other people experience the same?
If so, shouldn't a company with such technology deliver a site that's more
responsive?
I just upgraded to a new Intel Mac from a Powerbook and installed the new
version of CF. The earlier Mac was running CF fine as a standalone server.
To get to point I can't run this new version and I've read about some of the
modification I have to do because of jvm 1.5.
Has anyone had any
Does anyone know where I can get an example of using cflogin and cflogout with
Application.cfc.
I'm currently using Application.cfm and have notice that the when using
cflogout the session still remains and althought the user is logged out you can
still access the secure pages with the back
I want to use a textarea form feild to insert multiple values. f.e. I've seen
it used to insert muliple email addresses seperated by a carriage return.
~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:237785
I can't seem to get the src attribute of the img / node. I get the
following error: Element XMLCHILDREN.XMLATTRIBUTES is undefined in
CNTHISALBUM.
35 :CFSET ImgScr = xnThisAlbum.XmlChildren.XmlAttributes[src]
1. gallery
2. album id=Landscape path=gallery/landscape/
3. img
That did it!
34. !--- HERE IS WHER I LOSE IT! NEED HELP WITH THE CORRECT SYNTAX
---
35.CFSET ImgScr = cnThisAlbum.XmlChildren.XmlAttributes[src]
Which child do you want? XmlChildren is the array of all the children
img nodes.
You would need something like:
AJAX techniques to be relatively easy to use
(via CFAJAX), providing a user interface with which the user is
familiar (html).
My Fusion Authority article on CF and AJAX may also assist:
http://www.fusionauthority.
com/Techniques/4593-Using-AJAX-with-ColdFusion-Part-I
On 3/28/06, j s
I'm currently a CrystalTech customer. For $27/month I get 1GB of disk space
and 100GB of bandwidth to name a few. The only thing thats missing is access
to a folder above my webroot so I can store docs outside of my site for
security. This way I can retrieve them with cfcontent and keep the
I don't know a lick of Java and have played with Flash Remoting and AS 2. I
can see the future in either Ajax of Flex. I'm sorta leaning towards Ajax
cause from my understanding its cheaper, now, and I think it can be deployed on
any hosting services.
Also correct me if I'm wrong but Flex
I think its a question of money. PHP is free, and most hosting services offer
it.
thanks eric - this helps.
while i now clearly see the CF light...there's gotta be a darkside lurking
somewhere. yeah? maybe just a little bitty one?
scenario: i'm a designer trying to steer our team in a good
After installing cf_flexconnect_b1_0123_en.exe (coldfusion connector for flex).
I can nolonger access the admin page from dreamweaver or directly from a web
browser.
http://localhost:8500/cfide/administrator/datasources/index.cfm. The file is
located in the wwwroot/cfide directory
I have
It didn't work with 1.4 so I installed 1.5. I will downgrade and reinstall cf7
later.
+
On 3/16/06, j s [EMAIL PROTECTED] wrote:
snip
A couple of things
1) Certain key features of ColdFusion MX 7 won't work with the 1.5
JVM. In particular, the Axis engine for webservices doesn't work
I just uninstalled 1.5. Do I need to download 1.4.2 for firefox? I can't find
the download and tried to verify under ff with no luck. Does verify under IE.
On 3/16/06, j s [EMAIL PROTECTED] wrote:
It didn't work with 1.4 so I installed 1.5. I will downgrade and
reinstall cf7 later
This maybe OT but I was wounder if its possible to group recordset for Flash
remoting the way cf does with cfquery group.
cfquery name=myQuery group=mainGroup
h1#mainGroup.Title#/h1
cfoutput
#subGroup.subTitle#
/cfoutput
/cfoutput
This works great with checkboxes but I can't get it to work with radio buttons
and checkboxes.
This is the way I usually handle this kind of task. Look ma, no evaluate().
FORM
form
input type=checkbox name=cb_1...
input type=checkbox name=cb_2...
input type=checkbox name=cb_77...
input
Is it possible to get the RecordCount of cf query group?
cfoutput query=getReord group=Name
#Name#, #RecordCount#
cfoutput
#SubName#, #RecordCount#
/cfoutput
/cfoutput
what is returned it the total RecordCount of the query and not the count of
SubNames in each group.
Total RecordCount: 4
I'm trying to figure out a way to pass form fields to a page which will then
rename the fields.
The reason is the fields are produced dynamically and not all the fields will
be passed since
they will be checkboxes. When I perform my db insert I do loop which needs to
have the fields
in order.
I'm having trouble passing LAST_INSERT_ID() from one function to another. I'm
new to CFC and not sure how this is done or if I have layout the cfc correctly
with THIS.
cfcomponent
cfset THIS.contactID =
cfset THIS.firstName =
cfset THIS.lastName =
cffunction name=addContact
I was able to figure out how to do the multi insert. Here are the steps I took.
To make sure the form values where passed I setup an actionpage.cfm instead of
going directly to a cfc. On the top of the page I added cfdump var=#form#
label=Form variables /.
Once I knew extactly what
of options, and then looping to that number, instead of hard-coding
it. But, you get the idea.
On 2/6/06, j s [EMAIL PROTECTED] wrote:
Ian mentioned array notation, can anybody explain how to do this or a link
on an example
Aaron,
Can you post how you where able to do the inserts? My situation is a little
tricky.
My insert consist adding the form values to two tables. The values productID
and qty are added using using a function addProduct. The options are added
using a second function called addOption. I must
Ian mentioned array notation, can anybody explain how to do this or a link on
an example?
I have no idea what you are really trying to do. It sounds very
convoluted.
But hopefully the answer to your question is the array notation for
form data. It usually is for these kinds of serially
/cfloop
George
On 2/3/06, j s [EMAIL PROTECTED] wrote:
~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:231363
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com
It is for a form which will display a product. That product has options you
can add to. Like Coffee, you can have the option of whole milk/skim/cream,
sugar/equal/brown, caffine/decafe and so on.
I want to pass these options along with the productID and qty.
The possible values that are
Is there a way I can narrow down a hackers ability to
post a form to one of my action templates.
Http-referrer is not reliable, I know.
JS
__
Do You Yahoo!?
Great stuff seeking new owners in Yahoo! Auctions!
Dave-
I suppose you'd tell me to take your class if I ask
you what you propose to do to slim the chances of this
happening.
JS
Dave said-
Unfortunately, this doesn't prevent anyone from
intentionally posting data
from wherever they want. It's trivial to build an HTTP
POST request and
specify
McAffee, as I'm sure others, delivers an executable
that you can use to scan files on upload. You would
use cfexecute then pass any args. McAffee's utility
comes with a test virus you can use.
JS
~~
Get the mailserver that powers this list at
I've been tasked to modify a security layer for an
existing catalog application. Right now it has
security algorithms that are unwieldy and are proving
difficult to scale. I need to redesign the security
layer so that it is almost a pluggable object. Let me
describe the application. It is a
Hello,
We have been using a scheduled task to run a template
that contains a cfhttp post for some time now without
incident - that is, until we upgraded our dev server
to 5.0. At first, I thought it might have something to
do with how the code on the page being called is
handling the cfhttpparam
42 matches
Mail list logo