Using session sope in cfthread

2011-10-17 Thread Ria Ragam

Hi All,

I read all different post online about session variables being used in cfthread 
but I am still confused with actually use session variables in cfthread or not. 
Let me explain what I am trying to achieve here.

I have a session with different structure variables. I need to  
 run thread1 and update/insert session.struct1,
run thread2 and update/insert session.struct2,
run thread3 and update/insert session.struct2. Do you think I should used 
cflock to write data to session. If yes does it slows down the process?

Thanks in Advance...
Ria. 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:348199
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Sorting Multidimensional Array that contain dates

2011-10-17 Thread Rick T

Thanks Alan that worked, here is the final code that made it work for my 
situation:


/**
 * Sorts a two dimensional array by the specified column in the second 
dimension.
 * 
 * @return Returns an array. 
 * @author Robert West (robert.w...@digiphilic.com) 
 * @version 1, October 8, 2002 
 */
function ArraySort2D(arrayToSort, sortColumn, type) {
var order = "asc";
var i = 1;
var j = 1;
var thePosition = "";
var theList = "";
var arrayToReturn = ArrayNew(2);
var sortArray = ArrayNew(1);
var counter = 1;
if (ArrayLen(Arguments) GT 3){
order = Arguments[4];
}
for (i=1; i LTE ArrayLen(arrayToSort); i=i+1) {
ArrayAppend(sortArray, arrayToSort[i][sortColumn]);
}
theList = ArrayToList(sortArray);
ArraySort(sortArray, type, order);
for (i=1; i LTE ArrayLen(sortArray); i=i+1) {
thePosition = ListFind(theList, sortArray[i]);
theList = ListDeleteAt(theList, thePosition);
for (j=1; j LTE ArrayLen(arrayToSort[thePosition]); j=j+1) {
arrayToReturn[counter][j] = arrayToSort[thePosition][j];
}
ArrayDeleteAt(arrayToSort, thePosition);
counter = counter + 1;
}
return arrayToReturn;
}














startArray[#i#][#j#] is #startArray[i][j]#








finalArray[#i#][#j#] is #finalArray[i][j]#



 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:348198
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Sorting Multidimensional Array that contain dates

2011-10-17 Thread Alan Rother

http://www.cflib.org/udf/ArraySort2D

=]

On Mon, Oct 17, 2011 at 2:45 PM, Rick T  wrote:

>
> I got this array
>
> 
> 
> 
> 
> 
>
> How do I sort this array so that the John on 3/4/2011 is first in the
> array?
>
> 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:348197
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Sorting Multidimensional Array that contain dates

2011-10-17 Thread Rick T

I got this array







How do I sort this array so that the John on 3/4/2011 is first in the array? 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:348196
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: arraydeleteat display issue

2011-10-17 Thread Tom Connolly

>ArrayDeleteAt returns true\false based on the success of the operation. Both
>your samples create the impression you want to display that value. Try this,
>
>
>
>

That worked, thanks!  I did not want to output the return but couldn't get the 
command to run without the cfoutput.  

-Tom 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:348195
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: How CF works

2011-10-17 Thread Steve 'Cutter' Blades

I could be completely wrong, but I would bet that there's an error in 
parsing the DOM due to malformed HTML. Run your page through a validator.

Steve 'Cutter' Blades
Adobe Community Professional
Adobe Certified Expert
Advanced Macromedia ColdFusion MX 7 Developer

http://cutterscrossing.com


Co-Author "Learning Ext JS 3.2" Packt Publishing 2010
https://www.packtpub.com/learning-ext-js-3-2-for-building-dynamic-desktop-style-user-interfaces/book

"The best way to predict the future is to help create it"


On 10/14/2011 5:09 PM, Stephens, Larry V wrote:
> Thanks. I found the culprit. Odd thing is I've used it on a lot of pages 
> without a problem but this page (and one other) acts up with it.
>
> It's a third party js library I got from Dynamic Drive several years ago - 
> jumptop.js  Allows the user to jump to the top on a long page. The error is 
> "Warning: an unbalanced tree was written using document.write()causing data 
> from the network to be reparsed."
>
> I pinpointed the line but don't see the error. I've just taken the library 
> out.
>
>
>
>
> -Original Message-
> From: Nathan Strutz [mailto:str...@gmail.com]
> Sent: Friday, October 14, 2011 1:24 AM
> To: cf-talk
> Subject: Re: How CF works
>
>
> Larry,
>
> ColdFusion will not return something different to different browsers unless 
> you explicitly tell it to do so. The most likely culprit here is bad HTML, 
> Javascript and CSS. It sounds like an unclosed (or unopened) table tag, a 
> missing quote on an inline style attribute, or something related. Set a 
> doctype (I like) and and run the W3C validator or an html 
> lint, then try jslint and csslint, you will find the problem with one of 
> these, and if not, just rewrite the html, remove your table tags except where 
> they are literally needed, separate your styles and javascript from your 
> html, and just spruce things up. If there's something about the page that IE 
> doesn't like (and it wouldn't be the first time), move elements around and 
> play with the stylesheet until it does.
>
> nathan strutz
> [www.dopefly.com] [hi.im/nathanstrutz] [about.me/nathanstrutz]
>
>
> On Thu, Oct 13, 2011 at 7:57 PM, Stephens, Larry Vwrote:
>
>> I have a page that does a moderately involved query: it returns 16
>> fields with 3 left joins, a simple WHERE and ORDER. (I'd include it
>> here but I'm remoting in and can't copy-and-paste). The database is
>> small - only 40 or so record at this point.
>>
>> I can see it in Mozilla and IE, with XP and Windows 7. I'm on DSL and
>> it pops for me almost immediately.
>>
>> A user, on DSL using IE, complained the page just flashed at her. I
>> finally duplicated the problem by accident: my laptop started updating
>> its virus definitions and then the page started flashing at me. These
>> aren't public pages so I can't give free access.
>>
>> That user switched to Mozilla and her problem went away.
>>
>> Next user, same problem. I'm to the point where all I display is a
>> CFDUMP of the query and one header row of the output. She still can't see it.
>>
>> So, the user loads the page and a query is sent to the CF server. It
>> returns a table with 14 columns, a couple of header rows.
>>
>> So why does it appear to return he menu options and the the beginning
>> of the table, then send the same thing over and over but never filling
>> out the table (with only 12-24 rows)? I believe it's because her
>> machine is too busy to process what the server is sending it but I must be 
>> missing something.
>> Especially since it works in Mozilla but not IE.
>>
>> Thanks.
>>
>>
>
>
> 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:348194
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: cfobject dotnet assembly

2011-10-17 Thread Akos Fortagh

Thanks for your reply, I've managed to get it going finally, the only problem 
now is to work with .net assemblies that are not on the the same server but on 
a remote server so this c:\windows\system32\inetsrv\ is no longer appropriate.
Any suggestion how I could do that?
Thanks again

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:348193
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm