Re: Help: Can arrays be used like queries

2000-04-04 Thread Emily B. Kim

>   You can also use queries as arrays.  For example, if I have a query called
> "Articles" with a column named "TITLE", and I want the 5th
> row, I can use Articles.Title[5].

just a fyi, although you can use array syntax to reference queries,
remember that queries are NOT arrays so you can't use the array
functions on them.

> I rarely see a need for arrays with CF, though other programmers seem to use
> them for everything.  I don't quite understand that.  I've seen a lot of
> programming, even custom tags, that translate native CF data elements into
> arrays, when it is easier to use the native data element.

arrays are very useful for passing information without having to write
to the DB. think of use of an array of structures for a shopping cart.
-emily
--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.



Re: Help: Can arrays be used like queries

2000-04-04 Thread Emily B. Kim

> I always end up using lists rather than arrays, though a list can be thought
> of as a 1-dimensional array.  So I would use a list of structures rather
> than an array of structures.  I find Lists easier to create and maintain
> than arrays.

how do you work with a list of structures when you have multiple
structures for each element like so:

array elements for the shopping cart with nested structures:

[1] product 1 - product_price=$10
product_name="Some Name"
Prodcut_ID=4
[2] product 2 - product_price=$15
product_name="Second Name"
Prodcut_ID=10
[3] product 3 - product_price=$20
product_name="Third Name"
Prodcut_ID=14

i'd be interested in seeing your code for something like this using
lists. how are you processing it? -emily
--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.



Re: Passing Structures

2000-04-04 Thread Emily B. Kim

WDDX makes it very easy to pass complex data types using form or URL
variables. would putting them into session variables help too? that's
easily doable as well. what do you need to do? -emily

Kimberly Mayhall wrote:
> 
> What is the preferred method for passing structures from one page to
> another?  Do you use WDDX or is there some other way to do this?
>
--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.



RE: Help: Can arrays be used like queries

2000-04-04 Thread Emily B. Kim

>  Hopefully not any different than the way you would do it in an array.  In
>your example below, I would have a structure for Product 1, a structure for
>Product 2, and so on.  I would also have an ItemInYourBag structure, with
>the key being the product ID and the value being the quantity.  If the
>product had more attributes, such as color or size, they would just be more
>members of the ItemInYourBag structure.
>
>The only list I would maintain would be the list of items in your bag, which
>is the same as the StructKeyList(ItemInYourBag).
>
>I don't think this helped explain why I prefer lists rather than arrays, as
>my solution would be structures of structures.

yeah, i think that you can't do something that complex with just lists. you
would have to work with arrays and/or structures. the only "problem" i can
see with the structure of structures you have above has to do with what
would you be using as your key for the outer structure? you would have to
dynamically generate it, which seems like it would be more effort than just
using the index that is inherent in an array. -emily
--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.



Re: The Len() function...Splitting Hairs?

2000-04-05 Thread Emily B. Kim

> CF is beyond loosely typed. It's basically typeless.

actually, CF types the variables when the variables are being used.
allaire terms this "lazy evaluation". for example. if you ever try using
a string in a mathematical equation you will get an error message. when
you create a variable, cf doesn't really assign a type to it, but when
it evaulates the variables it checks the type. -emily
--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.



Re: Captupturing Form Elements

2000-04-06 Thread Emily B. Kim

if you're using 4.5, form variables are automatically in a structure
(named FORM) that always exists - it's just empty if there is no form
submission. what i would suggest is on your action page, just do a
StructKeyList(FORM) which will give you a list of all the keys (the
formfield names). from that you will be able to get the form values.
this is the same idea as brian set out below, but it works with a
structure instead of a list which i would think would work more quickly.
-emily

Brian Peddle wrote:
> 
> You can loop over all the fieldnames submitted:
> 
> 
> 
> Put whatever processing on the fieldnames you need here
> 
> 
> -- Original Message --
> From: "Lee Moore" <[EMAIL PROTECTED]>
> Reply-To: [EMAIL PROTECTED]
> Date: Thu, 6 Apr 2000 09:36:42 -0400
> 
> >Hello all.
> I have a work page that may recieve form submission from several different
> pages. These pages may have different numbers of form elements and the forms
> elements have different names. Is there some generic code that I can right
> that will take any form submissions and pass them on to the page it is
> forwarding too, regardless of names. This is something I could do with ASP
> by iterating through the forms numerically without specifying names, but I
> dont know how to do that in CF.
> 
> TIA
> 
> Lee
> 
> --
> Archives: http://www.eGroups.com/list/cf-talk
> To Unsubscribe visit 
>http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
>message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
> 
> --
> Archives: http://www.eGroups.com/list/cf-talk
> To Unsubscribe visit 
>http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
>message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.



RE: Help: Can arrays be used like queries

2000-04-08 Thread Emily B. Kim

>Chris Evans wrote:
>1) I don't use just lists.  I just tend to use lists rather than arrays.  I
>love using structures :).
>3) I'm getting to run some speed tests to prove Nick's comment about speed
>increases of arrays over lists.  That is a good reason to use arrays over
>lists.

sorry for the belated response...but i wasn't arguing with you chris! :)
just wanted to see some code. always interested in learning new ways to do
things. if you come up with some benchmark numbers, could you share,
please? thanks! -emily
--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.



Re: DISPLAY QUESTION

2000-04-10 Thread Emily B. Kim

try Left(yourvarcharfield,6) -emily

At 02:56 PM 4/10/2000 PDT, you wrote:
>HI,
>
>I have a varchar field size 255 in sql. I want to display only the first 6 
>words in this field. How do I go about doing that?
>
>Thanks
>
>Sal
>__
>Get Your Private, Free Email at http://www.hotmail.com
>
>---
---
>Archives: http://www.eGroups.com/list/cf-talk
>To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
>
>
--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.



Re: DISPLAY QUESTION

2000-04-10 Thread Emily B. Kim

oops...i mis-read...i though you wanted the first 6 chars. sorry. you'll
have to probably parse a little morelet me try it and i'll e-mail right
back. sorry for the extra posts, everyone. -emily

At 02:56 PM 4/10/2000 PDT, you wrote:
>HI,
>
>I have a varchar field size 255 in sql. I want to display only the first 6 
>words in this field. How do I go about doing that?
>
>Thanks
>
>Sal
>__
>Get Your Private, Free Email at http://www.hotmail.com
>
>---
---
>Archives: http://www.eGroups.com/list/cf-talk
>To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
>
>
--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.



Re: DISPLAY QUESTION

2000-04-10 Thread Emily B. Kim

ok, this is my quick hack to your problem. i already know that there is a
problem with it...if the word in the 6th position also occurs in an earlier
position, then your results are based on that one instead of the right one.
i don't have time right now to fix this, but felt compelled to give you
SOMETHING since i gave you the wrong info earlier when i read your e-mail
too quickly. i'm not great at parsing, so i'm sure someone else can give
you a better workaround. if they don't, i'll fix this later tonight when i
have more time. -emily

**




len of var: #varlen#





position after 6th word (using a space as the delimeter): #Var6WordsPosition#






the six words: "#var6words#"


***

oops...i mis-read...i though you wanted the first 6 chars. sorry. you'll
have to probably parse a little morelet me try it and i'll e-mail right
back. sorry for the extra posts, everyone. -emily

At 02:56 PM 4/10/2000 PDT, you wrote:
>HI,
>
>I have a varchar field size 255 in sql. I want to display only the first 6 
>words in this field. How do I go about doing that?
>
>Thanks
>
>Sal
>__
>Get Your Private, Free Email at http://www.hotmail.com
>
>---
---
>Archives: http://www.eGroups.com/list/cf-talk
>To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
>
>
--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.



Re: DISPLAY QUESTION

2000-04-10 Thread Emily B. Kim

ahh...i couldn't help myself. had to find a fix so i did the following. i
"hard-coded" the 7th word by replacing it with * - that assumes that
you won't have five *'s in a row in any of your strings - and then i
located those stars to get the position to start removing from.

anyway...hope this helps. if anyone knows of a cleaner way to do this, i'd
love to see it. like i said, i'm not much of a parser. now i really gotta
go! :) -emily ps...the code is really only 4 lines long but i did a lot of
cfoutputs so you could see the variables being created at each step.

**





len of var: #varlen#






replace with stars (using a space as the word delimeter): #ReplaceWithStars#






position after 6th word: #Var6WordsPosition#






the six words: "#var6words#"




At 04:43 PM 4/10/2000 -0600, you wrote:
>ok, this is my quick hack to your problem. i already know that there is a
>problem with it...if the word in the 6th position also occurs in an earlier
>position, then your results are based on that one instead of the right one.
>i don't have time right now to fix this, but felt compelled to give you
>SOMETHING since i gave you the wrong info earlier when i read your e-mail
>too quickly. i'm not great at parsing, so i'm sure someone else can give
>you a better workaround. if they don't, i'll fix this later tonight when i
>have more time. -emily

--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.



RE: DISPLAY QUESTION

2000-04-10 Thread Emily B. Kim

>
>
>
>   
>
>#newWords#

hey sean...that's a nice way of handling it! my mind is so linear sometimes
that i tend to not think about looping unless it's obvious like when i'm
working with arrays and structures.

since i'm always looking at optimizing code, i started to play around with
both methods to get those 6 words. i found that it doesn't matter how long
your text is, if you only want the first 6 words, then both methods work
equally fast. (i went to cnn.com and filched a long article) but if you're
looking for more than 6 words, the overhead for the looping becomes quickly
apparent. for instance, at 200 words, the looping took 200 ms while the
other way took 70ms. 

however, the looping seems to be more accurate. when i specify 400, for
instance, the looping returns 399 words while the other way returns just
370. i'm not sure why that is (btw, i just took the resultant output and
did a word count on them in word) but you should  be aware of it.

...just thought it was interesting -emily
--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.



Re: Session Variables

2000-04-10 Thread Emily B. Kim

session variables are tied to a specific application but you could put the
info into a wddx packet and then have the other app grab it using cfhttp.
-emily

At 12:02 AM 4/11/2000 -0500, you wrote:
>
>Is there a way to pass a session variable from one domain name to another
>when on the same physical server?  I have a session variable that is made
>via the QueryNew function and need to use the info contained in that
>variable on a processing page that my user gets to via a form.  The
>processing page however is on a different domain name.  Currently the best
>solution I can come up with would be to insert the information into the db
>and then pull/view it from my processing page.
>
>Please cc me on any replies.
>
>---
---
>Archives: http://www.eGroups.com/list/cf-talk
>To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
>
>
--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.



Re: HTML Form Submit button troubles

2000-04-11 Thread Emily B. Kim

>I'm new to ColdFusion and although I'm finding it generally easy going I'm
>having some troubles using CFINSERT to populate an Access database table.
>The trouble is that ColdFusion seems to be interpreting my Submit button as
>another form field in which it should be entering a value in the database
>table. Since I don't have a column in my database called 'SubmitForm' I'm
>getting the following error:

that's one of the limitations of using CFINSERT...all the fields in the
form will be used in the insert statement. however, you could use the
CFINSERT field's FORMFIELD attribute to explicitly name each field you want
to insert.

the general recommendation, however, is to use a CFQUERY tag with a SQL
insert statement rather than using CFINSERT because the former is much much
more flexible and is quicker.


INSERT INTO TableName (field1, field2, field3)
VALUES (#FORM.field1#, #Form.Field2#, #Form.Field3#)


just remember that string fields must have single quotes around them in the
values. -emily

--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.



Re: Caching with CFHTTP?

2000-04-12 Thread Emily B. Kim

you might want to try to do the call to CFHTTP but have a CFCACHE tag at
the top of the page. CFCACHE will cache the the resultant html page that is
produced (makes a tmp file). you can just call that cached page over and
over again...you can then run a scheduler to flush the page when you want
the results to be refreshed. just be careful that you don't end up with an
error message on that page because it will cache the error message. -emily

At 05:03 PM 4/12/2000 -0400, you wrote:
>On our Intranet site I'm grabbing headlines and writing them to a database
>on a scheduled basis so that users can pull them from the db rather than
>having to go out and fetch them every time they login. Not exactly "caching"
>in the sense that you are asking about but it accomplishes the same goal
>plus makes them searchable for however long I let the old headlines sit in
>the DB.
>
>Let me know if you'd like the code I use for it.
>
>Ken
>
>> Ok - I'm outta my realm here, but I need to make it my realm.  I have a
>news feed from Moreover that uses JavaScript to incorporate
>> it into my page.  This works, but is an extremely slow process.  (I know
>it's the same for iSyndicate too - I use them other
>> places).  Is there anyway to grab this info, say hourly, and cache it for
>my use???  Anybody trying anything like this???
>>
>> Dave

--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.



moreover syndicated content

2000-04-12 Thread Emily B. Kim

i've seen a number of references to the syndicated content on moreover.com
so i thought i'd throw this out. hussain chinoy of granularity created a
custom tag called cf_moreover that will grab news feeds from moreover. you
can find it here:

http://www.thirdtier.com/moreover/

-emily
--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.



Re: Express

2000-04-12 Thread Emily B. Kim

>I looked at the allaire pages, that is what provoked my comment, I still am
>confused about the "major" stuff that it is missing. Guess I will just
>install it at home and play.

ben forta and sue hove are coming out with a CFExpress book real soon. it
is actually very well written with a lot of great examples and is a cf
tutorial but they also have info on what is available and what is not
available in cfexpress. -emily
--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.



RE: Fusebox or not Fusebox that is the question...

2000-04-13 Thread Emily B. Kim

>I appreciate all of your comments.  I do not use Fusebox, but I use a
>different framework that my team and I have developed.  I appreciate the
>need for a framework, but I don't understand one thing that I always hear
>about Fusebox.  Could you or anyone else tell me why putting things in
>different files makes it easier to debug?  When people say this do they
>mean, those little errors, like a misspelling, or do they mean larger more
>difficult to find errors?  Anyway I look forward to hearing how many people
>in this group also use Fusebox.

when you're working in a team environment, isolating pages makes them
easier to debug and also easier to reuse. for instance, we were working on
an app and people were doing different parts of the app. the client made a
change to the db and threw off one part of the appa part i didn't work
on. but i was able to fix it in 5 minutes 'cause i knew what the fuseaction
was and that it was a query error so i just opened the query associated
with that fuseaction, and BINGO! it was fixed. i didn't even have to look
at the rest of the code for that piece of the app.

also, if you have a query that can be re-used - for instance to populate a
table in one page and then a select drop down box in another page - it is
easier to just write it once. you could even make it more flexible by
adding options for conditional processing. -emily



--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.



Re: Query Caching

2000-04-13 Thread Emily B. Kim

>Is it possible to cache a query only for a particular user for only the
>length of his or her session?
>I have a query that generates a roles & privileges packet that applies only
>to the current session and user. When the session expires so does the cached
>query.
>What the memory load differences vs. storing a session variable with a WDDX
>packet in it?

you would have to write the query to an array and then store it in a
session variable. but you could also write the query results to a wddx
packet and write that to a session variable. i don't know that there would
be more overhead one way or another...? -emily
--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.



RE: Fusebox or not Fusebox that is the question...

2000-04-13 Thread Emily B. Kim

At 11:20 AM 4/13/2000 -0400, you wrote:
>Can't all of that be done by establishing standards for a project or all
>projects.  Why does it have to be Fusebox?  I have been looking at Fusebox
>and I guess that I am a bit confused as to what it is and why I should use
>it over some other set of standards?

it doesn't have to be fusebox. fusebox is just a methodology/standard of
coding that many developers have decided to follow. you don't have to use
fusebox - if you have your own standards, you could use them. -emily
--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.



Re: Query Caching

2000-04-13 Thread Emily B. Kim

>One problem I worry about with this:  Session variables are frequently 
>stored in the Registry on NT machines, yes?  So if you had a very large 
>query, or quite a few users, you are potentially packing a lot of info into 
>the registry.  Perhaps unwise.

actually, session variables are stored in the web server's memory. i think
you're thinking about client variables which can be stored in the registry
(but don't have to be - can be stored in cookied or in a db on the
server-side). but yes, large client variables stored in the registry can be
hugely problematic. -emily
--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.



RE: Query Caching

2000-04-14 Thread Emily B. Kim

>It's quite possible to declare a query directly into any of the scope's
>available to your application except Client (unless of course you serialize
>the query w/ wddx.) This is a valid call:
>
>Resulting in Session.myQuery being cached for the duration of the session.

yeah, thanks. i was just being a dork - i had a mental block with that :) i
didn't think of writing the query straight to a session variable. i saw
your other post and tried it yesterday and of course it worked! thanks. -emily
--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.



