Re: Framework + Ajax?

2006-06-23 Thread Terry L Schmitt
I'm using Fusebox and Prototype for some AJAX style interfaces. I 
essentially built my own server-side piece to handle the JSON data.

I use conditional layouts. One full layout for normal web pages, including 
all the nav, js and css. The other layout is bare bones and returns a JSON 
object. This object starts life as a CF structure that contains error data 
and the contents. I also use http status codes to communicate back to the 
browser. 500 is for an untrapped CF error and 403 is for a security 
violation. My client side JS captures this and handles is appropriately.

My initial layout gets created using the full layout and the AJAX calls 
get the JSON data. I'm using a URL parameter to make the distinction, but 
you could easily detect the Prototype identifer in the header. I prefer 
the URL parameter, as it is much easier for troubleshooting. If I am 
getting errors I can paste the URL in the browser, minus the parameter, 
and instantly get the whole layout. This generally will show me the CF 
error in plain HTML.

Examples: 
index.cfm?event=listContacts -- would return the contact list surrounded 
by your normal layout
index.cfm?event=listContactsisAjax=1 -- would return the raw contact 
list as JSON, XML, or what ever.
I don't use MachII, so this URL may not be sound, but I think you can see 
what I'm doing .

Terry




Jeff Chastain [EMAIL PROTECTED] wrote on 06/22/2006 07:35:01 PM:

 How does a framework, say Mach-II (although I see the same issue with
 Model-Glue or FuseBox), work with Ajax?  I can see easily how you could 
make
 a call via Ajax to index.cfm?event=listContacts which would return HTML,
 JSON, or whatever to rebuild a portion of the page.  The question I am
 running into is how does the initial interface get built ... in other 
words
 all of the layout, header, navigation, etc.?
 
 There has got to be something basic here that I am missing, but I am 
just
 not seeing this.
 
 Thanks
 -- Jeff
 
 
 
 

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


Re: Tabbed forms interface

2006-06-23 Thread Terry L Schmitt
I've used this on numerous projects.
http://webfx.eae.net/dhtml/tabpane/tabpane.html

Check out the various styles as they vary quite a bit.

Terry




Richard Colman [EMAIL PROTECTED] wrote on 06/23/2006 01:37:06 
PM:

 Hi,
 
 What is the EASIEST and FASTEST way to create a prototype TABBED 
interface
 to be able to run separate forms in each tab?
 
 Suggestions appreciated since this is my first attempt and running out 
of
 time ...
 
 Rick Colman



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


RE: CF-based photo sharing app?

2006-06-14 Thread Terry L Schmitt
I've never seen a robust CF photo sharing app. My most recent adventure, 
since I'm using a VPS with Bluedragon and PHP, is to use DAlbum. It's PHP, 
but who cares, it works! It is totally file driven with no database. FTP 
the files to the server and run a php script to re-index. Pretty simple. A 
CF equivalent could easily be written, but who has the time...

This could be an option if you have access to PHP. There are several more 
robust PHP examples as well.

Terry

Burns, John D [EMAIL PROTECTED] wrote on 06/14/2006 11:53:12 AM:

 Rick-
 
 I've been tinkering with the same kind of thing. I haven't gotten very
 far though. My thing is that I take a ton of pictures and have people
 ask me if they can get copies. I'd like to do something where I could
 upload via ftp or something and then have galleries created where people
 can view thumbnails, a large view and then have the option to download
 the full photo if they'd like so that they can get prints made. I was
 thinking it'd be cool to have multiple accounts as well so other
 people could do the same. It all makes sense in my head, just hasn't
 made it into CF yet. Let me know if you find anything good. 
 
 
 John Burns
 Certified Advanced ColdFusion MX Developer
 Wyle Laboratories, Inc. | Web Developer
 
 


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


Re: Printing from CF / Browser

2006-06-13 Thread Terry L Schmitt
I would use CFREPORT for this. It gives you all the page control that you 
need and more.


Jenny Gavin-Wear [EMAIL PROTECTED] wrote on 06/13/2006 
05:04:50 AM:

 Hi all,
 
 I have an application for a delivery company that generates a bunch 
 of consignment notes to be printed.
 
 I'd like to be able to send the job to print from IE, or to have a 
 pdf created on the fly which can then be printed.
 
 My basic problem is page feeds.  Currently I am generating one long 
 page of consignments, is there some way of coding it to send a page 
 feed after each record, please?
 
 Many thanks in advance,
 
 Jenny
 
 

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


Re: CFHTTP / SSL and Secpay Payments

2006-06-13 Thread Terry L Schmitt
I don't program for payments, but cfhttp is communication between your 
server and secpay and has nothing to do with what is displayed on the 
users browser.
If you are accepting CC information, then your web server and forms should 
be secured, in which case you would see the appropriate lock icon in 
your browser.

Terry





Spydersweb Internet Solutions [EMAIL PROTECTED] wrote on 
06/13/2006 10:07:03 AM:

 Dear All
 
 I am utilising a SECPAY payment authorisation service to process client 
 payments.
 
 I collect data via a form, do a database insert with it and then do a 
cfhttp 
 post to Secpay's Secure server.
 
 I have only just noticed that when I do the post I do not get to see the 

 https in the url nor do I see the secure lock in the bottom part of the 
 browser window.
 
 I therefore have two questions:
 
 1) Is the connection still secure to the secpay server?
 2) Is it possible to show the https or the padlock in the bottom of the 
 browser window?
 
 Code listing:
 
 cfhttp method=Post
 url=https://www.secpay.com/java-bin/ValCard;
 cfhttpparam name=merchant type=formfield 
value=#REQUEST.merchant#
 cfhttpparam name=trans_id type=formfield 
value=#REQUEST.trans_id#
 cfhttpparam name=amount type=formfield 
value=#REQUEST.field_amount#
 cfhttpparam name=callback type=formfield 
value=#REQUEST.callback#
 cfhttpparam name=test_status type=formfield value=live
 cfhttpparam name=template type=formfield 
 value=http://www.secpay.com/users/digita02/temp.html;
 cfhttpparam name=options type=formfield value=cb_post=true
 cfhttpparam name=currency type=formfield 
 value=#Request.field_currency#
 cfhttpparam name=bill_name type=formfield 
value=#REQUEST.field_name#
 cfhttpparam name=bill_company type=formfield 
 value=#REQUEST.field_company#
 cfhttpparam name=bill_email type=formfield 
 value=#REQUEST.field_email#
 cfhttpparam name=bill_tel type=formfield 
value=#REQUEST.field_phone#
 cfhttpparam name=bill_addr_1 type=formfield 
 value=#REQUEST.field_address1#
 cfhttpparam name=bill_addr_2 type=formfield 
 value=#REQUEST.field_address2#
 cfhttpparam name=bill_city type=formfield 
value=#REQUEST.field_town#
 cfhttpparam name=bill_state type=formfield 
 value=#REQUEST.field_county#
 cfhttpparam name=bill_post_code type=formfield 
 value=#REQUEST.field_postcode#
 cfhttpparam name=bill_country type=formfield 
 value=#REQUEST.field_country#
 cfhttpparam name=mail_merchants type=formfield 
 value=[EMAIL PROTECTED]:[EMAIL PROTECTED]
 cfhttpparam name=mail_attach_customer type=formfield value=false
 cfhttpparam name=mail_attach_merchant type=formfield value=false
 cfhttpparam name=mail_customer type=formfield value=true
 cfhttpparam name=mail_subject type=formfield value=MacVideo: Order 

 Confirmation #REQUEST.trans_id#
 /cfhttp
 html
 head
 title/title
 /head
 body
 cfoutput
 #cfhttp.filecontent#br
 /cfoutput
 /body
 /html
 
 Any help offered is greatly appreciated.
 
 regards
 Graham Cole
 [EMAIL PROTECTED] 
 
 
 

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


Re: CFFile copy, bigtime permissions issue..

2006-06-12 Thread Terry L Schmitt
I haven't had to try this with CF, but with SQL Server, we use Domain 
Accounts to run all the services and perform similar file copy functions. 
You can then grant the Domain account the appropriate permissions on all 
the servers.

Terry






J W [EMAIL PROTECTED] 
06/12/2006 03:04 PM
Please respond to
cf-talk@houseoffusion.com


To
CF-Talk cf-talk@houseoffusion.com
cc

Subject
CFFile copy, bigtime permissions issue..






Man has this been driving me up a wall today

Here is how it worked.
CFFILE copy a file from webserver1 to webserver2 from webserver2. Just a
plain windows workgroup, both running windows 2000 server, and mx6.1.
Coldfusion running from the local account.
\\srv-webserver1\whateverdirectory\file.txt type paths.

Here is how its all screwed up. :)

I replaced Webserver1 with a new windows 2003 standard webserver w/ all 
new
hardware and renamed it differently. I also hooked both up to join our
office domain.

