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:

P
 P
  C
  C
  C
  C
 P
  C
 C //this is last now instead of first
P
 C
 C
 C

I'm stumped on how to get this sort order and then build it in an XML tree. I 
know this can be a complex process to show the code so if you could describe 
just the table schema? In my function, I loop the parents, then loop the 
children but this requires looping the parents, then looping the sub parents 
and keeping into account that there may be a child in between parents.


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


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 method but it isn't perfect
because web services can go down and then your checking system breaks.
If the location service isn't working, then don't allow anyone to use
the module you've built with the integrated geo-location service. Use
cookies as you stated to keep from having to do this every time.

~|
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:339440
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 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=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:339406
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


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 first. 

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


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 problem usually being that the onRequest,
> onRequestStart and|or onRequestEnd cause data to be added to the request
> response that AJAX can not digest.  White-space being a very easy to
> over look addition.  But if you understand that your request functions
> are going to (or may) be consumed by a web service or AJAX.  And you
> take care to create them so as to not break the response to the web
> service or AJAX request then they can be u

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


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


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!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:339294
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


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 directly. 

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


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


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-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:339168
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


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
component and called from the template

*cfIncludes*

Contains:
same as templates except intended for reuse (header, footer, object
creation, etc)

Does Not Contain:
same as templates

*custom tags*

Contains:
same as cfIncludes except objects can be passed into the tag as parameters
and carry their own scope

Does Not Contain:
same as templates

*components*

Contains:
objects, business logic, patterns, methods and inheritance/abstraction, data
and file management logic

Does Not Contain:
any output or any dependence on scoped variables



I'm a firm believer in CSS and JavaScript being outside of the document. If
you are rendering dynamic JS or CSS, you're doing it wrong. There is a
better and easier way.


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


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 explanatory :)
>
> I'm assuming that's a joke, but in case it's not... please explain.  I don't 
> have a clue what it means and a search is coming up short on answers.
>
> Strangely, the error has just gone away and I did nothing?
>
>
>
> Robert B. Harrison
> Director of Interactive Services
> Austin & Williams
> 125 Kennedy Drive, Suite 100
> Hauppauge NY 11788
> P : 631.231.6600 Ext. 119
> F : 631.434.7022
> http://www.austin-williams.com
>
> Great advertising can't be either/or.  It must be &.
>
> Plug in to our blog: A&W Unplugged
> http://www.austin-williams.com/unplugged
>
>
>
> 

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


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


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 
> working.  This was a great help!!
>
> Thanks again,
>
> Donnie
>
>> 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 handler on?  I tried adding this tag to my ajax code,
>>
>>> but it is still returning as success.
>>>
>>> Thanks,
>>>
>>> Donnie
>
>
> 

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


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 handler on?  I tried adding this tag to my ajax code, 
> but it is still returning as success.
> 
> Thanks,
> 
> Donnie 


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


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 == "ColdFusion Error"){
//Server side code issue. Handle it gracefully!

}
});

You probably want to handle all server errors the same, although you can
customize the messages returned to the client. For instance, if you get a
SQL error you can do 
instead.


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


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


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.


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


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 the 
timeout was so long. It spawns another idea where in one instance I want the 
inactivity to be prolonged but some ajax calls every 10 minutes would handle 
this.

Thanks! This really helps.


On Nov 6, 2010, at 10:29 AM, Dave Watts wrote:

> 
>> 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.
> 
> The default session timeout is twenty minutes, I think. You should
> probably set the session timeout to a shorter value than a couple of
> hours. The session timeout only comes into play when the user stops
> making requests: if a user requests another page every fifteen minutes
> for eight hours, the session will continue for eight hours. If the
> user waits more than twenty minutes to make another page request, that
> user's session will have been destroyed.
> 
> You can't guarantee that you can destroy the session when the browser
> closes. At best, you can break the connection between the user's
> browser and the session by using session cookies, which are destroyed
> when the browser is closed. If you've enabled J2EE sessions, they use
> a session cookie by default. You can also use client-side
> functionality (JavaScript, etc) to send a signal to the server when
> certain things happen, but again this isn't all that reliable.
> 
> Dave Watts, CTO, Fig Leaf Software
> http://www.figleaf.com/
> http://training.figleaf.com/
> 
> Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
> GSA Schedule, and provides the highest caliber vendor-authorized
> instruction at our training centers, online, or onsite.
> 
> 

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


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 when the session expires ?
>
>
>


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


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 user from log onSessionEnd()

How can I remove the user from the log when they close the browser?

Here is my logic:

onSessionStart{




}


onSessionEnd{
delogUser(arguments.SessionScope.userid)
}


login{

logUser(uname,pword)
}

logout{

delogUser(session.userid)
}

onRequest{
if(isDefined("cookie.cfid") and session.loggedin eq false){

//this is in case the user closes the browser and then opens it again
checkCookieAgainstLogAndDelogUser(cookie.cfid)
}
}

So yeah, the user closes the browser but that doesn't fire the logout method or 
clear the cookie or session. When the user tries to login with another browser 
without actually hitting logout, they cant log in. The only way is to use the 
same browser that they originally closed.





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


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
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:338821
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


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!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:338798
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


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


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


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-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:338467
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


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-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:338458
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


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


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.
Fortunately I have a dedicated server, otherwise I'd be screwed I think.
Thanks Dave.


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


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
an email but these are run time only errors. So logging is good for tracing
but not for learning if and when they occur. Seems like any error regardless
of how it happens should be sent through onError since ColdFusion doesn't
have any build tools so to speak to check before run time occurs. I figured
out a solution but it only works for ajax requests (pass back the html to a
function if the error code is 500). I'm not sure about page requests.


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


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 errors
in my site back to the template it occurs on and how did the user create
that error. Simply put, Adobe has not developed much of an error tracking
system. Now a days, I am tracking not only every click event and on which
element up the DOM tree but also using that information when catching server
errors that will help me figure out how it happened. I'd bet some of the
other developers here would pay good money to have the same system in place
for their websites.


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


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://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:338381
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


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!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:338378
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


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 at the first row of the table, last row of the table and first/last td 
of each row. (How much has this cost our company?)
-Table breaks in the middle of a row. No solution. (Shoot me)

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


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
locating, which then all you need is a
document.location.href="page-to-cfheader.cfm";


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


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 could pass 
information about the methods within a cfc (like which ones are remote and what 
arguments would be accepted) but the only way to get this information is 
through public or private method calls, in which case it needs to be embedded 
inside of a coldfusion template after the cfc has been initiated. Does this all 
seem correct? 

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


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


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 
>> which all gets used but because of the way I am storing them, the methods 
>> can be called and I want to prevent that.
> 
> CFCs have methods - that's kinda the point - so I'm a bit puzzled as
> to what you're really trying to achieve?

True, they do but I saw the possibility that storing the cfc's method when I 
really only wanted the members could lead to problems. Maybe not. If someone 
here said that doing so was harmless, especially you or Ray I might chill out 
and take your advice. No far no one has said that its okay and nothing bad is 
going to happen.
> 
>> Now if you dump the array, you get all of the stuff in cat and animal but 
>> you also get the methods to kill cat, feed cat and all. There must be a way 
>> to only get the structure with members and not the option to call the cfc 
>> methods.
> 
> Why use CFCs at all then? If all you want is an array of structs, why
> not load your data into structs instead of using CFCs?

I thought there might be a way without having to retype all of the items in the 
scope of that object to store them. There are work arounds I'm sure. Maybe I 
need to go back and learn some patterns that could automate this.


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


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


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, Judah McAuley  wrote:

>
> Matt, do you know of a good rundown on the difference between This and
> Variables scope in a CFC? I have a basic understanding of it but it is
> always been something I wanted to make sure I understood the fine
> distinctions in, kind of like the difference between var scoped
> variables and the local scope in CF9.
>
> Cheers,
> Judah
>
> On Tue, Oct 5, 2010 at 3:00 PM, Matt Quackenbush  wrote:
>>
>> I don't think I am actually understanding the question at hand, but
>> hopefully this will at least help you out.
>>
>> First of all, I would strongly discourage anyone from using the "this" scope
>> of the CFC. �There are a variety of reasons for that recommendation, but
>> chief among them is the ability to access and change the instance data from
>> outside of the object.
>>
>> Instead, you will want to use the "variables" scope, and have getX() and
>> setX() methods to access/change the instance data.
>>
>> Now then, if you are wanting a struct representing the instance data, then
>> you would create a getMemento() method to return that, which would look
>> something like the following:
>>
>> public struct function getMemento()
>> {
>> � � // duplicate it so the internal data cannot be changed outside of the
>> object
>> � � return duplicate(variables);
>> }
>>
>> These are just general guidelines and may/should change based upon your
>> actual needs.
>>
>> HTH
>>
>>
>>
>
> 

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


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 returnObject;

There must be a better way than a new method than resetting the structure... 
perhaps using the variables scope instead of the this scope? 

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


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 issue:

Animal.cfc

Cat.cfc extends Animal.cfc

Cat.cfc:

this.name="Kitty";
//instance vars go here
function init(id){
this.id=arguments.id
//setters go here
return this;
}
function meow(){
writeoutput("meow");
}

So now I am going to store the cats
catsArray = [];
for(i=1;i lte cats.recordcount;i++){
   cat = createobject("component","cat.cfc").init(cats.id[i]);
  //method to get structure here?
   catsArray[i] = cat;
}

Now if you dump the array, you get all of the stuff in cat and animal but you 
also get the methods to kill cat, feed cat and all. There must be a way to only 
get the structure with members and not the option to call the cfc methods. 

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


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


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. 

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


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")) 

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


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#


 

 



  #name#






insert this in your cfm page that you want to output the files in and set the 
dir var and get the latest jquery and treeview package:







   
$(document).ready(function(){
$("#browser").treeview({
collapsed: false
});

});

Directory:





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


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:

1.) Copy all methods in the interface
2.) Paste to new cfc
3.) Write override methods
4.) Within the methods, explain the purpose beyond the interface hints

So this leads to the question, should the hint be step 4 or should I be 
replicating the interface hints?

I'm not expecting much of an answer because this is probably not that important 
but I can imagine the person who has to support my code might be a little 
confused. 

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


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 every
time an input field changes state. This is much easier to check in
javascript due to the universal nature of forms. There are only so many form
element types so we can make functions that have universal behaviors to
those elements and use custom scripts that can check for other definitions
like max length, min length, min of 3 in the collection, etc. You should do
strict type checking all the way to your database. Your input field value
should be checked in every transfer from one method to the other (e.g., form
post javascript method to cfc validation method to cfc object collection to
cfc dbproxy method to the database stored procedure, etc). If there is an
error, the server should throw an error. The client should be able to handle
that error and deliver the message or respond accordingly.


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


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!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:337192
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


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/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:337017
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


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-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:336998
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


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 == 500 &&
x.statusText=="ColdFusion Error".


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


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 == "SessionTimeout") {
alert("Your session has timed out.");
location.href = 'login.cfm';
}
else if(x.status == 500 && x.statusText == "ColdFusion Error"){
alert(x.statusText);//test for coldfusion error
}
}
});

Thanks Ray. This is what I needed today.


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


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 more
detail of what happened or get a little more information about how to
duplicate and resolve the issue.

Following, I would return something vague once black box testing is complete
like 'were sorry an error has occurred' and then refresh or catch it and
move on, etc.

So to join the two, the real answer is yes and yes :) I would want to say
whatever I want and handle it however I want based on when in the SDLC it is
occurring and who is getting the error.

Thanks for helping me on this. I know there are a lot of ways to do it but
that's my problem. I think there is probably a better solution specific to
CF/JQuery, perhaps the most common client/server combination for ColdFusion.


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


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
"SessionTimeout" which is exactly what I am doing, just not in the same
place (hence asking for some advice since I am duplicating this all over the
place). So this leaves me with another thought about passing the error back
to the client. If a ColdFusion error occurs, I would really like to have a
structure to work with but how would you identify that it indeed is a server
error? I would want an indicator and a structure at the same timeor
maybe you can advise this as well?

Thanks for that snippet.


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


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 server error occurs 
what to do on the client side (session expiration refreshes the page to login 
panel,etc). 

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


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 browsers that will 
not output debugging information. For instance, there was no way to know that 
you were using an Application.cfm with html and OnRequestEnd.cfm and that your 
markup was junking up your Ajax response without seeing the body of your 
respose. Your test environment was not setup well enough to work through 
debugging Ajax (until someone pointed out Firebug). In my testing environment, 
I use Firebug in Firefox to debug EVERY SINGLE REQUEST. If you cannot debug 
your requests/responses and view JS errors, there is no way you can build an 
application that uses Ajax. Even if Firebug didn't exist, there are ways around 
it. For instance, before firebug many developers would just log each request 
and response and view logfiles to see their issues.

I also use a TON of jQuery because it simplifies the complexity of JSON and DOM 
and allows rapid Ajax development and DOM manipulation. ColdFusion has some 
nice built in libraries and I have used all of them at one point or another but 
for the sake of being able to extend JavaScript as a real programming language, 
I now just write  scripts in jQuery and have them interact with ColdFusion 
components, returning JSON or strings or load a dynamic CFML page that takes 
care of all of the server side rendering that the browser might bark at 
(imagine using JSON & DOM manipulation to output 10,000 records in one go).

The example I gave you in your earlier post gives you an example of both client 
and server rendering of a state change. Remember that you do not need to use 
Ajax for state change and that sometimes it is better to simply use DOM 
manipulation using JavaScript to change the state of your views and render it 
all on the server.

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


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 = true;
}
else if(arguments.status eq 2){
finalized = false;
submitted = true;
}








This did not:


//pass boolean to determine if the given field is null in the
stored proc (1=submitted, 2=finalized)
if(arguments.status eq 1){
submitted = true;
}
else if(arguments.status eq 2){
finalized = true;
}








I ran a DB trace and both values were coming out as defined in the second
code.


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


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 query object
(using either Ben's POI utility or CF9). Then loop through the rows,
columns. Mark each instance and store those coordinates (x,y). After looping
through the sheets, columns and rows, use a method  that sets the value for
each occurrence. Then rewrite your file and you're finished.


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


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/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:336625
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


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 cfc  and the
object reference. xmlcfc.xmlDoc to output it.

Does this make sense?

On Thu, Aug 26, 2010 at 11:42 AM, Ray Meade  wrote:

>
> I've been trying to figure this out for days now and my deadline is almost
> up. I need to create a complex web service that will receive multiple
> records from the consumer and create an XML file that will be copied into a
> directory and processed. Right now, we receive an XML file via email which
> we upload to the web server and upon upload completion a series of tasks
> processes the file and inserts the data into our database automatically. All
> I really need to do is to take the incoming web service data and create an
> XML file with it, but I don't even know how to reference the data when there
> are multiple records. I managed to get a single record web service created
> just fine just by using the following:
>
> NewJobUpdates.cfc (the name of this file)
>
> 
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> 
> 
>  strSixFigData="6Figs";
>  strBOAData="6Figs";
>  strAAAData="allen";
>  strSixFigNest="6FigsNest";
>  companyjobsencryptkey="6figC0m94ny";
>  strSessionLockName="sixfigurejobs_#client.cfid#_#client.cftoken#";
>  strLockTimeout=10;
>  intRandOrd=randrange(10, 99);
>  strAppAddToken="#URLToken#";
>  strAppAddToken=strAppAddToken & iif(not(len(strAppAddToken)), DE(""),
> DE("&"));
>  strAppAddToken="#strAppAddToken#" & "noCache=" & "#intRandOrd#";
>  strAppAddToken = "100k=1";
>  
>
> 
> 
> 
> 
> #arguments.username#
> #arguments.password#
> 
>   #arguments.JOBCOMPANYNAME#
>   #arguments.JOBCODE#
>   
>   #arguments.JOBINDUSTRIES#
>   #arguments.JOBFUNCTIONS#
>   
>   #arguments.JOBSTATE#
>   
>   #arguments.JOBOPPORTUNITY#
>
> 
>   #arguments.JOBMINCOMPENSATION#
>   #arguments.JOBMINEXPERIENCE#
>   #arguments.JOBMAXEXPERIENCE#
>   #arguments.JOBCONTACTNAME#
>   #arguments.JOBCONTACTEMAIL#
>   #arguments.JOBCONTACTSTATUS#
>   
>   #arguments.JOBCONTACTPHONE#
>   #arguments.JOBCONTACTFAX#
>   #arguments.JOBSHOWRIGHTEYES#
>
> #arguments.JOBRECEIVERIGHTEYES#
>   #arguments.JOBIONUMBER#
>   #arguments.JOBTYPE#
>   #arguments.JOBVERIFICATION#
> 
> 
> 
> 
>
> 
>  file="c:\webroot\6figurejobs\webservices\incoming\newjobupload.xml"
> output="#toString(xmlDoc)#">
>
> 
> 
>   
> 
>
> This runs perfectly, but how do I create one to handle multiple records
> (complex data types)? Please help, my deadline will be here in 4 days.
>
> 

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


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 error pops up, it should show up as a div (which is better IMHO). You 
could probably add a link in there that deletes the div but this should get you 
going. I didn't fix your problem but maybe you just need a better debugging 
handler and use firebug/firefox or chrome and check out the console as others 
have mentioned. 

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


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();
> >
> >
> > But this does not?
> >
> > obj= createObject("component","cfc.MyClass").init(application.id);
> > obj.execute();
> >
> > on cfc...
> >
> > 
> >
> >
> >
> >this.id = arguments.id;
> >
> >
> >
> >
> >
> > 
>
> You need to return the object instance within your init method to use
> object chaining. You should also specify the returntype in your init
> method signature.
>
> 
> ...
> 
> 
>
> Dave Watts, CTO, Fig Leaf Software
> http://www.figleaf.com/
> http://training.figleaf.com/
>
> Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
> GSA Schedule, and provides the highest caliber vendor-authori
>
> 

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


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.id = arguments.id;







I swear I've chained init with arguments before... I've even seen other code 
samples that do it. CFMX8.0.1 

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


Re: Preventing use of remote method by other sites

2010-08-13 Thread Tony Bentley

Yes you are right. I just wasn't sure if you were building an API or
something that would require public access.

On Fri, Aug 13, 2010 at 1:48 PM, Andy Matthews wrote:

>
> But crossdomain policies would prevent it from being accessed via AJAX
> right?
>
>
>
> andy
>
> -----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 method with Ajax so you still need
> to
> verify the request (localhost or otherwise)
>
> On Fri, Aug 13, 2010 at 1:17 PM, Andy Matthews
> wrote:
>
> >
> > Oooh. That's a good idea. Since we're using it for AJAX, then make it
> > so that it 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
> > To: cf-talk
> > Subject: Re: Preventing use of remote method by other sites
> >
> >
> > 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?
> >
> > > output="false">
> >
> >
> >requestHeaders = getHTTPRequestData().headers;
> >if(not StructKeyExists(requestHeaders, "X-Requested-With")){
> > return false;
> >}
> >else if(StructFind(requestHeaders,"X-Requested-With") neq
> > "XMLHttpRequest"){
> >return false;
> >}
> >else{
> >return true;
> >}
> >
> >
> >
> >
> > Called on init:
> >
> >
> >
> >accessRemote = false;
> >cfcname = getmetadata(this);
> >for(i=1;i lte arrayLen(cfcname.FUNCTIONS);i++){
> >fname = cfcname.FUNCTIONS[i];
> >if(fname.name eq url.method && fname.access eq "remote"){
> >accessRemote = true;
> >break;
> >}
> >}
> >if(not isAjax() and not accessRemote){
> >abort();//this is a simple cfabort function for MX
> >}
> >
> >
> >
> >
> > On Fri, Aug 13, 2010 at 11:17 AM, Andy Matthews
> > wrote:
> >
> > >
> > > I have a method that I'm exposing remotely. We'll be using AJAX
> > > calls to insert usability stats about a new application. I'm working
> > > through the code when I realize that since it's remote access,
> > > anyone from any site could post to it and skew our results.
> > >
> > > I'm wondering what's the best way to prevent access to this URL from
> > > any other site, or code. My first thought was to compare the current
> > > URL, dev1 for example, to the URL the request was made from, or
> > > perhaps the IP address. But I'm not sure how to get that information.
> > >
> > > Anyone have ideas?
> > >
> > >
> > >
> > > andy matthews
> > >
> > >
> >
> >
> >
> >
>
>
>
> 

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


Re: Preventing use of remote method by other sites

2010-08-13 Thread Tony Bentley

Any time!

Keep in mind that anyone can call your method with Ajax so you still need to
verify the request (localhost or otherwise)

On Fri, Aug 13, 2010 at 1:17 PM, Andy Matthews wrote:

>
> Oooh. That's a good idea. Since we're using it for AJAX, then make it so
> that it 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
> To: cf-talk
> Subject: Re: Preventing use of remote method by other sites
>
>
> 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?
>
> output="false">
>
>
>requestHeaders = getHTTPRequestData().headers;
>if(not StructKeyExists(requestHeaders, "X-Requested-With")){
> return false;
>}
>else if(StructFind(requestHeaders,"X-Requested-With") neq
> "XMLHttpRequest"){
>return false;
>}
>else{
>return true;
>}
>
>
>
>
> Called on init:
>
>
>
>accessRemote = false;
>cfcname = getmetadata(this);
>for(i=1;i lte arrayLen(cfcname.FUNCTIONS);i++){
>fname = cfcname.FUNCTIONS[i];
>if(fname.name eq url.method && fname.access eq "remote"){
>accessRemote = true;
>break;
>}
>}
>if(not isAjax() and not accessRemote){
>abort();//this is a simple cfabort function for MX
>}
>
>
>
>
> On Fri, Aug 13, 2010 at 11:17 AM, Andy Matthews
> wrote:
>
> >
> > I have a method that I'm exposing remotely. We'll be using AJAX calls
> > to insert usability stats about a new application. I'm working through
> > the code when I realize that since it's remote access, anyone from any
> > site could post to it and skew our results.
> >
> > I'm wondering what's the best way to prevent access to this URL from
> > any other site, or code. My first thought was to compare the current
> > URL, dev1 for example, to the URL the request was made from, or
> > perhaps the IP address. But I'm not sure how to get that information.
> >
> > Anyone have ideas?
> >
> >
> >
> > andy matthews
> >
> >
>
>
>
> 

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


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?




requestHeaders = getHTTPRequestData().headers;
if(not StructKeyExists(requestHeaders, "X-Requested-With")){
 return false;
}
else if(StructFind(requestHeaders,"X-Requested-With") neq
"XMLHttpRequest"){
return false;
}
else{
return true;
}




Called on init:



accessRemote = false;
cfcname = getmetadata(this);
for(i=1;i lte arrayLen(cfcname.FUNCTIONS);i++){
fname = cfcname.FUNCTIONS[i];
if(fname.name eq url.method && fname.access eq "remote"){
accessRemote = true;
break;
}
}
if(not isAjax() and not accessRemote){
abort();//this is a simple cfabort function for MX
}




On Fri, Aug 13, 2010 at 11:17 AM, Andy Matthews wrote:

>
> I have a method that I'm exposing remotely. We'll be using AJAX calls to
> insert usability stats about a new application. I'm working through the code
> when I realize that since it's remote access, anyone from any site could
> post to it and skew our results.
>
> I'm wondering what's the best way to prevent access to this URL from any
> other site, or code. My first thought was to compare the current URL, dev1
> for example, to the URL the request was made from, or perhaps the IP
> address. But I'm not sure how to get that information.
>
> Anyone have ideas?
>
>
>
> andy matthews
>
> 

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


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, Tony Bentley
> wrote:
>
> >
> > 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.
> >
> >
> You can put the /CFIDE/scripts/ folder anywhere you want, just put it
> somewhere (eg /cf-scripts/), and change the setting in ColdFusion
> administrator ("Script Src" on settings page).
>
> --
> Pete Freitag
> http://foundeo.com/ - ColdFusion Consulting & Products
> http://petefreitag.com/ - My Blog
> http://hackmycf.com - Is your ColdFusion Server Secure?
>
>
> 

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


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. 

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


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.method && fname.access eq "remote"){
accessRemote = true;
break;
}
}



Call super.init() on your child cfc's. This only works with methods called via 
URL and do not use only one instance of the parent cfc. 

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


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

2010-07-20 Thread Tony Bentley

ColdSpring has something like what I want but I thought someone might have
something that uses GetMetaData() and then grabs the calling method and then
checks the access and returns it. I'm just not sure how to do it! I dont
want a framework just for this one task.


On Tue, Jul 20, 2010 at 4:59 PM, denstar  wrote:

>
> I'm not 100% sure what you're after, but perhaps ColdSpring's remote
> facade generation stuff would fit the bill?
>
> :Den
>
> --
> Even he, to whom most things that most people would think were pretty
> smart were pretty dumb, 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 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 reflection in Java. Any thoughts?
> >
> > Example:
> >
> > 
> > when this is called bind checkForRemoteness()
> > 
> >
> > 
> > 
> > 
> > 
> > 
> >
> >
>
> 

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


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 reflection in Java. Any thoughts?

Example:


when this is called bind checkForRemoteness() 






 

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


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 ajax call will request the process and when it is
finished, will show the image that will allow the user to download the excel
document.

You can do exactly the same thing where you have a notification saying that
the data is being inserted and then a success message after it is complete.
Be careful not to set up any process that will cancel the request or the
transaction may not complete. In other words, you need to ensure that the
request can still process even if the page is closed or expect incomplete
transactions. You might need to take a look at cftransaction or a sql
transaction statement so you aren't getting partial inserts/updates.

On Mon, Jul 19, 2010 at 8:59 AM, Mike Chabot  wrote:

>
> Some ideas to explore:
> cfhttp with an immediate timeout
> cfthread
> CF Event Gateways
>
> Writing 500 rows to a database table should only take a few
> milliseconds, which would be unnoticeable relative to the amount of
> time you say the page takes to load. If the database is slow for some
> reason, perhaps create a light-weight database table optimized for
> fast inserts.
>
> Trying to spawn another thread for database inserts might not be worth
> it unless the database inserts are noticeably slow.
>
> To optimize calls to external systems, explore the cfthread tag,
> assuming you are using the Enterprise edition of CF.
>
> -Mike Chabot
>
> On Mon, Jul 19, 2010 at 11:18 AM, Che Vilnonis  wrote:
> >
> > I have a script that pulls data from several external sources and returns
> > the top 500 results and takes about 3-5 seconds to render. To speed
> things
> > up, I want to database the results for later use. How can I database the
> > results while the user is viewing the page without the increasing the
> pages
> > render time? In other words, how can I write the data to a database...
> but
> > only after the page has been completely rendered? What would be the best
> way
> > to do this? I'm currently using CF8.
> >
> > Thanks Che
> >
> >
> >
> >
>
> 

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


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-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335307
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


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 assignment 
operators is completely baffling. It makes sense with tags but not with script.

