Re: cf enterprise quad cpu box

2011-08-15 Thread Daniel Baughman

I'm going to do some more testing and get some data before going too far here.  
I think what I may be seeing is on thread spins out and this only one core 
looks busy.

How can you multiple thread garbage collection?

Sent from my mobile device

On Aug 15, 2011, at 7:31 PM, Carl Meyer ca...@tassweb.com.au wrote:

 
 Perhaps the garbage collector you have chosen to use in your JVM arguments is 
 not a multi-threaded garbage collector ie only working on 1 core.
 
 HTH, Carl.
 I meant to say it DOES seem like one core is commonly over utilized.
 
 
 

~|
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:346781
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CFWDDX Serialization and Deserialization

2010-12-06 Thread Daniel Baughman

If it's valid XHTML with no high ASCII it works.  

Sent from my mobile device

On Dec 6, 2010, at 7:16 PM, Mark Mandel mark.man...@gmail.com wrote:

 
 I'm pretty sure I've stored HTML fragments inside WDDX packets just fine,
 and never had an issue.
 
 Mind you, I haven't use WDDX in probably ~8 years ;o)
 
 Mark
 
 On Tue, Dec 7, 2010 at 12:01 PM, Russ Michaels r...@michaels.me.uk wrote:
 
 
 I haven't used it in that way no, but as JSON is so widely used (JQUERY for
 example) I would imagine it can cope with anything.
 
 Russ
 
 -Original Message-
 From: Dan Baughman [mailto:dan.baugh...@gmail.com]
 Sent: 07 December 2010 00:43
 To: cf-talk
 Subject: Re: CFWDDX Serialization and Deserialization
 
 
 Yea I'm remembering why I chose to use cfwddx when I build this specific
 app, but I'm wishing I had used something else like that.
 
 Have you used that much with international or special character sets,
 writing to database, etc?
 
 Before I change serialization techniques I want to find the right one this
 time.
 
 On Mon, Dec 6, 2010 at 4:43 PM, Russ Michaels r...@michaels.me.uk wrote:
 
 
 Could you use CFJSON instead
 
 http://cfjson.riaforge.org/
 
 Russ
 
 -Original Message-
 From: Dan Baughman [mailto:dan.baugh...@gmail.com]
 Sent: 06 December 2010 21:24
 To: cf-talk
 Subject: CFWDDX Serialization and Deserialization
 
 
 It has recently (and very painfully) come to my attention that cfwddx
 serialize doesn't encapsulate strings in CDATA markers.
 
 This removes your ability to have HTML/XML markup in a string that is
 part
 of a struct you are trying to serialize/deserialize with out paying
 special
 attention to each string at serialization and deserialization time.
 
 Is there something I'm missing?  This would seem to be an incredibly
 useful
 feature that would save tons of work and make the serialization feature
 tons
 more useful.
 
 
 
 
 
 
 
 
 
 
 

~|
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:339875
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CF8 Autosuggest doesn't work

2010-11-19 Thread Daniel Baughman

Use jquery

Sent from my mobile device

On Nov 19, 2010, at 7:46 PM, Richard  Steele r...@photoeye.com wrote:

 
 Hi, Need some help on this one. I couldn't get Ben Forta's autosuggest 
 example to work. I had to make a virtual directory in IIS to the CFIDE folder 
 in order for the button animation to work. But the icon just sits there and 
 rotates. Nothing is suggested. I know that the cfartgallery is returning 
 records. What am I missing? 
 
 input_test.cfm
 
 cfform
 Art:
 cfinput type=text
name=artname
autosuggest=cfc:autosuggest.lookupArt({cfautosuggestvalue})
 /cfform
 
 
 autosuggest.cfc
 
 cfcomponent output=false
 
 cfset THIS.dsn=cfartgallery
 