Now when I cffile copy over I get this

The cause of this exception was: java.io.FileNotFoundException:
\\srv-webserver1\I_DRIVE\Export\somedirectory\whatever.txt (Access is
denied).

I am guessing permissions. Here is the kicker. Can browse to that file and
have it come up in a text editor no problem, but I get this permissions
error with cold fusion. I have tried every which way but sunday to try to
get this right and still it gives me this error. I am about to rip my hair
out...



ANyone else run into this and how did you solve it?? any help would be
appreciated. Need more details, let me know.

THanks,
Jeff




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


OT: ampersand in file name

2006-06-08 Thread Terry L Schmitt
I feel kinda goofy having to ask this...
I have a forum that allows attachments and downloading. I use 
URLEncodedFormat() for the file name, but when a file contains an 
ampersand, the user just gets a 404 error when trying to dl the file.

URLEncodedFormat() escapes the ampersand to %26 so the URL would be 
test1%261%2Edoc.
I've googled around and the consensus is that %26 should work, but it 
doesn't. Am I just going crazy or is this an IIS problem or should I just 
bite the bullet and not allow use of the ampersand character in uploaded 
file names?

T

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


RE: ampersand in file name - SOLUTION

2006-06-08 Thread Terry L Schmitt
Well... I figured it out. I wasn't going crazy, but the URLScan Tool was 
sure trying!
URLScan is installed on our web servers, which is blocking the requests 
with the escaped ampersand. It simply returns a 404 error, but shows 
rejected-by-urlscan in the IIS logs.

My solution will probably be to restrict special characters in uploaded 
file names.







Kevin Aebig [EMAIL PROTECTED] 
06/08/2006 02:33 PM
Please respond to
cf-talk@houseoffusion.com


To
CF-Talk cf-talk@houseoffusion.com
cc

Subject
RE: ampersand in file name






Why not just swap out the character to a _?

!k

-Original Message-
From: Terry L Schmitt [mailto:[EMAIL PROTECTED] 
Sent: June 8, 2006 12:18 PM
To: CF-Talk
Subject: OT: ampersand in file name

I feel kinda goofy having to ask this...
I have a forum that allows attachments and downloading. I use 
URLEncodedFormat() for the file name, but when a file contains an 
ampersand, the user just gets a 404 error when trying to dl the file.

URLEncodedFormat() escapes the ampersand to %26 so the URL would be 
test1%261%2Edoc.
I've googled around and the consensus is that %26 should work, but it 
doesn't. Am I just going crazy or is this an IIS problem or should I just 
bite the bullet and not allow use of the ampersand character in uploaded 
file names?

T





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


Re: Document Upload/Retrieval Security

2006-06-01 Thread Terry L Schmitt
Regarding items 1 and 2.
Since it's Federal, there may be security requirements already established 
for storage and transmittal of classified data. I'd research that some if 
you can.

Terry



This is a PRIVATE message. If you are not the intended recipient, please 
delete without copying and kindly advise us by e-mail of the mistake in 
delivery. NOTE: Regardless of content, this e-mail shall not operate to 
bind CSC to any order or other contract unless pursuant to explicit 
written agreement or government initiative expressly permitting the use of 
e-mail for such purpose.





Peter Legg [EMAIL PROTECTED] 
06/01/2006 12:16 PM
Please respond to
cf-talk@houseoffusion.com


To
CF-Talk cf-talk@houseoffusion.com
cc

Subject
Document Upload/Retrieval Security






Hi,

I've got a fed govt project where I need to allow for sensitive documents 
(pdf, doc, wpd, gif, tiff, xls, txt - anything really) to be uploaded via 
a secure (uname/pwd) CF app (6.1 currently) using SSL.  I have a number of 
questions:

1) Is SSL (128-bit) secure enough for the upload/download/viewing of these 
documents?

2) Depending on #1, would you store the docs in the SQL Server 2000 
database as image data type or on the file system with metadata and 
pointers to the files in a database table?  Please explain your opinion.

3) The client would like to be able to view several documents in a browser 
at the same time, possibly all docs related to a case, so that he/she can 
scroll through everything w/o having to open one doc at a time.  Is this 
possible?  Are there COTS products out there that you recommend?

4) The client would also like to search the documents.  I've assumed that 
any scanned documents would have to be converted to PDF using OCR in order 
to be searchable using Verity (using the file system approach).  Is that 
correct?  Is Adobe's OCR product worthwhile?  Are there other COTS 
products that are better?

TIA, Peter



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