Back on track; Ennio I would be willing to bet there are a number of people 
that can dig up a recipe module and DB schema for you. Just try to be more 
specific to what you need. 

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


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


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 now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:333515
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


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.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:333513
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


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... 

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


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-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:333439
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


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-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:22
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


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


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 they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:333271
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


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.


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


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",
>   dataType: 'json',
>   data: {
>   a: 'andy',
>   b: 'bobby',
>   c: 'charlie',
>   d: 'devon'
>   },
>   type: 'post',
>   success: callBack
>   });
>


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


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,
'TIMESTAMP': time
};
return $.ajax({
url: "mycfc.cfc?method=dbupdate",
dataType: 'json',
data: $("dat").serialize(),
type: 'post',
success: callBack
});

Serialize() seems to return nothing. 

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


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: callBack
});
Where data = ??? I know that when using the coldfusion ajax proxy I need to 
pass argumentCollection as a parameter. Also, one of the arguments is an object 
with different data types. (ie - a.string, a.int, a.boolean, etc)

Obviously the 'data' variable is wrong. Has anyone been able to post data using 
this method? 

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


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? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:332662
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


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


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
 

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


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#)
>
>





>



>
>
>SELECT Team,Logo FROM Teams WHERE (TeamID=#team1#)
>
>





>
>
>







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


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 

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


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 URL and (most
>importantly) pass other variables with it, for example: href="?from=doit&price=PRICEVARIABLEHERE"> and have that link info
>change without refresh right along with the rest of the page?
>

Using javascript you can access the json as a structure; houseDetails.price 
returns 45000.
So basically once the dataset is returned you can use it to build your url 
string.It really helps to use a framework or library that is meant to work with 
json and ajax. Try prototype or jquery.

I can write the following:

document.createElement("a").href="index.cfm?price="+houseDetails.price;


You can also access elements by their id or relative position to other easily 
accessed elements in jQuery or Prototype

So really if your dev guy is a good client side developer, you should handle 
all of the cfc methods for him and have him do all of the javascript and client 
side development. Or are you trying to learn how to write javascript? 

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


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


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 it. Until then 
I'll stick to Aptana and CFEclipse as my primary web based Eclipse plugins. I'm 
just glad Adobe is scratching Dreamweaver. Had they done this sooner I would be 
a lot further in my development experience. 

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


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
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:332039
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


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 House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:332007
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


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 Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331945
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


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


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 know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331831
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


  1   2   3   >