Re: # Signs From ColorCodes Affecting CFOUTPUTS

2000-04-15 Thread Emily B. Kim

>How do I get CF to ignore the #CC... It causes an error there because it
>thinks that it's a CF variable.

you have to escape the # sign with two # signs - ##CC

>Also one quick question too... How do I get the above code to repeat itself
>until all the entries in the table are outputted?  I know I can use CFLOOP
>but for some reason it repeats ALL entries in the same table row which is
>not what I want...

i'm not sure what you're asking here. because you used the query attribute
with the cfoutput tag, you should have produced one row for each record
returned from your query. what are you actually getting? -emily
--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.



Re: CF Classes in Toronto?

2000-04-18 Thread Emily B. Kim

>I just wish a company would take the chance on me.  I'm so driven and
>passionate about this... wish I would have gotten into web development years
>ago.  I know a little about Cold Fusion and SQL based on two projects I've
>been working on.. but want to have a lot of in depth knowledge.  I haven't
>as of yet learned anything with regards to cookies, and the different types
>of variables such as client, application etc... but I want to learn.  I'm in
>the Toronto area and if anyone knows of some classes... please let me
>know... Thanks!

you can find out more about allaire classes at:

http://www.allaire.com/developer/training.cfm

and then find out when the classes are in toronto at:

http://www.allaire.com/partners/training/index.cfm

classes are taught by the Toronto Technology Group - they're allaire
training partners and teach the certified allaire classes. 

good luck! -emily
--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.



Re: CF Classes

2000-04-18 Thread Emily B. Kim

>Would you recommend a relative newbie like myself take the advanced one?  I
>have been doing queries, inserts, updates etc... the basic stuff for over 2
>weeks now on these 2 projects... What do you suggest?  Where I really lack
>is knowledge in variables such as client variables, session variables,
>cookies, application.cfm's etc. etc... Forta's book seems to cover these
>items in a measly 5 pages :)

i teach the advanced class for allaire and, as an instructor, i would
suggest that you learn about session variables, cookies, and the
application framework before taking the course. the advanced class assumes
knowledge equivalent to the fast track to coldfusion class - which covers
those topics. i also recommend that students have a working knowledge of cf
for at least 3-6 months before attending the class. a lot of people assume
that ftcf is step one in the process of learning cf (which it is) but the
advanced class is NOT step 2. the advanced class helps you improve your
coding and teaches you more advanced topics that will allow you to create
more complex apps - that really implies that you should ideally already
feel very comfortable with cf. 

i have people attend the class who don't have the equivalent knowledge of
ftcf and they can GET THROUGH the class, but i don't think they get nearly
as much out of it as people who meet the prerequisites simply because they
are spending most of their time filling in the gaps. 

(also, the ftcf class doesn't just cover cf, it also covers studio in a lot
of detail so you will also get more familiar with the development
environment which also will help your coding.)

hth!! -emily
--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.



Re: CF Classes

2000-04-18 Thread Emily B. Kim

oh, one more thing...in the ftcf course you build an application from the
ground up, so you get a good sense of how to build an entire application -
adding in a simple security level as well. but in the acfd, most of the
applications are already built and you just add the higher functionality to
it (and a lot of the application uses session/application variables). so,
i've found that people with less experience with cf tend to get confused in
this class because it's harder for them to figure out what the application
is doing since they didn't build the whole thing themselves. ok, enough ;)
-emily

At 11:42 PM 4/18/2000 -0600, you wrote:
>>Would you recommend a relative newbie like myself take the advanced one?  I
>>have been doing queries, inserts, updates etc... the basic stuff for over 2
>>weeks now on these 2 projects... What do you suggest?  Where I really lack
>>is knowledge in variables such as client variables, session variables,
>>cookies, application.cfm's etc. etc... Forta's book seems to cover these
>>items in a measly 5 pages :)
>
>i teach the advanced class for allaire and, as an instructor, i would
>suggest that you learn about session variables, cookies, and the
>application framework before taking the course. the advanced class assumes
>knowledge equivalent to the fast track to coldfusion class - which covers
>those topics. i also recommend that students have a working knowledge of cf
>for at least 3-6 months before attending the class. a lot of people assume
>that ftcf is step one in the process of learning cf (which it is) but the
>advanced class is NOT step 2. the advanced class helps you improve your
>coding and teaches you more advanced topics that will allow you to create
>more complex apps - that really implies that you should ideally already
>feel very comfortable with cf. 
>
>i have people attend the class who don't have the equivalent knowledge of
>ftcf and they can GET THROUGH the class, but i don't think they get nearly
>as much out of it as people who meet the prerequisites simply because they
>are spending most of their time filling in the gaps. 
>
>(also, the ftcf class doesn't just cover cf, it also covers studio in a lot
>of detail so you will also get more familiar with the development
>environment which also will help your coding.)
>
>hth!! -emily
>---
---
>Archives: http://www.eGroups.com/list/cf-talk
>To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
>
>
--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.



Re: CF Classes

2000-04-18 Thread Emily B. Kim

At 12:42 AM 4/19/2000 -, you wrote:
>Marco,
>Forta's the known Guru of ColdFusion. But, there is another book called
>Mastering ColdFusion 4 by Arman Danesh & Kristin Motlagh. Where the chapters
>on Implementing ColdFusion Web Application Framework.

also, although you won't believe it, the help files in studio itself are
great! just search on any of those topics and you will find a lot of info.
it's a little more scattered than a book, but if you're dedicated you can
get all the info you need out of them. -emily
--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.



memory variables & cflock

2000-04-18 Thread Emily B. Kim

btw, for those of you who will/are using server, application, or session
variables, you should also be locking those variables using CFLOCK. more
information on that can be found in this knowledge base artlcle:

http://www.allaire.com/Handlers/index.cfm?ID=14165&Method=Full

this article also has a link to a migration tool that will upgrade your
code from 4.01 to 4.5 (locking is implemented differently in 4.5). -emily
--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.



Re: memory variables & cflock

2000-04-19 Thread Emily B. Kim

>This has been covered, very extensively in some cases,  in a number of
>threads both on this list and on the Fusebox mailing list.  If anyone is
>interested in more information check the archives.
>Since this fact is so often overlooked by those new to CF I personally feel
>like Emily's message (or something similar ) should be reposted to the
>list every month or so.  Just my humble opinion.

thanks ;) i've seen all the cflock stuff lately, but we're being asked to
"get the word out" and that article is EXCELLENT! -emily
--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.



Re: What's the difference?

2000-04-19 Thread Emily B. Kim

At 06:07 PM 4/19/2000 GMT, you wrote:
>One is good coding style and the other is not

>>What's the difference between saying
>>attributes.fuseaction 
>>or just saying fuseaction?

actually, in terms of fusebox, it means a little more. url and form
variables get changed to "attributes"-scoped variables to simulate the idea
of custom tags from within a fusebox app. the idea is that this way, the
application is consider a separate module.

it's used in conjunction with the custom tag formurl2attributes or
something like that. -emily
--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.



RE: What's the difference?

2000-04-19 Thread Emily B. Kim

jennifer - if you don't scope attribute variables, they won't be found at
all. you must scope those variables. hth! -emily

At 03:13 PM 4/19/2000 -0500, you wrote:
>I don't understand if you are saying that I'm wrong or if you are saying 
>that it won't find the variable if you don't put the attribute scope. 
>Either is totally possible, so please let me know, just for the record.
>
>At 01:29 PM 4/19/00 -0500, you wrote:
>>The server does not implicitly look in the attribute scope.  The scope
>>search order is :
>>
>>1) local
>>2) CGI
>>3) File
>>4) URL
>>5) Form
>>6) Cookie
>>7) Client

