I just discovered any interesting thing. If debugging won't work with a
page, then adding a dummy cfset at the top of the page and putting a
breakpoint on that line may get it to work.
-----Original Message-----
From: Kola Oyedeji [mailto:[EMAIL PROTECTED]]
Sent: 04 June 2001 14:42
To: CF-Talk
Subject: RE: Use interactive CF debugger!!! : was VeRy tricky evaluate()
After many many attempts i still have not got it working this may be due to
the fact that i'm not sure exactly how it is supposed to work. Do you have
an tips/pointers?
Thanks
Kola
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: 04 June 2001 14:24
To: CF-Talk
Subject: Use interactive CF debugger!!! : was VeRy tricky evaluate()
Seems to me the only way you could find your way out of this one is to use
the cfstudio step through debugging. You may be doing so already but I get
the impression not many cf developers use this, perhaps because it can be
temperamental. But I've found it invaluable now I've got it working. It can
save you mountains of time and brain ache. I'd recommend spending the time
to get it running.
I had it working on a stand-alone but I'd been led to believe it wouldn't
work well on a network, but it does, sometimes it takes a few attempts to
connect.
-----Original Message-----
From: Michael Lugassy [mailto:[EMAIL PROTECTED]]
Sent: 29 May 2001 16:45
To: CF-Talk
Subject: VeRy tricky evaluate()
I'm in a complex situation here which gives NO ERRORS but doesn't seem to
work right.
please help.
My project has several unique sections (where the key=grid)
Every user can upload several images to each group.
everytime he uploads at least 1 file to a new group, I'm assigning him a
session array variable
that is called: "session.my#url.grid#":
<cfif NOT isDefined("session.my#url.grid#")>
<cflock timeout="10" throwontimeout="Yes" type="EXCLUSIVE" scope="SESSION">
<cfset "session.my#url.grid#"=Arraynew(1)>
</cflock>
</cfif>
then I give him the upload form.
after each upload, I'm appending the array with the new file:
<cflock timeout="10" throwontimeout="Yes" type="EXCLUSIVE" scope="SESSION">
<cfset temp=ArrayPrepend(evaluate("session.my#url.grid#"),file.serverfile)>
</cflock>
and now I want to display back the upload form, but with a list of the files
he already uploaded:
first I'm moving the session array into a local variable:
<cfif isDefined("session.my#url.grid#")>
<cflock timeout="10" throwontimeout="Yes" type="READONLY" scope="SESSION">
<cfset a=evaluate("session.my#url.grid#")>
</cflock>
then I'm looping without worrying for locking:
Files that were uploaded to #url.grid#:
<cfloop index="i" from="1" to="#arraylen(a)#">
#a[i]#
</cfloop>
the a array keeps being EMPTY all the time.
I'm checking that with this:
<cfif NOT isDefined("a") or arraylen(a) eq 0>
You haven't uploaded any pictures to #url.grid# yet.
</cfif>
note that I don't want to :
a. query the db everytime to get the list of files that was uploaded.
b. limit the session timout to 1 minute
Thanks,
Michael Lugassy
IT/WEB Specialist
Interactive Music Ltd.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists