Dealing with tree node sorting

2010-11-24 Thread Tony Bentley
I had this awesome tree that now needs a different sort order. This has a table of parents and sub parents and then children. I have it working in this order: P C //this is P C C C C P C P C C C The parent and child tables have a sort column Now I need the following sort order

Re: Detect users based on country???

2010-11-22 Thread Tony Bentley
Use a public geo-location service: http://ipinfodb.com/ip_query.php?ip=#cgi.REMOTE_ADDR#"; result="response" /> Then use the response XML tree to extract the country or zip: #price# I wouldn't actually do it in this order because of the lag in http posts. I've had good luck with this meth

Re: CF8 Autosuggest doesn't work

2010-11-19 Thread Tony Bentley
Firebug? Are you getting an ajax response? If so, what does the output look like? Is it a JSON array? ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusi

Re: Problem with undefined js variable set via cf...

2010-11-17 Thread Tony Bentley
You should be doing the following: set all of your global vars first... //global vars load all scripts after. then run the jquery onload event... $(document).ready(function(){//functions on page load go here}); Which will set everything without needing to load the document

Re: CFCs for AJAX

2010-11-16 Thread Tony Bentley
If you avoid any output in any application methods then it will work fine and any Ajax framework (JQuery, JSON.js, etc) can convert the returned code to native JSON. This is why I said invoke a cfc and pass in the scope(s) of choice in your onRequestStart method. > Can cause problems.  The prob

Re: CFCs for AJAX

2010-11-16 Thread Tony Bentley
Shoot. Sorry, I meant to say onRequestStart() not onRequest. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/g

Re: CFCs for AJAX

2010-11-16 Thread Tony Bentley
Even if it is a remote cfc call it's still a request that fires onSessionStart() and onRequestStart(). I'm not sure what kind of issues you've heard but it works with me in CF8.0.1+ ~| Order the Adobe Coldfusion Anthology now!

Re: CFCs for AJAX

2010-11-16 Thread Tony Bentley
I would do user checks in a component from onRequest and then use a proxy cfc for your ajax requests. Using onRequest, you can check the url and if it is the proxy cfc, then do your user credential checks before allowing access. Otherwise, you'll need to use the client scope in your cfc directl

Re: CFCs for AJAX

2010-11-16 Thread Tony Bentley
Ajax Call -> OnRequest() -> checkUserCredentials.init(client){abort or continue} ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://ww

Re: Making check box values separate variables

2010-11-12 Thread Tony Bentley
use listgetat(form.checkboxa,1," ") and listgetat(form.checkboxa,2," ") and keep them as one value in the value field in the checkbox ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Antholog

Re: Where to put your code

2010-11-12 Thread Tony Bentley
Here is my opinion:* templates* Contains: object instances to render into HTML, conditionals for output, formatting methods Does Not Contain: dynamically rendered CSS, dynamically rendered JavaScript, patterns, methods. also any business, data and file management logic that can be written in a

Re: Error: null null

2010-11-12 Thread Tony Bentley
I think it's a date conversion issue. I know, debugging can be frustrating when it isn't working right. - Tony Bentley (sent from iPhone) On Nov 12, 2010, at 8:01 AM, Robert Harrison wrote: > >>> What? You don't know what null null means? It's pretty self

Re: Error: null null

2010-11-12 Thread Tony Bentley
> What? You don't know what null null means? It's pretty self explanatory :) ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.hou

Re: JQuery Ajax Error issue with Site-wide Error Handler

2010-11-11 Thread Tony Bentley
Nice work! - Tony Bentley (sent from iPhone) On Nov 11, 2010, at 11:06 AM, Donnie Carvajal wrote: > > Hi Tony, > > I just realized you were intending for the code to go in the site-wide error > handler and not the custom error handling of the AJAX code. I got it > wo

Re: JQuery Ajax Error issue with Site-wide Error Handler

2010-11-11 Thread Tony Bentley
Check firebug (how many times do people say this?) If you throw a 500 and abort after, the client should treat the response as an error. You need to configure the client too, not just put in . Use ALL of my code, not just a fragment. > Thanks Tony! Will the work with the > site-wide error