--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.



RE: What's the difference?

2000-04-19 Thread Emily B. Kim

bob - you're absolutely right for the variables listed below, but the
attributes scope actually must be declaredsame with session,
application, and server vars. -emily

At 04:21 PM 4/19/2000 -0400, you wrote:
>It is not 'wrong' to not provide the attribute scope, but if you don't,
>you're leaving it up to CF to figure it out.  By providing it yourself, you
>take away any doubt as to whether you're referring to URL.variablename or
>Form.variablename, for example.

>>1) local
>>2) CGI
>>3) File
>>4) URL
>>5) Form
>>6) Cookie
>>7) Client

--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.



Re: simple createODBCdate question

2000-04-19 Thread Emily B. Kim

in this case, the pound signs really aren't even necessary because you're
already in a cfset statement. i think the recommendation is to not use them
inside of cf tags because you're "over-coding". try:

-emily



>>

>Should be 

>Pound signs always go on the outside, any text not escaped (inside single 
>or double quotes) insides the pound signs are interpreted as 
>variables.  And creating a date will automatically format the date 
>correctly, so no need for the dateformat command.  And the date format for 
>ODBC dates aren't mm/dd/yy anyway, they are {d '-mm-dd'}   Hope this
helps.


--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.



Re: Query Cache Question

2000-04-20 Thread Emily B. Kim

>Is the cached query limit on a per server basis or per application basis?
 
i believe it is 100 queries per server. -emily

--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.



Re: the definitive summary to variable scopes - correct?

2000-04-20 Thread Emily B. Kim

i believe that Request variables also belong in that upper list. in answer
to your question about a difference in scoping vs. not scoping in the lower
list, you can choose to use the prefixes or not. some people purposely do
not scope their variables to make their templates more flexible (allows them
to use the same template to either accept info from, let's say, both url and
form variables). but the recommendation from allaire is to scope the
variable because:
1. it avoid confusion for the developer (sometimes you may have variables of
the same name from different scopes on the same page)
2. if avoids confusion for the cf app server, too (if you have to variables
of the same name but different scopes on the same page and you don't scope
the variables, then it process the variables in the "scanned order" you have
listed below - whichever one it hits first is the one that is used)
3. supposedly, there is a performance gain if you scope the variables 'cause
cf doesn't then have to scan for you.
-emily

>variable scope required:
>  1) Server
>  2) Application
>  3) Session
>  4) Attributes

>  5) Caller

>variable scope not required, scanned in the following order:
>  1) local (i.e. Variables)
>  2) CGI
>  3) File (???)
>  4) URL
>  5) Form
>  6) Cookie
>  7) Client
>- is there any difference in using Variables.x and not using it?
>- what are File variables?
>---
---
>Archives: http://www.eGroups.com/list/cf-talk
>To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
>

--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.



Re: quotation marks -- definitive answer?

2000-04-20 Thread Emily B. Kim

>a) 
>b)  #---# not required

>other than I dont believe there are any differences.

actually, if you're assigning a variable to an attribute in a custom tag
(even with cfmodule), you will need the pound signs because the custom tag,
unlike the other cf tags, don't assume that something is a variable. for
instance in your example "b" above, if you don't have the # signs, the
custom tag will be passed an attribute called myattribute with a value of
"foobar" - but if you put the pound signs in, then the attribute will
actually get the evaluated value for the variable foobar because then it
knows its a variable.

but, of the other cf tags, the # signs are not required.

>a) 
>b) 

>a) 
>b) 

for just straight values to an attribute, the double quotes are only really
required if the value has a space in it...otherwise, they aren't required.
but i believe that the "best practice" usually is to put double quotes
around your values. -emily

--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.



Re: Application.cfm Question...

2000-04-26 Thread Emily B. Kim

in your subdirectory application.cfm did you name the application again?
? since application variables belong to
specific applications, i think you need to specifically declare that it's
stil part of the same application. -emily

At 03:41 PM 4/25/2000 -0500, you wrote:
>Are application.(variablename) variables truly persistent. I am a bit
>confused here. I know that only one application.cfm file is executed
>automatically at any given time (others would have to be CFINCLUDEd).
--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.