Image Gallery/Scroller from Recordset

2009-01-22 Thread Anthony Doherty
Hi im trying to create an image gallery/scroller on my product information page. All the image names are stored in a recordset but i want to be able to automatically scroll through the images. i hvae tried using jQuery but i dont like that all the images are displayed as the page is loading

RE: Image Gallery/Scroller from Recordset

2009-01-22 Thread Adrian Lynch
Get jQuery to request more images, either as needed (user will wait to see them) or in advance. Either create the images you want to get in JS with CF. script jQuery stuff var galleryImages = [image-1.jpg , image-2.jpg , image-3.jpg , image-4.jpg]; /script Or ask the server

Re: Image Gallery/Scroller from Recordset

2009-01-22 Thread Anthony Doherty
JQuery is reading the images from the recordset fine but when the page is loading, jQuery displays all the images along side each other image1.jpg image2.jpgi mage2.jpg and the user can see these images. The client has come back and says that he doesnt want the client seeing the images until

RE: Image Gallery/Scroller from Recordset

2009-01-22 Thread Adrian Lynch
You don't have to set it up so the jQuery code loads all the images on page load. Let them load the visible ones and then on page load tell it about the others. If you want a quick fix, two ways: 1. Add a class to all the non-visible ones then remove it on page load. 2. Add the code to

Re: Image Gallery/Scroller from Recordset

2009-01-22 Thread Anthony Doherty
Adrian, can you give me some sample code i dont really understand how to implement that. also how can i mangage where the images are being displayed?? You don't have to set it up so the jQuery code loads all the images on page load. Let them load the visible ones and then on page load tell it

RE: Image Gallery/Scroller from Recordset

2009-01-22 Thread Adrian Lynch
You show me your's and I'll show you mine! -Original Message- From: Anthony Doherty [mailto:a.dohe...@advancesystems.co.uk] Sent: 22 January 2009 13:46 To: cf-talk Subject: Re: Image Gallery/Scroller from Recordset Adrian, can you give me some sample code i dont really

Can't invoke servlet with ColdFusion8!

2009-01-22 Thread cf coder
Hello everybody, I took java Hello World example from this site: http://www.caucho.com/resin-3.0/servlet/tutorial/helloworld/index.xtp I complied it into a class file and copied it to the ColdFusion8\wwwroot\WEB-INF\classes directory. I added the following to the web.xml file

Re: Can't invoke servlet with ColdFusion8!

2009-01-22 Thread cf coder
When I try to browse the servlet like this: http://127.0.0.1:8501/hello I get the following error: 500 java.lang.NullPointerException at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:285) at

Re: Image Gallery/Scroller from Recordset

2009-01-22 Thread Anthony Doherty
This is where i call the jQuery function: script type=text/javascript Vehiclerun = function(){ $(#carshow).cycle('fade'); }; /script and here is where i display it: table width=315 border=0 align=center cellpadding=0 cellspacing=0 tr

CFPayment and PayPalPro

2009-01-22 Thread Cutter (CFRelated)
Anyone have some example code of using the CFPayment project (http://cfpayment.riaforge.org) with PayPalPro? -- Steve Cutter Blades Adobe Certified Professional Advanced Macromedia ColdFusion MX 7 Developer Co-Author of Learning Ext JS http://www.packtpub.com/learning-ext-js/book

Re: Character encoding problem

2009-01-22 Thread Claude Schneegans
First, always use UTF-8, With CF 5 forget it. We think we have found the problem. They are using jQuery which apparently change the charset to UTF-8. There must be some settings to change this default behaviour and they are looking for it. Thanks.

Re: Character encoding problem

2009-01-22 Thread Claude Schneegans
it won't matter on cf5 The problem is when using Javascript files with text encoded in iso-8859 in it. If they are included in UTF-8 HTML, they become uncompatible. If one need to keep an application compatible for both CF 5 and CFMX, better stick with ISO.

Re: Character encoding problem

2009-01-22 Thread Kris Jones
We recently experienced problems along these lines (not having to do with jQuery, but getting the charset to stick). Notes to our team are for UTF-8, but I suppose you could choose whatever character encoding you need. I also found excellent information on a blog post by Ben Nadel (link below) --

Cannot Start Cold Fusion MX Application Server

2009-01-22 Thread Matt Rock
I cannot Start the ColdFusion MX Application Service. Both ColdFusion ODBC services start, but then again they are not trying to start the Jrunsvc.exe executable Please help! Matt ~| Adobe® ColdFusion® 8 software 8 is the

Re: Character encoding problem

2009-01-22 Thread Claude Schneegans
The document must be written in UTF-8: In ColdFusion, you must include cfprocessingdirective pageencoding=utf-8 Under CFMX, no problem. Their problem is with CF 5. cfprocessingdirective pageencoding is not available in CF 5. For XML: ?xml version=1.0 encoding=UTF-8 ? must be the very first

Re: Cannot Start Cold Fusion MX Application Server

2009-01-22 Thread Dave Watts
I cannot Start the ColdFusion MX Application Service. Both ColdFusion ODBC services start, but then again they are not trying to start the Jrunsvc.exe executable What error message do you get, if any, if you attempt to start CF as an application instead of a service? You can do that from a

RE: view protected pdf

2009-01-22 Thread Kenny J. Willis
Do you have a solution to this problem? Is there any way to feed the password to the document so it will open? -Original Message- From: Chuck [mailto:h...@coldfusionguru.com] Sent: Wednesday, January 21, 2009 7:17 PM To: cf-talk Subject: RE: view protected pdf What do you mean by

Re: view protected pdf

2009-01-22 Thread Dave Watts
Do you have a solution to this problem? Is there any way to feed the password to the document so it will open? The client has to enter the password when the PDF opens, so no. You could remove the password using CFPDF before allowing the user to download it. Dave Watts, CTO, Fig Leaf Software

RE: view protected pdf

2009-01-22 Thread Kenny J. Willis
That would negate the protection for the file on the server, right? Thanks for your response -Original Message- From: Dave Watts [mailto:dwa...@figleaf.com] Sent: Thursday, January 22, 2009 11:59 AM To: cf-talk Subject: Re: view protected pdf Do you have a solution to this problem?

RE: view protected pdf

2009-01-22 Thread Kenny J. Willis
How can I put the password back on after it has been downloaded to the client? -Original Message- From: Dave Watts [mailto:dwa...@figleaf.com] Sent: Thursday, January 22, 2009 11:59 AM To: cf-talk Subject: Re: view protected pdf Do you have a solution to this problem? Is there any

Re: view protected pdf

2009-01-22 Thread Raymond Camden
Remove the password on a _copy_ of the original. If you want to get fancy, you can a) Copy the original pdf b) Remove password c) Delete pages 5-* d) Let the user download the unprotected PDF, but only the first 4 pages. On Thu, Jan 22, 2009 at 2:08 PM, Kenny J. Willis

Replacing Word special characters on output?

2009-01-22 Thread Jeff F
Data is cut-pasted from Word (I think), then inputted via form text area to database. When outputting data, some characters such as apostrophies and dashes display as little squares. I need to fix this somehow. First thought is to replace the characters on output, but I don't even know what

Re: Replacing Word special characters on output?

2009-01-22 Thread Charlie Griefer
cflib has a function called demoronize. some rich text editors have a special paste from Word button that attempt to clean up the smart quotes and other crappy MS characters. however, it's been my experience that neither these (nor any other automated method that I've heard of) is bulletproof.

Using CFPRINT

2009-01-22 Thread Fawzi Amadu
I am developing a system to be used by various vendors to sell phone cards, due to the sensitive nature of the output, I want to ensure that the generated voucher details are immediate sent to the printer to be printed without the user first being shown the details (otherwise they could use the

Uploading Really Large Files w/CF

2009-01-22 Thread Che Vilnonis
I have a client that needs to be able to upload large files via a form on his website. The uploaded files will be used to print large banners graphics. Many files will be 100-200 mb in size. - Is this something that can be done with CF? How much will a 100-200 mb file choke the server? - If CF is

Re: Using CFPRINT

2009-01-22 Thread Ian Skinner
Fawzi Amadu wrote: How do I use CFPRINT to achieve this? Where are you expecting this print output to occur? cfprint... can only print to printers connected to the ColdFusion server or over a local network of which the ColdFusion server is a member. It cannot print to printers sitting next

Re: view protected pdf

2009-01-22 Thread Dave Watts
That would negate the protection for the file on the server, right? Yes. As Ray mentions, though, you could have protected and unprotected versions if you like. You could also use CF to control access to your files, using the CFCONTENT tag to serve them from locations not directly accessible

Re: Uploading Really Large Files w/CF

2009-01-22 Thread Ian Skinner
100mb to 200mb files are really all that large these days so that may not be that bad. But there can be several places along the network path where throttles can be put that disagree with this size opinion of mine. The ColdFusion Administrator has one, but so can the web server software, any

Re: Uploading Really Large Files w/CF

2009-01-22 Thread Ryan Stille
We had a very tough time with uploading large files using ColdFusion. It is probably better now in CF8. But it used to always choke after 100MB or so. One reason for NOT using CF to do this is that is each upload is going to tie up one of your CF threads for who knows how long, it could be

Re: Uploading Really Large Files w/CF

2009-01-22 Thread Dave Watts
- Is this something that can be done with CF? Yes. How much will a 100-200 mb file choke the server? Well, CF has a fixed number of threads for processing requests, and uploading a file will tie up one thread for the duration of the upload. So, this will depend on a couple of things: the

Re: Using CFPRINT

2009-01-22 Thread Fawzi Amadu
Thanks for the direction, I thought I could print to any printer connection to the PC the user would be browsing with. So what is the best option to have a dynamically generated page printed to a printer without displays the content on screen first? Thanks. Fawzi Amadu wrote: How do I use

Re: Replacing Word special characters on output?

2009-01-22 Thread Jeff F
Thanks Charlie, I just tried DeMoronize, and it did not even touch it. Worth a try though. I wish there was something effective. I get people cutting-pasting from Word, Publisher, all sorts of programs always with problems. I always suggest pasting in MS Notepad first to clean it up, but the

RE: Uploading Really Large Files w/CF

2009-01-22 Thread Che Vilnonis
Ian, I agree with all of your points. FTP definitely is the best way to go. The fact is that my customer's competition can do it via a web form and thus, he wants to as well. I'm just wondering if there are any CF sites out there that do already do this and can point me in the right direction?

Re: Using CFPRINT

2009-01-22 Thread Dave Watts
I am developing a system to be used by various vendors to sell phone cards, due to the sensitive nature of the output, I want to ensure that the generated voucher details are immediate sent to the printer to be printed without the user first being shown the details (otherwise they could

Re: Cannot Start Cold Fusion MX Application Server

2009-01-22 Thread Matt Rock
Dave, First of all, Thanks for being so prompt.. When I run the CFSTART.BAT it halts at... Running on Jrun4 Starting ColdFusion services ... -starting logging... 0 [main] info coldfusion.server -starting logging.. Server Default ready startup time : 16 seconds I saw a warning while this was

Re: Using CFPRINT

2009-01-22 Thread Ian Skinner
Fawzi Amadu wrote: Thanks for the direction, I thought I could print to any printer connection to the PC the user would be browsing with. So what is the best option to have a dynamically generated page printed to a printer without displays the content on screen first? Thanks. There ain't

Re: Using CFPRINT

2009-01-22 Thread Dave Watts
Thanks for the direction, I thought I could print to any printer connection to the PC the user would be browsing with. So what is the best option to have a dynamically generated page printed to a printer without displays the content on screen first? You can't do that from CF. You could do

Re: Cannot Start Cold Fusion MX Application Server

2009-01-22 Thread Dave Watts
Dave, First of all, Thanks for being so prompt.. When I run the CFSTART.BAT it halts at... Running on Jrun4 Starting ColdFusion services ... -starting logging... 0 [main] info coldfusion.server -starting logging.. Server Default ready startup time : 16 seconds I saw a warning while this

RE: view protected pdf

2009-01-22 Thread Kenny J. Willis
This seems to be a very short sided tag cfpdf. Why allow to discreetly protect files and then have no way to display them. Very frustrating. What about the read action of cfpdf? Why couldn't I read the file then dump it (for lack of a better word) to the client? If this is possible, I would

RE: Uploading Really Large Files w/CF

2009-01-22 Thread Adrian Lynch
We faced the same problem a month or two back. CF is coping nicely with 300MB files. No tweaks of the JVM. Can't say for sure but I don't remember what we set the large upload values in CF Admin to, but it's been coping nicely. One thing I would recommend, is to make it easy to swap the upload

Re: view protected pdf

2009-01-22 Thread Dave Watts
This seems to be a very short sided tag cfpdf. Why allow to discreetly protect files and then have no way to display them. Very frustrating. What about the read action of cfpdf? Why couldn't I read the file then dump it (for lack of a better word) to the client? If this is possible, I

RE: view protected pdf

2009-01-22 Thread brad
I'm pretty confused here. I've been following this thread, and I still don't think I understand exactly what your objectives are here. If you don't want random people to be able to access the directory with the PDFs and download them without permission, then store them outside the web root and

RE: view protected pdf

2009-01-22 Thread Kenny J. Willis
Maybe unrealistic for cfpdf, but unrealistic for ColdFusion itself. To protect something with no discernable way back. You can't disagree with this. I realize that we have cfcontent and others that display output. I find it a miscue to not notice this one way only for pdfs. They tought cfpdf in

RE: view protected pdf

2009-01-22 Thread Kenny J. Willis
I will probably use the suggestion for the cfcontent and move the files off web root. This still leaves them on the server unprotected by other means (can't have that). The email option does not work due to the real-time nature of the information. I am aware of the hacking on the other end, but

Re: view protected pdf

2009-01-22 Thread Raymond Camden
On Thu, Jan 22, 2009 at 3:23 PM, Kenny J. Willis k...@alliedinformationresource.com wrote: This seems to be a very short sided tag cfpdf. Why allow to discreetly protect files and then have no way to display them. cfpdf is a _server_ side tag. It modifies the setting of a PDF file. If you want

Re: Cannot Start Cold Fusion MX Application Server

2009-01-22 Thread Matt Rock
No I cannot open any pages when the command prompt is left open ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f

Re: view protected pdf

2009-01-22 Thread Raymond Camden
Eh? You -can- remove a password. As I, and others have said though, to _view_ the PDF you need a client program and that client program is built with security in mind. It won't just ignore a password setting because you want it to. You either have a password, or you don't. On Thu, Jan 22, 2009

Re: view protected pdf

2009-01-22 Thread Raymond Camden
Why not simply use cfpdf to remove the password when the user requests to view the pdf, and store the new pdf in a location that is served up by cfcontent, and then delete the file after a certain amount of time? You can a scheduled to remove any of these files made more than N minutes ago. As an

Re: view protected pdf

2009-01-22 Thread Dave Watts
Maybe unrealistic for cfpdf, but unrealistic for ColdFusion itself. To protect something with no discernable way back. You can't disagree with this. I realize that we have cfcontent and others that display output. I find it a miscue to not notice this one way only for pdfs. They tought

Missing file handler with App.cfm?

2009-01-22 Thread Andy Matthews
Is it possible to get onMissingTemplate style handler using App.cfm? Request a missing file: http://localhost/sites/foo.cfm And have it be intercepted by App.cfm in the sites directory? andy ~| Adobe® ColdFusion® 8 software

RE: view protected pdf

2009-01-22 Thread Kenny J. Willis
How do I output the pdf variable to the client? -Original Message- From: Dave Watts [mailto:dwa...@figleaf.com] Sent: Thursday, January 22, 2009 2:12 PM To: cf-talk Subject: Re: view protected pdf Maybe unrealistic for cfpdf, but unrealistic for ColdFusion itself. To protect

Re: Cannot Start Cold Fusion MX Application Server

2009-01-22 Thread Matt Rock
DAVE! I got it to work!! When I tried to open up a cold fusion page It said It would not open because of Internet Enhance Security was on under Control Panel/Add Remove Programs/Microsoft Windows components. I deselected it let it take out all enhanced settings, reboot my server and Badda

RE: view protected pdf

2009-01-22 Thread brad
I will probably use the suggestion for the cfcontent and move the files off web root. This still leaves them on the server unprotected by other means (can't have that). Define unprotected. If they are outside of the web root, someone can't just come along and download them. Are you worried

RE: view protected pdf

2009-01-22 Thread Kenny J. Willis
I do agree that cfpdf is powerful, just frustrated that there was not a action=get or action=display or something like that or even a way for cfcontent to pass info to a specified type. Trying to get a solution, but apparently I am not communicating in the correct way. I am coming across very

Re: view protected pdf

2009-01-22 Thread Raymond Camden
cfpdf action=read source=install.pdf name=install cfcontent type=application/pdf variable=#toBinary(install)# The only tricky part is the toBinary to convert the PDF 'object' into pure binary data. You probably also want to include a file name for the download. Here is a better example: cfpdf

Re: Not able to start the ColdFusion MX Application Server from servi ces.

2009-01-22 Thread Matt Rock
Ramesh, I had to go into Control Panel\add-remove programs\microsoft windows componets and uncheck Internet enhanced security option.. Rebooted and it came right up Hope this helps .. Matt Hi, I am not able to start the coldfusion application service. Giving following error.. The

RE: view protected pdf

2009-01-22 Thread Kenny J. Willis
I do believe this is probably my solution until a better one comes along. I agree about the hacker problem, but I am also wary about my own users (I have no reason. I just am thinking ahead). Most breaches are from the inside and the outside. thanks -Original Message- From:

RE: view protected pdf

2009-01-22 Thread Kenny J. Willis
Okay were getting somewhere. It is still asking me for the password. In the cfheader you have value=inline; filename=foo.pdf . Where is foo.pdf physically located at thispoint and can we strip the password using cfpdf just before the cfcontent? -Original Message- From: Raymond Camden

Re: view protected pdf

2009-01-22 Thread Raymond Camden
On Thu, Jan 22, 2009 at 4:31 PM, Kenny J. Willis k...@alliedinformationresource.com wrote: I do believe this is probably my solution until a better one comes along. I agree about the hacker problem, but I am also wary about my own users (I have no reason. I just am thinking ahead). Most

Re: Replacing Word special characters on output?

2009-01-22 Thread Claude Schneegans
Personally I use this function which also replace HTML codes by true iso characters (HTML codes cause search requests to fail): function toIso(text) { var html = ##201;,aacute;,agrave;,acirc;,aelig;,aring;,atilde;,auml;, eacute;,egrave;,euml;,ecirc;,iacute;,igrave;,iuml;,icirc;,

Re: view protected pdf

2009-01-22 Thread Raymond Camden
Sorry, I was assuming you would take this as a 'how do I go from cfpdf to cfcontent'. foo.pdf is simply the _name_ that the user will see when they download the file. As for the password, you need to use cfpdf to remove the password after you read it in. I should have made that clear. So step

RE: view protected pdf

2009-01-22 Thread Kenny J. Willis
Yes. Just trying to find a cheat without having to run other subroutines to clean up. What do you think? Is there a possibility? :) :) -Original Message- From: Raymond Camden [mailto:rcam...@gmail.com] Sent: Thursday, January 22, 2009 2:48 PM To: cf-talk Subject: Re: view protected

RE: view protected pdf

2009-01-22 Thread Kenny J. Willis
In step 2, I need to unprotect it to another location, do step 3 then run a subroutine to clean up the unprotected file? -Original Message- From: Raymond Camden [mailto:rcam...@gmail.com] Sent: Thursday, January 22, 2009 2:57 PM To: cf-talk Subject: Re: view protected pdf Sorry, I was

Re: view protected pdf

2009-01-22 Thread Dave Watts
In step 2, I need to unprotect it to another location, do step 3 then run a subroutine to clean up the unprotected file? You could do that, but you shouldn't have to. You can read the PDF into a variable, then use CFCONTENT to serve that variable. Ray's example uses CFHEADER to tell the browser

RE: view protected pdf

2009-01-22 Thread Kenny J. Willis
In your example (without cfheader), at what point do I have to strip out the password? Is this done previous to this point? Meaning that I should cfpdf unprotect to another directory then read that one in and display with cfcontent? Thanks for all your help to both. -Original Message-

RE: view protected pdf

2009-01-22 Thread brad
Actually, the source attribute of the cfpdf tag allows for you to just pass in a variable containing the pdf. A PDF document variable in memory that is generated by the cfdocument tag or the cfpdf tag, for example, myPDFdoc. I'm pretty sure that means that you don't need to save it to a temp

RE: view protected pdf

2009-01-22 Thread Kenny J. Willis
What would be the attributes of mypdfdoc.someattribute ? -Original Message- From: b...@bradwood.com [mailto:b...@bradwood.com] Sent: Thursday, January 22, 2009 3:35 PM To: cf-talk Subject: RE: view protected pdf Actually, the source attribute of the cfpdf tag allows for you to just pass

Re: Replacing Word special characters on output?

2009-01-22 Thread Jason Fisher
I've often thought about pulling apart the JavaScript that's in use by tinyMCE or fckEditor and building a server-side filter to get content into the DB clean, but I haven't found the time. May be worth a look. They're open source, so dig through the editor functions to find the cleanWord()

Re: CFPayment and PayPalPro

2009-01-22 Thread denstar
No, but I've got some old code for running paypal transactions that I just decommissioned this month, if you can't get CFPayment going. Meant to contribute to that project, but just never got around to it. :-( -- If we do not maintain justice, justice will not maintain us. Francis Bacon On

Re: view protected pdf

2009-01-22 Thread Raymond Camden
No, one tag to read it in, then a second cfpdf call to remove the password, then the cfheader/cfcontent to serve it up. On Thu, Jan 22, 2009 at 5:28 PM, Kenny J. Willis k...@alliedinformationresource.com wrote: In your example (without cfheader), at what point do I have to strip out the

RE: Using CFPRINT

2009-01-22 Thread WebSite CFTalk
Hello, Nicelabel WebSDK is a server based print solution that CF can access through web services. The SDK includes an active X control that handles the printout on the client. It needs to know and have the clients printer drivers installed though. www.nicelabel.com (I've used it to produce

cf server for education

2009-01-22 Thread John Barrett
Hi, I don't know where the best place to ask this on cf talk, so I try here. Has anybody used the free education server from adobe? I am working on a free site for the University of Hawaii(http://manoa.hawaii.edu/gotnutrients), I am also a student there. Are there any limits on this server, or

Re: cf server for education

2009-01-22 Thread Brad Wood
I believe you actually need to be teaching a class in ColdFusion to get the education license. If the school wants to build their site in CF, they will need to pay. If you are a student and just want to play around, just download the developer edition directly off the adobe website. It is