RE: Big SQL security hole at Crystaltech?

2006-05-10 Thread Terry L Schmitt
So what's this got to do with CrystalTech and SQL Server?



This is a PRIVATE message. If you are not the intended recipient, please 
delete without copying and kindly advise us by e-mail of the mistake in 
delivery. NOTE: Regardless of content, this e-mail shall not operate to 
bind CSC to any order or other contract unless pursuant to explicit 
written agreement or government initiative expressly permitting the use of 
e-mail for such purpose.





Mark A Kruger [EMAIL PROTECTED] 
05/10/2006 10:28 AM
Please respond to
cf-talk@houseoffusion.com


To
CF-Talk cf-talk@houseoffusion.com
cc

Subject
RE: Big SQL security hole at Crystaltech?






Jacob,

That was me, and I did not use the word fanatic. I was responding to
someone who declared themselves a linux snob. I was only speaking from
personal experience. There are 6 developers here and we use a lot of
technologies. No one has anything bad to say about Linux and we use it 
for
specific purposes. So, from my perspective it's true. Windows folks are 
less
prone to sling mud on Linux than Linux on Windows. My point (wich I did 
not
explain very well), is that this has more to do with the power
differential than the merits of the OS.

Please allow me to indulge in a little analogy

--
In sociological terms when a large power differential exists between 2
groups, it unites the minority group or entity under a banner of a common
enemy and necessitates a higher level of loyalty.  That may be what is
happening here. A Windows user, being a part of the establishment power, 
can
live without Linux and it doesn't appreciably affect his life. He can 
dabble
in Linux Culture and spend time in the Linux neighborhood. He can choose
to engage Linux users, or he can pretend they don't exist. Either way his
life isn't affected to a great degree. He even has the luxury of saying
some of my best friends are Linux Users :) 

Meanwhile a Linux user can't get away from Windows no matter how hard they
try. The people they are forced to work for use windows. Developers 
writing
applications on Linux must first make sure they work for windows users.
Files come in windows formats, applications are released on windows and
ported to Linux as an afterthought. They see the windows OS in power terms 
-
a corrupt institution based on a poor operating system that magically took
away power rightly belonging to the peoples while Linux has come (in the
words of George Hamilton in Zorro the gay blade) to defend the
defensless, and defeat the feetless. 

So my point was that windows users, being in a position of power, can 
take
it or leave it without  getting up in arms about it - while Linux folks
feel like it is necessary to fight every battle in order to make any
headway.



Now please understand the analogy only works to a point. There is no 
moral
quality to Linux - no high road. It's just an operating system for gosh
sakes :)   So I'm not saying that Linus Torvalis is the modern day
equivelent of Martin Luther King. I'm only pointing out that the idea of a
power differential - when the margin is great enough - has a predictable
effect, as I think it does in this case. 

-Mk




-Original Message-
From: Munson, Jacob [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 10, 2006 8:39 AM
To: CF-Talk
Subject: RE: Big SQL security hole at Crystaltech?

 That's kinda like UNIX/Linux fans who will use Unix based stuff no 
 matter how much of a PIA it is, right?

My post previous to the one you replied to stated this point exactly.
There are fanatical users in every camp.  I was just responding to an
accusation that there are only Linux fanatics, but no Microsoft fanatics. 
I
don't remember who it was, but he was professing that Microsoft users will
try all the options out there, while Linux users will shun Microsoft at 
all
costs.






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


Re: Fusebox 4 on CF 5

2006-05-03 Thread Terry L Schmitt
I've been using 4.0 for several years without any trouble. 
I'm not sure what the history is on the Beta. My guess is that someone 
just never got around to finishing the Final version as the emphasis 
switched over to 4.1 for MX.

Terry



This is a PRIVATE message. If you are not the intended recipient, please 
delete without copying and kindly advise us by e-mail of the mistake in 
delivery. NOTE: Regardless of content, this e-mail shall not operate to 
bind CSC to any order or other contract unless pursuant to explicit 
written agreement or government initiative expressly permitting the use of 
e-mail for such purpose.





Adam Haskell [EMAIL PROTECTED] 
05/03/2006 09:18 AM
Please respond to
cf-talk@houseoffusion.com


To
CF-Talk cf-talk@houseoffusion.com
cc

Subject
Fusebox 4 on CF 5






Is anyone running FB 4 in a production environment on CF5? The files on
fusebox.org still have beta next to them (even though they are old) and I
was curious to know how stable it is and if it can be used in a production
environment.


Adam




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