!--- Lookup used for auto suggest ---
cffunction name=lookupArt access=remote returntype=array
 cfargument name=search type=any required=false default=
 
 !--- Define variables ---
 cfset var data=
 cfset var result=ArrayNew(1)
 
 !--- Do search ---
 cfquery datasource=#THIS.dsn# name=data
 SELECT artname
 FROM art
 WHERE UCase(artname) LIKE Ucase('#ARGUMENTS.search#%')
 ORDER BY artname
 /cfquery
 
 !--- Build result array ---
 cfloop query=data
 cfset ArrayAppend(result, artname)
 /cfloop
 
!--- And return it ---
 cfreturn result
/cffunction
 
 /cfcomponent 
 
 

~|
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:339407
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: DatePart Function Missing

2010-02-01 Thread Daniel Baughman

I think you may be missing some pound symbols as I am not aware that  
MySql has a datepart function.

Cheers,
Dan

On Feb 1, 2010, at 6:44 PM, Chad Veldhouse cveldho...@vaagency.com  
wrote:


 I am working on a simple query using DatePart.
 I am running CF9 on a Mac with MySQL.

 The code looks like this:
 CFQUERY name=GetAgentLeads datasource=#Application.Data#
 SELECT SoldID, LeadID, AgentID, ProfileID, FirstName, LastName,  
 Price, Viewed, SoldDate
 FROM SoldLeads
 Where AgentID = #Session.AgentID# AND DatePart(,SoldDate) 
 ='#SearchYear#'
 /CFQUERY

 The code responds with FUNCTION Data.DatePart does not exist .  
 Very similar code works with CFMX6  Access on a Windows machine.
 I have tried DatePart(,SoldDate)-'#SearchYear#'  atePart 
 ('',SoldDate)-'#SearchYear#'.
 Nothing seems to work.

 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:330322
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Why i fear ColdFusion is on its last legs

2010-01-22 Thread Daniel Baughman

Please move this discussion off list thx

Sent from my mobile device

On Jan 22, 2010, at 8:10 PM, Bryn Parrott  
bryn_parr...@internode.on.net wrote:


  Scott Stewart sstwebwo...@bellsouth.net wrote:

 I have *never* seen an effective deployment of Sharepoint.

 You know, I have heard this many times, but it seems
 implausible. Why would CxOs continue to buy a product that
 takes so much work by so many expensive consultants to get
 it running?

 Because it cements said CxO into a job.
 Its called 'make-work'.
 And they will never be blamed for implementing Microsoft.
 (sung to the tune of you'll never be blamed for buying IBM).



 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:330065
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Mailing Label Solutions

2009-02-23 Thread Daniel Baughman

Anyone came across anything really handy there?

Last time I did that I blundered through just having them print the HTML which 
was a bit inconsistent at times.

This time I'm considering a small 3rd party app or creating a pdf or something.

Any clever suggestions?

Dan 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:319688
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


One more image question..

2008-01-31 Thread Daniel Baughman
I am now trying to over lay a transparent png on to a jpeg someone uploads..
I convert the jpeg to a png by reading and it writing it out, but it seems
there are attributes of the image that coldfusion can't adjust, because
whenever I try to over lay I get this:

Overlay operation requires the two sources to match in number of bands and
data type. null brThe error occurred on line 91.

I'm not sure what bands are, but I'm guessing data type could be color
depth, since they are already png files?  Is it possible for Coldfusion to
convert these files to be similar enough to overlay them?

struct 
colormodel struct 
alpha_channel_support YES  
alpha_premultiplied NO  
bits_component_1 8  
bits_component_2 8  
bits_component_3 8  
bits_component_4 8  
colormodel_type ComponentColorModel  
colorspace Any of the family of RGB color spaces  
num_color_components 3  
num_components 4  
pixel_size 32  
transparency TRANSLUCENT  
 
height 565  
source **
width 800  
struct 
colormodel struct 
alpha_channel_support NO  
alpha_premultiplied NO  
bits_component_1 8  
bits_component_2 8  
bits_component_3 8  
colormodel_type ComponentColorModel  
colorspace Any of the family of RGB color spaces  
num_color_components 3  
num_components 3  
pixel_size 24  
transparency OPAQUE  
 
height 537  
source ***
width 804  


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:297827
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: CFIMAGE- stacking images

2008-01-30 Thread Daniel Baughman
I see, what I was missing was definitely the functions. I am use to
CF_Magicktag. I can't say I expected Ben Forta to respond to my message!
That function works great for the appending, thank you.

- Dan


-Original Message-
From: Ian Skinner [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, January 29, 2008 1:24 PM
To: CF-Talk
Subject: Re: CFIMAGE- stacking images


Ben Forta wrote:
 ImageNew() to create a new blank image. ImageRead() and ImagePaste() to
 paste first image, then another ImageNew() and ImagePaste() setting the x
 and y so that it is where you want it relative to first image. Or just
take
 all of that and make a ImageAppend() function that dos it for you.

 --- Ben
   
An important point to get out of this is that the cfimage... tag is
for basic day-in and day-out image tasks.  If one needs more power the
image functions are where they are at.  They can be combined in many
powerful ways.







~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:297742
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


CFIMAGE- stacking images

2008-01-29 Thread Daniel Baughman
Hello all,

I keep trying to find ways to use CFIMAGE but almost every time am forced to
use another tool...

Is there any way to append images?  IE I have one image, a photo, that I
want to append a polaroid-like bottom to. It seems this is outside the
functionality of the CFIMAGE tag.  Or am I missing something?

- Dan


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:297670
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: java classloader

2007-09-14 Thread Daniel Baughman
Kris, Dan,

Thanks for feedback. I'm understanding that the javaloader.cfc and the
classloader .jar should be in the working directory of the script, right?

I have classloader-20070406174551.jar, JavaLoader.cfc, and
metadata-extractor-2.3.1.jar all in the same directory as the script and I'm
using the following code to use them:

 photoFile = createObject(java,java.io.File).init(photo);
 //set the path
 paths = ArrayNew(1);
 paths[1] = expandPath(metadata-extractor-2.3.1.jar);
 //create the loader
 loader = createObject(component, JavaLoader).init(paths);
 //create the JpegMetadataReader instace 
 JpegMetadataReader =
loader.create(com.drew.imaging.jpeg.JpegMetadataReader);
 //Read jpg file
 JpegMetadata = JpegMetadataReader.readMetadata(photoFile);
 //get directory iterator
 JpegDirectories = jpegMetadata.getDirectoryIterator();
 
Does the classloader jar need to be in the lib/ext dirs or soemthing? I've
tried a few different things on two different servers.

Regards,
 

-Original Message-
From: Mark Mandel [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 13, 2007 4:00 PM
To: CF-Talk
Subject: Re: java classloader


Dan -

You shouldn't move the JavaLoader .jar files around, they should stay in the
way they were originally downloaded in.

Mark

On 9/14/07, Kris Jones [EMAIL PROTECTED] wrote:
 Did the java classpath on the machine change?

  I'm using the javaclass loader to load a meta-data reader for some
jpegs.
  It seems no matter where I put the .jar for the class loader I get 
  the following exception:
 
  message: com.compoundtheory.classloader.NetworkClassLoader
  type: java.lang.ClassNotFoundException
 
  I am trying to do it like this page describes:
  http://www.leavethatthingalone.com/blog/index.cfm/2006/5/16/Using-Co
  ldFusion -to-Read-EXIF-Information-from-JPEGs
 
  the line throwing the exception:
  networkClassLoaderClass =
  getServerURLClassLoader().loadClass(com.compoundtheory.classloader.
  NetworkC
  lassLoader);
 
  I have the classloader-20070406174551.jar in the same directory as 
  the script.  Whats really wierd is this was working and stopped!  
  I'm banging my head against the desk on this one...

 



~|
Get involved in the latest ColdFusion discussions, product
development sharing, and articles on the Adobe Labs wiki.
http://labs/adobe.com/wiki/index.php/ColdFusion_8

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:288480
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: CFQuery wrapper tag to help with poor connections to sql..

2007-09-13 Thread Daniel Baughman
Interesting. I might trying using the timeout before resorting to the nested
try/catches. 




-Original Message-
From: Wil Genovese [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 12, 2007 12:46 PM
To: CF-Talk
Subject: Re: CFQuery wrapper tag to help with poor connections to sql..


Also remember the timeout attribute for cfquery.  It accepts integers as
seconds.

cfquery name=users datasource=#myDSN# timeout=2
SELECT user_id FROM users
/cfquery


--
Wil Genovese

One man with courage makes a majority.
-Andrew Jackson

A fine is a tax for doing wrong. A tax is a fine for doing well. 



Rich wrote:
 I have an app that has to use a connection that sees a few seconds of 
 disconnectivity from its SQL server occasionaly.
 

 Dan,
 You can nest CFTRY's to accomplish this.

 Something like:

 cftry
   
   cfquery name=users datasource=#myDSN#
   SELECT user_id FROM users
   /cfquery

   cfcatch type=database
   !--- 
 This could be our timeout issue, 
 sleep for 2 seconds and try again
   ---
   cfset thisThread = CreateObject(java, java.lang.Thread)
/
   cfset thisThread.sleep(2000) /
   
   cftry
   cfquery name=users datasource=#myDSN#
   SELECT user_id FROM users
   /cfquery
   
   cfcatch type=any
   !--- 
 Rethrow the error as we cannot recover
   ---
   cfrethrow / 
   /cfcatch
   /cftry
   /cfcatch
 /cftry

 HTH,

 Rich



 



~|
ColdFusion 8 - Build next generation apps
today, with easy PDF and Ajax features - download now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:288363
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


java classloader

2007-09-13 Thread Daniel Baughman
Oh man I'm missing something here..

I'm using the javaclass loader to load a meta-data reader for some jpegs.
It seems no matter where I put the .jar for the class loader I get the
following exception: 

message: com.compoundtheory.classloader.NetworkClassLoader 
type: java.lang.ClassNotFoundException 

I am trying to do it like this page describes:
http://www.leavethatthingalone.com/blog/index.cfm/2006/5/16/Using-ColdFusion
-to-Read-EXIF-Information-from-JPEGs

the line throwing the exception:
networkClassLoaderClass =
getServerURLClassLoader().loadClass(com.compoundtheory.classloader.NetworkC
lassLoader);


I have the classloader-20070406174551.jar in the same directory as the
script.  Whats really wierd is this was working and stopped!  I'm banging my
head against the desk on this one...


Suggestions welcomed..

Dan


~|
Download the latest ColdFusion 8 utilities including Report Builder,
plug-ins for Eclipse and Dreamweaver updates.
http;//www.adobe.com/cfusion/entitlement/index.cfm?e=labs%5adobecf8%5Fbeta

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:288371
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


CFQuery wrapper tag to help with poor connections to sql..

2007-09-12 Thread Daniel Baughman
Hi,
 
I have an app that has to use a connection that sees a few seconds of
disconnectivity from its SQL server occasionaly. I was consdiering writing a
wrapper tag to the CFQUERY that would try the query once, if it fails on
connection wait 2 seconds and try again, before failing.
 
Anyone done anything like this and had success?  Is there any way to over
ride builtin tags in coldfusion 8?
 
Regards,
Dan Baughman


~|
ColdFusion is delivering applications solutions at at top companies 
around the world in government.  Find out how and where now
http://www.adobe.com/cfusion/showcase/index.cfm?event=finderproductID=1522loc=en_us

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:288287
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: remove a number from a series of numbers

2007-09-12 Thread Daniel Baughman
yea there are a lot of ways to do that..


If the digits always in the same position you could do a 

cfset newStr = left(1, '2007')  right(2, '2007')

alternatively if its the same sequence you could find/replace 

Is that not what you meant?



-Original Message-
From: John P [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 12, 2007 12:20 PM
To: CF-Talk
Subject: remove a number from a series of numbers


Hi, 

Is it possible to remove a digit from a multi-digit number IE:
2007 would become 207?

Thanks, 

John





~|
Enterprise web applications, build robust, secure 
scalable apps today - Try it now ColdFusion Today
ColdFusion 8 beta - Build next generation apps

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:288294
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Override built in tags.

2007-05-17 Thread Daniel Baughman
I want to over ride the built in tags to perform additional operations, then
perform their normal operations.  The reason I dont write my own CF_abort is
because I already have cfabort in use all over the place. I'd like to make a
system wide change without finding ever place a cfabort is used.

e.g.
 
I want to have a cfabort call do this:
 
 
!--- run some arbitrary code ---
cfabort
 
 
Does cf support that? if not will apollo?  anyone else ever wanted to do
this?
 

~ Dan


~|
Upgrade to Adobe ColdFusion MX7
Experience Flex 2  MX7 integration  create powerful cross-platform RIAs
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJQ 

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:278448
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: Override built in tags.

2007-05-17 Thread Daniel Baughman
Oops I meant to say scorpio, not apollo. But it looks like no dice, eh? 



 

-Original Message-
From: Tom Chiverton [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 17, 2007 9:22 AM
To: CF-Talk
Subject: Re: Override built in tags.


On Thursday 17 May 2007, Daniel Baughman wrote:
 Does cf support that?

No, I don't think so. Core tags are hard coded.

 if not will apollo? 

Sure, the source for the framework is open, so you could go ahead and mangle
any method you like.

Did you mean apollo ?

--
Tom Chiverton
Helping to collaboratively disseminate customized infrastructures
on: http://thefalken.livejournal.com



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and
Wales under registered number OC307980 whose registered office address is at
St James's Court Brown Street Manchester M2 2JF.  A list of members is
available for inspection at the registered office. Any reference to a
partner in relation to Halliwells LLP means a member of Halliwells LLP.
Regulated by the Law Society.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may
be confidential or legally privileged.  If you are not the addressee you
must not read it and must not use any information contained in nor copy it
nor inform any person other than Halliwells LLP or the addressee of its
existence or contents.  If you have received this email in error please
delete it and notify Halliwells LLP IT Department on 0870 365 8008.

For more information about Halliwells LLP visit www.halliwells.com.




~|
Create Web Applications With ColdFusion MX7  Flex 2. 
Build powerful, scalable RIAs. Free Trial
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJS 

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:278459
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: OT: javascript

2007-05-17 Thread Daniel Baughman
I'm pretty sure you want 
document.getElementById(textInputID).disabled  =
true 
not 
document.getElementById(textInputID).style.disabled
= true;



-Original Message-
From: Charlie Griefer [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 17, 2007 9:26 AM
To: CF-Talk
Subject: Re: OT: javascript


in this case, you don't need 'foo'.  just 'moo'.  even though they could be
in different forms, an id value should not be repeated on a page.

so...

function disabler(textInputID) {
   document.getElementById(textInputID).style.disabled=true;
}

form id=foo
input type=text id=moo /
input type=button onclick=disabler('moo'); / /form

On 5/17/07, Chad Gray [EMAIL PROTECTED] wrote:
 I want to write a javascript function that I can use on all of my forms
and inputs to disable a text input.  So I want to pass to the function the
form's ID and the text input's ID to be disabled.

 How do I append the functions attributes to my document command?

 My javascript below does not work.


 Function disabler(formID,textInputID) {

 document.formID.textInputID.disabled=true;

 }

 form id=foo
 input type=text id=moo
 input type=button onClick=disabler('foo','moo'); /form



 



~|
Create robust enterprise, web RIAs.
Upgrade  integrate Adobe Coldfusion MX7 with Flex 2
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:278461
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: duplicate records inserted

2006-08-23 Thread Daniel Baughman
Honestly who disables javascript?  I think catching the majority of people
who don't disable would be good enough. And what you do is simply put an
onclick attribute on the submit button that says
onclick=this.disabled=true or onclick=this.style.display: none

Daniel Baughman


-Original Message-
From: Jake Churchill [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 23, 2006 8:05 AM
To: CF-Talk
Subject: Re: duplicate records inserted


The client could disable JS and still get around it

Adkins, Randy wrote:
 One way is to disable the submit button once it is pressed.
 There is a JS function for it. Try googling for it 

 -Original Message-
 From: Ken [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, August 23, 2006 9:49 AM
 To: CF-Talk
 Subject: duplicate records inserted

 Hi. I have a form where on submit multiple lines of data are inserted
 into the database. However, as the page is still processing, If the user
 re-clicks the submit button again, it ends up adding much more number of
 records than originally intended. We end up with duplicate records.

 Can I use cftransaction for this? Can someone explain with an example
 please?

 Thanks a bunch.



 



~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:250729
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Calling the same UDF twice..

2006-06-09 Thread Daniel Baughman
Anyone ever seen a situation like this:

You define a function (some arbitrary function)

cffunction name=fun1
HI
/cffunction


And then can't call it twice in a row?

cfset fun1()
cfset fun1()

The second time it says that fun1 is not defined, but if you comment out the
first call the second runs fine..


If anyone has seen this, or is interested in how to recreate, let me know.


~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:243054
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Calling the same UDF twice..

2006-06-09 Thread Daniel Baughman
I have tried calling the functions like this:
cfscript
updateUser(valueUseList, fieldUseList,
form.u1id);
/cfscript
cfscript
updateUser(valueUseList, fieldUseList,
form.u1id);
/cfscript

The second time it will throw the error that the function is undefined, if I
comment out the first call, the second call works just fine.

Here is the actual function:
cffunction name=updateUser
cfargument name=valueUseList required=true type=string
cfargument name=fieldUseList required=true type=string  
cfargument name=userId required=true type=numeric
cfif listlen(fielduselist, |) gt 0
cfquery name=updateUser datasource=xxx
Update myTable set
cfloop from=1 to=#listLen(fieldUseList, |)#
index=i
cfoutput
#listgetat(fieldUseList,i, | )# =
cfqueryparam value=#listgetat(valueUseList,i, |)#
cfsqltype=cf_sql_varchar
cfif listLen(fieldUseList, |) gt
i,/cfif
/cfoutput
/cfloop
where tableId = cfoutput'#userid#'/cfoutput
/cfquery
cfelse
No data given to update user
cfoutput#userId#/cfoutput...
/cfif
cfreturn
/cffunction





Daniel Baughman

-Original Message-
From: Raymond Camden [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 09, 2006 10:39 AM
To: CF-Talk
Subject: Re: Calling the same UDF twice..


Can you show us the real code?

On 6/9/06, Daniel Baughman [EMAIL PROTECTED] wrote:
 Anyone ever seen a situation like this:

 You define a function (some arbitrary function)

 cffunction name=fun1
 HI
 /cffunction


 And then can't call it twice in a row?

 cfset fun1()
 cfset fun1()

 The second time it says that fun1 is not defined, but if you comment out
the
 first call the second runs fine..


 If anyone has seen this, or is interested in how to recreate, let me know.


 



~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:243062
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Calling the same UDF twice..

2006-06-09 Thread Daniel Baughman
Oh your exactly right, my previous post proved it.  In the function I have a
query named updateUser that is replacing the function.

Thanks for the help. 

-Original Message-
From: Ian Skinner [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 09, 2006 11:07 AM
To: CF-Talk
Subject: RE: Calling the same UDF twice..


You define a function (some arbitrary function)

cffunction name=fun1
HI
/cffunction


And then can't call it twice in a row?

cfset fun1()
cfset fun1()

Do you do anything to the fun1 value?  The variable can be redefined at any
time to be something other then a function.

Either of these would be a problem

cfunction name=fun1
cfset fun1 = HI
/cfunction

OR 
cfoutput#fun1()#/cfoutput
cfset fun1 = George
cfoutput#fun1()#/cfoutput

I suspect something closer to the former issue from what you have described.


--
Ian Skinner
Web Programmer
BloodSource
www.BloodSource.org
Sacramento, CA

-
| 1 |   |
-  Binary Soduko
|   |   |
-
 
C code. C code run. Run code run. Please!
- Cynthia Dunning

Confidentiality Notice:  This message including any
attachments is for the sole use of the intended
recipient(s) and may contain confidential and privileged
information. Any unauthorized review, use, disclosure or
distribution is prohibited. If you are not the
intended recipient, please contact the sender and
delete any copies of this message. 






~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:243064
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54