Re: JQuery Ajax Error issue with Site-wide Error Handler

2010-11-11 Thread Tony Bentley
Not sure where this goes in CF5.5. Place it in your error handler. In your js document: $.ajaxSetup({ error:function(x,e){ if(x.status == 500 && x.statusText == "Co

Re: Ajax + 2 functions = error

2010-11-09 Thread Tony Bentley
Confusing. Your access is public but you can call it via remote Ajax? ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffus

Re: cfm vs html pages

2010-11-08 Thread Tony Bentley
Is the content only HTML? You can have one master navigation that links the HTML pages. You can also have one master page that gets the html document too. index.cfm?page=about.html, then include the about.html in the master page. ~~

Re: Closing Browser expires session/cookie

2010-11-06 Thread Tony Bentley
Okay, so I think you hit it Dave. I just need to shorten the session to 15 or 20 minutes. The system already requires a login when the user closes the browser so why not just shorten the timeout? I've already have the user sessions stored in a cookie so I was close, but didn't think about why t

Re: Closing Browser expires session/cookie

2010-11-05 Thread Tony Bentley
Yeah but their session expires a couple of hours after they close the browser. So I could expire the session at a shorter timespan but if I can do it when the browser closes, that would be better. On Fri, Nov 5, 2010 at 4:50 PM, Russ Michaels wrote: > > Arn't they logged out automatically wh

Closing Browser expires session/cookie

2010-11-05 Thread Tony Bentley
So I have an app that uses cflogin, which works great if the user logs in and out from the same browser. Now here is where I am stumped: -User logs in, then closes the browser -System does not allow the same user to be logged in more than once -System logs all logged in users -System removes use

Re: (ot) jQuery get() and 401 Unauthorized

2010-11-03 Thread Tony Bentley
Nice Dave, not only did you answer the question but you also interpreted incorrect acronyms. :) ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archi

Re: (ot) jQuery get() and 401 Unauthorized

2010-11-03 Thread Tony Bentley
What is an NTFS user? NTFS is a file system format, which has nothing to do with user permissions. Do you mean to say that you are mapped to a NTFS drive like an external hard disk? ~| Order the Adobe Coldfusion Anthology now! h

Re: cfdocumentitem type=header

2010-10-29 Thread Tony Bentley
Perfect! Thanks Leigh. ~| 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:33

cfdocumentitem type=header

2010-10-28 Thread Tony Bentley
//this does not compute! Any way around this? ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-t

Re: (ot) jQuery

2010-10-21 Thread Tony Bentley
Really, you need to detect when the image is finished loading completely. Here, check out my source code: http://tonybentley.com/test/test.html ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion

Re: (ot) jQuery

2010-10-21 Thread Tony Bentley
Show the code on your request page. It's probably because you need an event to fire from the request page after the image is finished loading. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-A

Re: (ot) jQuery

2010-10-21 Thread Tony Bentley
function swapImages(imageName) { $.get('/shop/act_getBeautyImage.cfm?beautyImage='+ imageName + '&width=372&height=465',{},function(data) { $("#beautyImage").html(data).fadeIn('slow'); }); } ~| Order the Adobe Co

Re: Catching "Invalid CFML construct found" in OnError

2010-10-20 Thread Tony Bentley
Okay so running the code is gonna have to be the answer. The original reason for asking was because in my Ajax app I was not able to pass a custom header if I got a compile time error so catching it was a bit more difficult. It makes sense on a page request but an ajax request could be messy. Fort

Re: Catching "Invalid CFML construct found" in OnError

2010-10-20 Thread Tony Bentley
How do you catch compile time errors when they occur? Regardless if a template was tested or not. I understand best practices and that your code should be tested but it doesn't mean it will never happen. So when it does, how do you deal with it? If I get a server error from my applications, I get

Re: Catching "Invalid CFML construct found" in OnError

2010-10-20 Thread Tony Bentley
Dave, You are correct but stuff slips through the cracks. It's how well you can track back the error to the source when it occurs that will dictate if the code will be fixed when or if it happens. I can show a pretty nice user friendly error, but the question remains the same. How will I track er

Re: Catching "Invalid CFML construct found" in OnError

2010-10-20 Thread Tony Bentley
So basically if there is a typo in the syntax and the code does not compile it will throw an error and I cannot catch it? Hmmm... I guess I need to figure out something else. ~| Order the Adobe Coldfusion Anthology now! http://

Catching "Invalid CFML construct found" in OnError

2010-10-20 Thread Tony Bentley
I am trying to catch this error type but it is not passing through onError in the Application Class. It simply is evaluated and thrown as is. How do I catch it without a try/catch? ~| Order the Adobe Coldfusion Anthology now!

Re: cfdocument text cuts off at page break

2010-10-14 Thread Tony Bentley
Why didn't Adobe fix some of the simple needed changes in CF9 for cfdocument? I have no idea. Known issues that suck: -THEAD does not carry over on page break. The solution? Use cfreportbuilder (god help me). - Border collapse does not work. The solution? Write some really funky inline styles

Re: jQuery and cfcontent

2010-10-12 Thread Tony Bentley
I usually locate to another page which holds the cfheader code. What ends up happening when you locate to another page is you are never redirected and the page prompts to download. Doing it in jquery is unnecessary unless you want to use a wait icon to ensure the processing is finished before loca

Re: Any way to prevent storing methods inside of an array

2010-10-07 Thread Tony Bentley
I spent some time trying to expose the methods in different structures with different access layers and it looks like the methods will not show up (as a structure) when returning out as json, web service or any other remote call. So basically, I was concerned that creating instances of objects

Re: Any way to prevent storing methods inside of an array

2010-10-06 Thread Tony Bentley
Okay, let me come up with something that would explain my situation better. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive:

Re: Any way to prevent storing methods inside of an array

2010-10-05 Thread Tony Bentley
On Oct 5, 2010, at 8:10 PM, Sean Corfield wrote: > > On Tue, Oct 5, 2010 at 2:12 PM, Tony Bentley > wrote: >> I have a cfc that gets instantiated and then stored in an array. I have a >> bunch of different objects (arrays, queries, structures, etc) in the cfc >&

Re: Any way to prevent storing methods inside of an array

2010-10-05 Thread Tony Bentley
composition over inheritance? ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/

Re: Any way to prevent storing methods inside of an array

2010-10-05 Thread Tony Bentley
Thanks Matt. I think I understand the difference between the two scopes and why not to use the this scope. For the very reason I am needing! In most cases it isn't a problem but when methods are exposed it becomes apparent. - Tony Bentley (sent from iPhone) On Oct 5, 2010, at 3:11 PM,

Re: Any way to prevent storing methods inside of an array

2010-10-05 Thread Tony Bentley
I was hoping to shortcut the process of resetting the 'this' scope to a different scope for the sake of saving time. So you're saying that the only way is to specifically call on the structure members? returnObject = StructNew(); returnObject.id = this.id; returnObject.name = this.name; return

Any way to prevent storing methods inside of an array

2010-10-05 Thread Tony Bentley
I have a cfc that gets instantiated and then stored in an array. I have a bunch of different objects (arrays, queries, structures, etc) in the cfc which all gets used but because of the way I am storing them, the methods can be called and I want to prevent that. So here is an example of my iss

Re: Need suggestion to achieve this functionality

2010-10-04 Thread Tony Bentley
Honestly, I think you could get it working in cfgrid but it seems like you are trying to build something that would require more info of scope to hash out how it would work. This is where I step off this thread... ~| Order the A

Re: Need suggestion to achieve this functionality

2010-10-04 Thread Tony Bentley
I don't understand your implementation so I can't answer the question properly. Why the fascination with cfgrid? Are you updating text input fields in the grid or is it some other functionality that you want to implement from cfgrid? Sorting, paging, etc? Please explain. ~

Re: Need suggestion to achieve this functionality

2010-10-01 Thread Tony Bentley
> I user JQuery treeview for the tree functionality. To recurse through > the directory with a recursive custom tag in the 'tags' directory Sorry, this is all junk code that you can remove (except not compareNoCase(type,"dir")) ~

Re: Need suggestion to achieve this functionality

2010-10-01 Thread Tony Bentley
I user JQuery treeview for the tree functionality. To recurse through the directory with a recursive custom tag in the 'tags' directory called recursive: #name#

Replicating hints in cfc's

2010-09-30 Thread Tony Bentley
I have a few Interfaces that have a number of cfc's that implement them. I want to make sure that whoever is reading the cfc's understand what the methods are designed to do. I'm a bit confused about when to duplicate hints or if there is a way to speed this all up. My steps are as follows:

Re: 3 layers of validation?

2010-09-23 Thread Tony Bentley
You should be doing client side validation of type checking with javascript not ajax calls to the server. It makes sense to make a call to check the database for duplicates or other non-type-checking validation but for simple checks I can't imagine trying to build a system that calls the server ev

interface for CF8

2010-09-17 Thread Tony Bentley
I need to create an interface for a set of cfc's so they can implement concrete behaviors. Does anyone know a workaround for CF8 or have code examples? These cfc's already extend. ~| Order the Adobe Coldfusion Anthology now! h

Re: CF8+: Short Hand notation for calling a function within a component.

2010-09-14 Thread Tony Bentley
myFunction("mike", "beer,soccer,women" ); //either myFunction(name,likes){ //reference by arguments scope } ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz

Re: Need A jQuery Guru's Help

2010-09-14 Thread Tony Bentley
$(document).ready(function(){showHide()}); $(document).ready(function(){showHide(true)}); ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michae

Re: Creating a custom ajax error

2010-09-08 Thread Tony Bentley
My post above is wrong. Here is what I wanted to happen: This throws the error and dumps it out in html for firebug but ajaxSetup() now knows what to do with it based on x.status == 50

Re: Creating a custom ajax error

2010-09-08 Thread Tony Bentley
This is what I got from today's lesson ... Application.cfc - OnError: Client side script: $.ajaxSetup({ error:function(x,e){ if(x.status == 500 && x.statusText == "Sess

Re: Creating a custom ajax error

2010-09-08 Thread Tony Bentley
You're correct if the application was something on the public end but during black box testing is when this would be useful. Before go-live I would like the user (or another client based delivery system) to catch errors and pass them back to a ticket. I can then go into my error log files and see

Re: Creating a custom ajax error

2010-09-08 Thread Tony Bentley
That's exactly what I was looking for Ray. So the $.ajaxSetup() method handles the errors and redirects expired session. I knew there was a way to do this outside of my ajax requests but wasn't sure if I needed to create a proxy method or otherwise. Also, I noticed that you are expecting a string

Creating a custom ajax error

2010-09-08 Thread Tony Bentley
Has anyone used cfhttp to throw an ajax error that returns a JSON object and error code 500? I'm looking for a code snippet of your onError() method. I'm using jQuery and am also trying to decide how to handle it on the client side. Specifically looking for when a session expires and when a ser

Re: Bind issues - observation

2010-09-03 Thread Tony Bentley
Larry, It sounds like your problem is mainly the architecture that you're dealing with. It is really important to understand modern Ajax (not the old Async JavaSript & XML) and how to finely tune Ajax JavaScript libraries to do what you want. More specifically how to handle Ajax debugging and

Re: CFParam vs. IsDefined

2010-09-01 Thread Tony Bentley
A classic issue yesterday related to isDefined(): This worked perfectly: //pass boolean to determine if the given field is null in the stored proc (1=submitted, 2=finalized) if(arguments.status eq 1){ submitted = false; finalized =

Re: manipulating Excel files

2010-08-30 Thread Tony Bentley
I started to write the code answer but I'm afraid I didn't have time today. The short answer is that POI is probably the only option since there aren't really any other options within Java and your binary conversion method failed. To get the process going, I suggest reading your file in as a quer

Re: Marilynn Monroe (not really - cfinput but no one answered before)

2010-08-27 Thread Tony Bentley
Not sure if this fixes it but you might be having a problem with wddx, which is the default return format. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/14

Re: I need help with a web service FAST!!!

2010-08-26 Thread Tony Bentley
In your component, create a method that creates an instance of your parent xmlDoc: this.xmlDoc = xmlNew() when you initialize it. Then in your NEWJOB function, simply append the data to the this.xmlDoc by creating a new node. When you are finished, you simply use the instance name of the

Re: Alternatives to CFFM?

2010-08-19 Thread Tony Bentley
you can add this code to the cffm.js: function createErrorWin(msg){ var el = $(document.createElement("div")); $(el).html(msg); $(el).css("zIndex",999); $("body").append(el); } and then do a find and replace for all alerts; find:alert replace:createErrorWin If an

Re: pseudo constructor not working or am I slow today?

2010-08-17 Thread Tony Bentley
Of course. I need to return the instance of the object and specify the object type. Sweet Dave. Thanks. On Tue, Aug 17, 2010 at 2:05 PM, Dave Watts wrote: > > > This works... > > > > obj= createObject("component","cfc.MyClass"); > > obj.init(application.id); > > obj.executeMethod(); > > > > >

pseudo constructor not working or am I slow today?

2010-08-17 Thread Tony Bentley
This works... obj= createObject("component","cfc.MyClass"); obj.init(application.id); obj.executeMethod(); But this does not? obj= createObject("component","cfc.MyClass").init(application.id); obj.execute(); on cfc... this.i

Re: Preventing use of remote method by other sites

2010-08-13 Thread Tony Bentley
> > -----Original Message- > From: Tony Bentley [mailto:cascadefreehee...@gmail.com] > Sent: Friday, August 13, 2010 3:33 PM > To: cf-talk > Subject: Re: Preventing use of remote method by other sites > > > Any time! > > Keep in mind that anyone can call your m

Re: Preventing use of remote method by other sites

2010-08-13 Thread Tony Bentley
can ONLY be used as AJAX, which would prevent other sites from > using > it because of the cross site scripting. > > Great idea Tony, thanks! > > -----Original Message- > From: Tony Bentley [mailto:cascadefreehee...@gmail.com] > Sent: Friday, August 13, 2010 2:55 PM >

Re: Preventing use of remote method by other sites

2010-08-13 Thread Tony Bentley
I use a cfc that checks to see if the method being called is from within the domain, is indeed ajax and that the method is indeed is accessed remotely, otherwise abort the request. If you are doing cross site requests, pass a unique key in your form. Is it ajax?

Re: Millions of Coldfusion sites need to apply patches

2010-08-12 Thread Tony Bentley
Thanks Pete. Unfortunately, I'm dealing with a virtual directory issue and ghetto architecture in IIS. I was able to figure out how to lock it down using the firewall and http proxy rules. On Thu, Aug 12, 2010 at 2:09 PM, Pete Freitag wrote: > > On Thu, Aug 12, 2010 at 4:21 PM, T

Re: Millions of Coldfusion sites need to apply patches

2010-08-12 Thread Tony Bentley
Can someone pass me the Perl regex to allow the scripts folder? I'm just not getting it on my own. So the rule would match anything that contains /CFIDE/ *except /CFIDE/SCRIPTS/ case insensitive. Thanks in advance for saving me hours and hours of trial and error.

Re: bind a method to all remotely accessed methods in a cfc

2010-07-26 Thread Tony Bentley
Just wanted to follow up in case anyone ever wants to try it. On your super init method, use this code: accessRemote = false; cfcname = getmetadata(this); for(i=1;i lte arrayLen(cfcname.FUNCTIONS);i++){ fname = cfcname.FUNCTIONS[i]; if(fname.name eq url.m

Re: bind a method to all remotely accessed methods in a cfc

2010-07-20 Thread Tony Bentley
b, thought it was pretty smart. > Douglas Adams > > On Tue, Jul 20, 2010 at 5:07 PM, Tony Bentley wrote: > > > > Is it possible to bind a private or package method to any method with > remote access within a cfc? I want run checks on each request to lock down > security but

bind a method to all remotely accessed methods in a cfc

2010-07-20 Thread Tony Bentley
Is it possible to bind a private or package method to any method with remote access within a cfc? I want run checks on each request to lock down security but not on the application level. I want to automate this procedure instead of having to place the call inside of each method. I would use r

Re: Need Advice on Processing After a Page Has Been Rendered

2010-07-19 Thread Tony Bentley
I've dealt with this issue time and time again. For instance, you want the results to be downloaded in an excel document but you don't want to compromise the time it takes to render just the HTML. I have an image that is hidden and a spinner saying 'loading excel results'. Then at page load an aj

Re: How Many CFCs is too many CFCs

2010-07-13 Thread Tony Bentley
How you are encapsulating your cfc's. It there only one remote object that interacts with the client and everything else is private/public? ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Ant

Re: Looking for a CF Recipe script!

2010-07-08 Thread Tony Bentley
>See how easy everything is in CF? Coldfusion is different: function manageRecipes(){ for(i=1;i lte RecipesQuery.recordcount;i++){ recipes[i].manage(); } } I've been writing a lot of JavaScript lately. Why they decided to start the index at 1 and not allow relational or assignm

Re: Looking for a CF Recipe script!

2010-07-07 Thread Tony Bentley
>Does anyone know a good Recipe Script? function manageRecipes(){ for(i=0;ihttp://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335164 Subscription: http://www.houseoffus

Re: Style Classic Debugging File in CFIDE

2010-05-07 Thread Tony Bentley
I forgot to mention, you can also just add the jquery doc in your CFIDE and modify your classic debugging page with the included show hide links. That way it is outside of your project. ~| Order the Adobe Coldfusion Anthology

Re: Style Classic Debugging File in CFIDE

2010-05-07 Thread Tony Bentley
Yes. Include jquery and the following script: //hide debugging on page load $(document).ready(function(){$('.cfdebug').hide()}); Show Debugging || Hide Debugging ~| Order the Adobe Coldfusion Anthology now! http://www.amaz

Re: Java or C## Package for Word to HTML conversion?

2010-05-06 Thread Tony Bentley
I'm going to try Open Office jodconverter and see if it handles HTML well enough. Has anyone tried using it ? I found a little code but I'd bet someone already has a snippet that reads in and outputs whatever arguments you pass. I noticed it also works with command line... ~~~

Java or C# Package for Word to HTML conversion?

2010-05-06 Thread Tony Bentley
Anyone know of a good Word to HTML converter? I need it to strip everything down to valid HTML without header or body tags. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-

Re: Adobe ColdFusion Anthology released

2010-05-04 Thread Tony Bentley
Michael, Thanks for releasing the book. I ordered it yesterday. Looking forward to reading all of the coolness. -Tony ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinow

Re: question ("null" attribute)

2010-04-30 Thread Tony Bentley
~| 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:333282 Subscription: http://www

Re: jquery $.ajax - need help with json syntax

2010-04-29 Thread Tony Bentley
Or better put, a json structure inside of a json structure :-) arguments.a = DeserializeJSON(arguments.a); This is then referenced as a ColdFusion structure with members ~| Want to reach the ColdFusion community with something

Re: jquery $.ajax - need help with json syntax

2010-04-29 Thread Tony Bentley
Okay I figured it out: var data = { 'a': {"a":a.cat,"b":a.dog,"c":a.etc}, 'b': b, 'c': c, 'd': d }; Thanks everyone for the help. It helped me out quite a bit. ~

Re: jquery $.ajax - need help with json syntax

2010-04-29 Thread Tony Bentley
So then how would I reference an object with members? a.member, a.friend, etc. I tried a:a and 'a':a but neither works. >I find that it's easier, and more self-documenting, to enumerate the >variables in data directly: > > $.ajax({ > url: "cfc/mycfc.cfc?method=dbupdate", >

Re: jquery $.ajax - need help with json syntax

2010-04-29 Thread Tony Bentley
If I use serialize I get nothing passed as a post argument. I am requiring all args and I get the error as normal, "...required but not passed in". var dat = { 'OBJ': obj, 'VAL': val, 'ATTR': attr,

jquery $.ajax - need help with json syntax

2010-04-29 Thread Tony Bentley
I need to pass 4 arguments and for this purpose, lets use a,b,c,d var data = {"argumentCollection":{?}}; $.ajax({ url: "cfc/mycfc.cfc?method=dbupdate", dataType: 'json', data: data, type: 'post', success:

Re: CF - jQuery - Javascript

2010-04-06 Thread Tony Bentley
You could use cfajaxproxy to get your recordset in json and then use jquery to populate the form fields with the values of each member of the json query object. ~| Want to reach the ColdFusion community with something they want?

Re: Passing NT Username and Password to SQL Server datasource - still impossible or have things changed?

2010-04-06 Thread Tony Bentley
why did I say twice? The user needs to be part of a registered domain and that's all. ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.

Re: Passing NT Username and Password to SQL Server datasource - still impossible or have things changed?

2010-04-06 Thread Tony Bentley
cfNTauthenticate will pass NT authentication but you will need to have the user authenticate twice; once when they login to the machine and again per coldfusion application. http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=Tags_m-o_07.html ~~~

Re: java.lang.String as a structure with members

2010-04-05 Thread Tony Bentley
Your query assumes that there is only one row expected. What happens when you put the cfset inside of a cfoutput query tag? How many records are there? See my modified markup below. > > >SELECT Team1, Team2, GameDate, GameTime, Location, Comments FROM Games where >(GameID=#url.gameid#) > >

Re: recursive XML reader...

2010-04-05 Thread Tony Bentley
I had a similar problem with the xml structure. If I remember correctly, XML is not actually an array and so I couldn't use arraylen(). I might be wrong but I tried this once and failed so I decided to bail out and loop through the known levels of the xml structure. I'm curious of this as well

Re: Ajax, Json, and two clueless programmers

2010-03-28 Thread Tony Bentley
> >houseDetails = {address : "1970 ST CHESTER AURORA, 80010", price : >"45000",listingNum : "833553", office : "303-487-0777" }; > > >The returned info (price, for example) displays great with ID numbers >in a table as such: or like this id="price">... but how the heck do I use it in a UR

Re: Convert string to Query Object?

2010-03-24 Thread Tony Bentley
I think this is related: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:61040 ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: ht

Re: ColdFusion Builder Released!

2010-03-22 Thread Tony Bentley
This is over the hundredth comment in this thread. I am using CFEclipse and am pretty happy over Dreamweaver. It's free and pretty sweet. I'm not going to complain about Adobe's choice to charge a high price for their new plugin. If and when it proves to be better than a free plugin, I'll buy i

Re: Eclipse and FTP Support...

2010-03-22 Thread Tony Bentley
Aptana has a synchronization manager which is great if you are coding locally and push to remote ftp. ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archi

Re: CFC Newbie

2010-03-22 Thread Tony Bentley
ask and you shall be enlightened: http://www.bennadel.com/blog/726-ColdFusion-Application-cfc-Tutorial-And-Application-cfc-Reference.htm ~| Want to reach the ColdFusion community with something they want? Let them know on the

Re: CF8 cfselect ajax features - what am I missing?

2010-03-22 Thread Tony Bentley
Looks like you've made progress but the change is happening without any user notification. You need the fancy web 2.0 ajax icon. ~| Want to reach the ColdFusion community with something they want? Let them know on the House of

Re: CF-Based Content Management Systems

2010-03-18 Thread Tony Bentley
What? You guys have never heard of iMIS before. Talk about overhead. They moved it onto a .NET platform recently and it was really too much overhead. I've never used farcry but I know it is the best CFCMS out there. ~| Want to

Re: AW: SPAM-LOW: RE: CF-based picture-gallery

2010-03-17 Thread Tony Bentley
Sure. Can you email me your application.cfc? Also, send me the current error your are getting and the stack trace. tony ~the at sign~ tonybentley.com ~| Want to reach the ColdFusion community with something they want? Let them

  1   2   3   >