Windows 2008 r2 server(64 bit ) and Web services

2010-09-03 Thread Matthew Allen

Has anyone ran into endless loop problems whilst trying to invoke a web service 
on windows 2008 server? I was barking up the wrong tree at first, I'd wrongly 
assumed that it was the recently upgraded cf9.0.1 that was causing the problems 
but ran the same code on a different server (Windows 2003, 32 bit) with CF9.0.1 
installed and the code ran fine.

It's a simple web service invocation, no error is generated, just endless loop 
till it times out. Any ideas?

cfscript
oBjWs   = CreateObject(webservice, 
http://www.thewebsite/Users.asmx?wsdl;);

//this gets user details by ID..
ObjGetUser  = oBjWs.GetUserByID(theuserID);

variables.getFirstName  = ObjGetUser.getFirstName();
variables.getLastName   = ObjGetUser.getLastName();
variables.getID = ObjGetUser.getUniqueID();
variables.getEmail  = ObjGetUser.getEmail();
variables.getuserID = ObjGetUser.hashCode();

/cfscript

cfdump var=#variables.getFirstName# /



Many thanks,

Matt 

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


Re: Windows 2008 r2 server(64 bit ) and Web services

2010-09-03 Thread Matthew Allen

Success!! if anyone is interested.

On closer inspection of the application logs I found the error below:

Cannot perform web service invocation CheckUserAuthenticates.The fault returned 
when invoking the web service operation is:br preAxisFault faultCode: 
{http://www.w3.org/2003/05/soap-envelope}Server.userException faultSubcode: 
faultString: org.apache.commons.httpclient.NoHttpResponseException: The server 
failed to respond faultActor: faultNode: faultDetail: 
{http://xml.apache.org/axis/}stackTrace:org.apache.commons.httpclient.NoHttpResponseException:
 The server www.boneacademy.com failed to respond at 
org.apache.commons.httpclient.HttpMethodBase.readStatusLine(HttpMethodBase.java:1976)
 at

I googled and found this article written by Tom Jordhal in 2007 
http://tjordahl.blogspot.com/2007/03/apache-axis-and-commons-httpclient.html.

By basically switching the pivot values below
from:
transport name=http 
pivot=java:org.apache.axis.transport.http.CommonsHTTPSender/transport

To this:

transport name=http 
pivot=java:org.apache.axis.transport.http.HTTPSender/transport
restarted the server, everything now works.

Matt 

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


RE: getting server name

2010-09-03 Thread Eric Roberts

Thanks!!!  That did it!!

Eric
-Original Message-
From: Andy Matthews [mailto:li...@commadelimited.com] 
Sent: Thursday, September 02, 2010 1:56 PM
To: cf-talk
Subject: RE: getting server name


Hah! I just implemented this same thing in our system the other day.

This code snippet will return the computer's name:

CreateObject(java, java.net.InetAddress).getLocalHost().getHostName()



andy

-Original Message-
From: Eric Roberts [mailto:ow...@threeravensconsulting.com] 
Sent: Thursday, September 02, 2010 12:44 PM
To: cf-talk
Subject: getting server name


Does anyone know if CF,r via a .NET object even, I can get the server name
(not the domain or IP) to use to differentiate servers in the
application.cfm?  The server name is the one thing that won't change if the
server get changed.  Thanks!

 

Eric







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


Re: Need some fresh eyes on an application

2010-09-03 Thread Paul Day

I have created a test account with the following credentials:

Server name: sql1100.shared-servers.com
Port number: 1086
Username: hof_test
Password: hof_test

I'm not allowed to do anything with the user accounts or adding databases, 
since this is on a shared database hosting server.

All interested are encouraged to play around and offer any feedback. Remember 
this is a work in progress, so a lot of functionality is yet to be added.

Thanks,
Paul

Paul Day 
 Owner/Principal Architect

phone: 410.241.8465
email:  p...@nucomsolutions.com
web: http://www.nucomsolutions.com/

 



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


Re: Need some fresh eyes on an application

2010-09-03 Thread Paul Day

(Sorry, forgot the demo URL...)

I have created a test account with the following credentials:

Demo URL: http://www.nucomsolutions.com/dbDiscover
Server name: sql1100.shared-servers.com
Port number: 1086
Username: hof_test
Password: hof_test

I'm not allowed to do anything with the user accounts or adding databases, 
since this is on a shared database hosting server.

All interested are encouraged to play around and offer any feedback. Remember 
this is a work in progress, so a lot of functionality is yet to be added.

Thanks,
Paul

Paul Day 
 Owner/Principal Architect

phone: 410.241.8465
email:  p...@nucomsolutions.com
web: http://www.nucomsolutions.com/

 



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


Bind issues - observation

2010-09-03 Thread Stephens, Larry V

I'm sure this isn't news to most of you but perhaps there are one or two people 
out there struggling with CF and Ajax.

Rewriting an application for CF that was originally done in Access has some 
challenges. Among them is display fields that are updated by an associated 
field. In my case (and this dates back to when space was an issue and dBase was 
a space hog) I didn't store (as one example) city, state and county information 
but linked it to the zipcode combobox. Select a different zipcode or add a new 
one (new oes are created, but I'm being generic here - this applies to other 
types of linked data) and the combobox query populated your related fields in a 
snap.

CF, for obvious reasons, isn't as simple. I turned to binding.

Part of my problem is having to use IE. We use ADS authentication and this app 
needs to be behind that for security. Mozilla chokes on ADS - at least here. 
But IE doesn't have anything as good as Firebug. (If I am wrong in saying this 
*please* point me to the tool.)

After manipulating some stuff I temporarily moved the app out of the ADS area 
and opened it with Mozilla.  Thanks to some posts I found with Google and some 
advice from Tony Bentley and Raymond Camden I checked the XHR return values and 
found what was causing the errors.

The error was thrown because of a bad JSON string. So, two pieces of advice: 
one problem was in Application.cfm. An old, old remark was html-remarked (!-- 
--) not CF-remarked and that was getting returned in the JSON string. The 
other issue was a footer file and another line of code in the OnRequestEnd.cfm  
I had to go to a blank OnRequestEnd file. I don't recall that bit of advice 
anywhere in the CF docs.

All is still not well. One variable return is nothing by cfdump CSS code 
despite there being no cfdump being used. I'm still figuring that out.

One person advises looking at jquery instead of Ajax. We'll be trying that

Thanks to those who helped.

Larry Stephens

~|
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:336806
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 Steve Milburn

Check out Firebug Lite that works among all major browsers, including IE -
http://getfirebug.com/firebuglite
http://getfirebug.com/firebuglite

On Fri, Sep 3, 2010 at 11:18 AM, Stephens, Larry V steph...@indiana.eduwrote:


 I'm sure this isn't news to most of you but perhaps there are one or two
 people out there struggling with CF and Ajax.

 Rewriting an application for CF that was originally done in Access has some
 challenges. Among them is display fields that are updated by an associated
 field. In my case (and this dates back to when space was an issue and dBase
 was a space hog) I didn't store (as one example) city, state and county
 information but linked it to the zipcode combobox. Select a different
 zipcode or add a new one (new oes are created, but I'm being generic here -
 this applies to other types of linked data) and the combobox query populated
 your related fields in a snap.

 CF, for obvious reasons, isn't as simple. I turned to binding.

 Part of my problem is having to use IE. We use ADS authentication and this
 app needs to be behind that for security. Mozilla chokes on ADS - at least
 here. But IE doesn't have anything as good as Firebug. (If I am wrong in
 saying this *please* point me to the tool.)

 After manipulating some stuff I temporarily moved the app out of the ADS
 area and opened it with Mozilla.  Thanks to some posts I found with Google
 and some advice from Tony Bentley and Raymond Camden I checked the XHR
 return values and found what was causing the errors.

 The error was thrown because of a bad JSON string. So, two pieces of
 advice: one problem was in Application.cfm. An old, old remark was
 html-remarked (!-- --) not CF-remarked and that was getting returned in
 the JSON string. The other issue was a footer file and another line of code
 in the OnRequestEnd.cfm  I had to go to a blank OnRequestEnd file. I don't
 recall that bit of advice anywhere in the CF docs.

 All is still not well. One variable return is nothing by cfdump CSS code
 despite there being no cfdump being used. I'm still figuring that out.

 One person advises looking at jquery instead of Ajax. We'll be trying that

 Thanks to those who helped.

 Larry Stephens

 

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


Re: mySQL data types - possible db bloat with text type? yes or no?

2010-09-03 Thread Michael Grant

*bump*

No one has any insight into this? Please please please.

On Thu, Sep 2, 2010 at 11:47 AM, Michael Grant mgr...@modus.bz wrote:

 Normally I use MSSQL but the shop I'm at uses mySQL. I've always built my
 db's so that the field best matches the data going into it.

 As an example if I was storing some text data that was max 1000 chars I
 would use varchar(1000) and not a blob type. I've always thought that this
 prevented bloating. However I've just been told something that contradicts
 this and I'm wondering what you experts say. Is using the TEXT datatype
 completely variable how long it it? So if I insert a single character into a
 tinytext, text, mediumtext or longtext field it will only take up that much
 room in the db? Is that 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:336808
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: mySQL data types - possible db bloat with text type? yes or no?

2010-09-03 Thread Russ Michaels

With MSSQL you are limited to about 8000 bytes per row and anything beyond
this will be chopped, so you need to be careful how much data you are
storing. Using BLOBS will overcome this as a pointer to the blog is the only
thing stored in the row, and the blog is actually stored separately. Using
datatypes of specific lengths does indeed only take up the space used, but
other factors affect thr storage such as page sizes.
This paging applies to mysql as well, but I have never looked too deeply
into it as I find MySQL very flaky and poor in performance compared to MSSQL
so only use it when I have to, such as when I am using PHP apps..
I think this site will help you though., here is a post specifically about
page sizes, but check the rest of the site too.

http://www.mysqlperformanceblog.com/2006/06/04/innodb-page-size/

You also need to make sure you are using the correct table type (MYISAM or
INNODB)

--
Russ Michaels
www.cfmldeveloper.com - Supporting the CF community since 1999
FREE ColdFusion/Railo hosting for developers.

blog: www.michaels.me.uk


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


Re: mySQL data types - possible db bloat with text type? yes or no?

2010-09-03 Thread Won Lee

On Fri, Sep 3, 2010 at 12:04 PM, Michael Grant mgr...@modus.bz wrote:


 *bump*

 No one has any insight into this? Please please please.

 On Thu, Sep 2, 2010 at 11:47 AM, Michael Grant mgr...@modus.bz wrote:

  Normally I use MSSQL but the shop I'm at uses mySQL. I've always built my
  db's so that the field best matches the data going into it.
 
  As an example if I was storing some text data that was max 1000 chars I
  would use varchar(1000) and not a blob type. I've always thought that
 this
  prevented bloating. However I've just been told something that
 contradicts
  this and I'm wondering what you experts say. Is using the TEXT datatype
  completely variable how long it it? So if I insert a single character
 into a
  tinytext, text, mediumtext or longtext field it will only take up that
 much
  room in the db? Is that correct?



It's not as simple as you think it is.  I don't know the answer for sure but
this is what I know.

Assuming mySQL...How much space something takes is dependent on the type of
engine you select.  The common ones are innodb, myISAM, and the perconaDB.
As far I remember the innodb takes more space because it has more features
and can't be compressed.

Looking at myISAM, which by the way is probably not the engine you want for
any transaction based db, you would use one (1) more bytes over a
varchar(1000).  So if storing i piece of data as a varchar(1000) that was
299 cahr longs it would take 300 bytes it would take 301 bytes if you had
typed is as a text.  That is true up to 65536 bytes.  then the storage
requirements changes.

recap: in your case if you were using myISAM the text type would use 1 more
byte than the varchar(1000).  Things like char encoding like UTF or latin
will impact it as well.


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


Re: mySQL data types - possible db bloat with text type? yes or no?

2010-09-03 Thread Michael Grant

Thanks. Other than the 1 extra byte thing...
if I'm using MyISAM and assumming I have a string that's 150 characters is
there any advantage to using varchar(150) over say TEXT or any of the other
text type fields? that's what I'm trying to get at.

So is a table that's got 20 TEXT datatype fields going to be the same as a
table that has 20 varchar(x) fields?


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


Re: mySQL data types - possible db bloat with text type? yes or no?

2010-09-03 Thread Won Lee

On Fri, Sep 3, 2010 at 12:23 PM, Michael Grant mgr...@modus.bz wrote:


 Thanks. Other than the 1 extra byte thing...
 if I'm using MyISAM and assumming I have a string that's 150 characters is
 there any advantage to using varchar(150) over say TEXT or any of the other
 text type fields? that's what I'm trying to get at.

 So is a table that's got 20 TEXT datatype fields going to be the same as a
 table that has 20 varchar(x) fields?


There is an advantage in using varchar over text and it is performance.
Because  text type is written in a different area of the memory that the row
buffer there may be a slight performance hit because it needs to do a
harddrive read/write.  I guess like your does ## impact performance thread
it depends on the data you are storing.  But let me say that you are much
more likely to see this performance hit.  I also believe that varchar can be
indexed while text can't.

I'm a little hazy on remembering everything right now cause I moved to an
Oracle shop.


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


Re: mySQL data types - possible db bloat with text type? yes or no?

2010-09-03 Thread Michael Grant

thank you sir.

On Fri, Sep 3, 2010 at 12:34 PM, Won Lee won...@gmail.com wrote:


 On Fri, Sep 3, 2010 at 12:23 PM, Michael Grant mgr...@modus.bz wrote:

 
  Thanks. Other than the 1 extra byte thing...
  if I'm using MyISAM and assumming I have a string that's 150 characters
 is
  there any advantage to using varchar(150) over say TEXT or any of the
 other
  text type fields? that's what I'm trying to get at.
 
  So is a table that's got 20 TEXT datatype fields going to be the same as
 a
  table that has 20 varchar(x) fields?
 
 
 There is an advantage in using varchar over text and it is performance.
 Because  text type is written in a different area of the memory that the
 row
 buffer there may be a slight performance hit because it needs to do a
 harddrive read/write.  I guess like your does ## impact performance
 thread
 it depends on the data you are storing.  But let me say that you are much
 more likely to see this performance hit.  I also believe that varchar can
 be
 indexed while text can't.

 I'm a little hazy on remembering everything right now cause I moved to an
 Oracle shop.


 

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


Authorization and Security for a web service

2010-09-03 Thread Ian Skinner

  I do enjoy when I get to branch out and do things I've never done before.

We are getting deep into the planning stage of a new project that will 
be a web service to be consumed by an outside agency to integrate their 
data systems with ours.

We will want there to be security and authorization so that our system 
has a reasonable assurance that the submitted data only comes from their 
system.  I'm pretty sure there are several ways to do this, but I have 
never done anything like it before.  So I'm hoping some of you can point 
me to any good information on what we need to think about?  How we might 
do this.  What the process and code might look like to implement.  
Information along those lines.

A couple of ideas that have already been raised.  We creating a 
public|private key that they use to connect to our server as well as 
standard user name|password authentication.

Thanks
Ian


~|
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:336814
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: Bind issues - observation

2010-09-03 Thread Stephens, Larry V

Thanks. I do understand most of this and do use javascript in many cases. Looks 
like I need to bone up on jquery. 


 

-Original Message-
From: Tony Bentley [mailto:cascadefreehee...@gmail.com] 
Sent: Friday, September 03, 2010 1:13 PM
To: cf-talk
Subject: Re: Bind issues - observation


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


RE: Moving to Apache

2010-09-03 Thread Steve LaBadie

Russ,

We tried both ISAPI_rewrite3_0075_lite and ISAPI_rewrite3_0069_lite with
no luck. I am not sure how you know the difference between what rules
WordPress is giving you (Apache/IIS).

Steve LaBadie, Web Manager
East Stroudsburg University
200 Prospect St.
East Stroudsburg, Pa 18301
570-422-3999
http://www.esu.edu
slaba...@po-box.esu.edu
-Original Message-
From: Russ Michaels [mailto:r...@michaels.me.uk] 
Sent: Thursday, September 02, 2010 3:37 PM
To: cf-talk
Subject: Re: Moving to Apache


make sure you are using Isapi rewrite 3 and not 2 as only 3 works with
apache rules
make sure wordpress is giving you the Apache rules and not the IIS
rules.
If it is causing you that much grief, it probably will just be easier to
give Apache a try. However I would recommend upgrading to windows
2008/IIS7
as it is better in many ways, it is however significantly different and
does
have a fair old learning curve.



--
Russ Michaels
www.cfmldeveloper.com - Supporting the CF community since 1999
FREE ColdFusion/Railo hosting for developers.

blog: www.michaels.me.uk




~|
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:336817
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 Rick Faircloth

Amen to jQuery!

-Original Message-
From: Tony Bentley [mailto:cascadefreehee...@gmail.com] 
Sent: Friday, September 03, 2010 1:13 PM
To: cf-talk
Subject: Re: Bind issues - observation


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


RE: Moving to Apache

2010-09-03 Thread Terry Troxel

I would love to install Apache on my laptop/windows7 for a development
server, 
but have no idea how to set it up where I can put the 192.168.1.8
testdomain.com
in the hosts file and then add the website in Apache because IIS only allows
1 default
site unless its running on a server.

Anyone have any suggestions here (positive ones)?

Terry



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


Re: Moving to Apache

2010-09-03 Thread Russ Michaels

Terry,

you edit the hosts file exactly as you do now, it makes no difference that
you are using Apache. The hosts file is simply telling your machine to
resolve a domain to a specific IP address, e.g. your local machine.
IIS6 only allows 1 site to be active at a time, but you can have multiple
sites and switch between them, here is a free tool to make that easier.
http://www.jetstat.com/iisadmin/
IIS7 does not have this restriction, neither does Apache.



On Fri, Sep 3, 2010 at 6:57 PM, Terry Troxel te...@it-werks.com wrote:


 I would love to install Apache on my laptop/windows7 for a development
 server,
 but have no idea how to set it up where I can put the 192.168.1.8
 testdomain.com
 in the hosts file and then add the website in Apache because IIS only
 allows
 1 default
 site unless its running on a server.

 Anyone have any suggestions here (positive ones)?

 Terry



 

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


Re: Moving to Apache

2010-09-03 Thread Russ Michaels

Steve.

The difference is quite obvious. If you are using the latest wordpress then
i'm quite sure it detects your webserver and gives you the right rules, but
as IIS6 has no such feature then it may not be detecting either.
The IIS rules are web.config entries, the Apache rules are htacces sentries.
If you google them both you will find examples of each.


Russ

On Fri, Sep 3, 2010 at 6:42 PM, Steve LaBadie slaba...@po-box.esu.eduwrote:


 Russ,

 We tried both ISAPI_rewrite3_0075_lite and ISAPI_rewrite3_0069_lite with
 no luck. I am not sure how you know the difference between what rules
 WordPress is giving you (Apache/IIS).

 Steve LaBadie, Web Manager
 East Stroudsburg University
 200 Prospect St.
 East Stroudsburg, Pa 18301
 570-422-3999
 http://www.esu.edu
 slaba...@po-box.esu.edu
 -Original Message-
 From: Russ Michaels [mailto:r...@michaels.me.uk]
 Sent: Thursday, September 02, 2010 3:37 PM
 To: cf-talk
 Subject: Re: Moving to Apache


 make sure you are using Isapi rewrite 3 and not 2 as only 3 works with
 apache rules
 make sure wordpress is giving you the Apache rules and not the IIS
 rules.
 If it is causing you that much grief, it probably will just be easier to
 give Apache a try. However I would recommend upgrading to windows
 2008/IIS7
 as it is better in many ways, it is however significantly different and
 does
 have a fair old learning curve.



 --
 Russ Michaels
 www.cfmldeveloper.com - Supporting the CF community since 1999
 FREE ColdFusion/Railo hosting for developers.

 blog: www.michaels.me.uk




 

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


Re: Authorization and Security for a web service

2010-09-03 Thread Eric Cobb

Check out these presentations by Simone Free.  He's got some really good 
pointers in them.

http://www.simonfree.com/presentations/cfobjective.html
http://www.simonfree.com/presentations/cfunited-09---washington-dc.html
http://www.simonfree.com/presentations/nashville-cfug.html

Thanks,

Eric Cobb
ECAR Technologies, LLC
http://www.ecartech.com
http://www.cfgears.com



Ian Skinner wrote:
   I do enjoy when I get to branch out and do things I've never done before.

 We are getting deep into the planning stage of a new project that will 
 be a web service to be consumed by an outside agency to integrate their 
 data systems with ours.

 We will want there to be security and authorization so that our system 
 has a reasonable assurance that the submitted data only comes from their 
 system.  I'm pretty sure there are several ways to do this, but I have 
 never done anything like it before.  So I'm hoping some of you can point 
 me to any good information on what we need to think about?  How we might 
 do this.  What the process and code might look like to implement.  
 Information along those lines.

 A couple of ideas that have already been raised.  We creating a 
 public|private key that they use to connect to our server as well as 
 standard user name|password authentication.

 Thanks
 Ian


 

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


Preserve HTML format when inserting into HTML

2010-09-03 Thread Jake Munson

I have an XML object that was populated from an XML file.  This XML comes from 
an external system that I do not control.  Here is the bit of XML that I'm 
struggling with:
parks
  park
SiteAbstract
  ![CDATA[font color=#045172bLoveridge Bridge North/b/font]]
/SiteAbstract
  /park
/parks
I know this is valid XML...at least it works in the system that uses it.

I am trying to write an updated value to this SiteAbstract tag, and the result 
will show up in this external system.  As you can see, the HTML inside the tag 
is NOT htmlencodedformat, it's just plain HTML.  Since SiteAbstract is using 
the CDATA tag, this is fine.

The trouble is that when I try to insert HTML into this tag, ColdFusion is 
converting the HTML to entity tags.  Normally this would be fine, as people 
usually don't want plain HTML in XML.  But with this external system I need to 
preserve the HTML as is.  I have googled and dug in the docs for a while now 
and I can't find a way to force ColdFusion to leave the HTML as is.

The only solution I have come up with (and this is NOT what I'd prefer to do) 
is to do cfloop file=myXMLfile.xml, search for the XML tag I need to update 
(this part will be painful) and then manually change the XML tag contents and 
save the XML to disk.

Any better ideas? 

~|
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:336823
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 Andrew Scott

Or even cfajaxproxy built into ColdFusion.

Check these tutorials out.

http://www.andyscott.id.au/2010/8/27/How-to-handle-ColdFusion-session-time-o
uts-with-Ajax-calls-and-ExtJS
http://www.andyscott.id.au/2010/7/25/ColdFusion-and-populating-a-dropdown-ba
sed-on-the-selection-of-another


Regards,
Andrew Scott
http://www.andyscott.id.au/


 -Original Message-
 From: Stephens, Larry V [mailto:steph...@indiana.edu]
 Sent: Saturday, 4 September 2010 3:38 AM
 To: cf-talk
 Subject: RE: Bind issues - observation
 
 
 Thanks. I do understand most of this and do use javascript in many cases.
 Looks like I need to bone up on jquery.
 
 
 
 
 -Original Message-
 From: Tony Bentley [mailto:cascadefreehee...@gmail.com]
 Sent: Friday, September 03, 2010 1:13 PM
 To: cf-talk
 Subject: Re: Bind issues - observation
 
 
 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:336816
 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
 Unsubscribe: http://www.houseoffusion.com/groups/cf-
 talk/unsubscribe.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:336824
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: Moving to Apache

2010-09-03 Thread Terry Troxel

Terry,

you edit the hosts file exactly as you do now, it makes no difference that
you are using Apache. The hosts file is simply telling your machine to
resolve a domain to a specific IP address, e.g. your local machine.
IIS6 only allows 1 site to be active at a time, but you can have multiple
sites and switch between them, here is a free tool to make that easier.
http://www.jetstat.com/iisadmin/
IIS7 does not have this restriction, neither does Apache.

Thanks Russ, but if I understand you right the tool you mention works with
XP not win7.
I have CF8 installed with the development server set to port 80, because I
tried to install IIS7
And then saw all the posts saying installing Coldfusion with IIS7 was a
nightmare and try as I
Might I couldn't get it to work. Has anything changed? If so I am game to
try again.

Terry



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