Hi,
I have a page with a print button. When I click that button, a pdf is generated
by CF and sent to the client using cfdocument, mime-type application/pdf and a
header content-disposition so that the pdf is treated as an atachment. That
works fine if I don't use Ajax. But I can't get this
Hi,
I have a page with a print button. When I click that button, a pdf is generated
by CF and sent to the client using cfdocument, mime-type application/pdf and a
header content-disposition so that the pdf is treated as an atachment. That
works fine if I don't use Ajax. But I can't get this
I just see that the Ajax call is getting the pdf data - if I do an alert(data)
in the onSucess callback I get the binary data. Question is how to display this
binary data
~|
Order the Adobe Coldfusion Anthology now!
I don't believe what you want to do is possible. A plugin is used to
display PDF data. You can't simply tell the plugin to render arbitrary
binary data via JS. I'd recommend modifying your JS so that it moves
the window to a location (new url) that serves up the PDF.
On Mon, Dec 27, 2010 at 4:56
You can't download files like that via AJAX. What you can do, and what
I've done in the past, is use an iframe to push the download to the
browser.
In the past I've used AJAX to check the server to see if the
downloadable file is ready for download. I do this by creating a
unique download token
I've been fooling around with Amazon's S3 service and am getting ready to
implement it for a client. However, I'm unsure of the process for signing up
for a client account. Do I just have my client create the account and then
supply me with the credentials or do I need to use my developer
Let your client sign up unless you want to pay his bill :-)
He can then set you up as a user with privileges to match the type of access
you need.
Cheers
Stefan
On 27 Dec 2010, at 19:42, Dean Lawrence wrote:
I've been fooling around with Amazon's S3 service and am getting ready to
Thanks Stefan. That's what I figured, but I couldn't find any reference to it.
Let your client sign up unless you want to pay his bill :-)
He can then set you up as a user with privileges to match the type of
access you need.
Cheers
Stefan
On 27 Dec 2010, at 19:42, Dean
How do you add some one as a user and control their access? Is that only
available via the API, or can it be done through the management console or
on the website somewhere? I have tried to find this and only info I can
find is that it is in Beta and only available via the API.
---
David
I have created a table that needed decimal columns.
Here is my script:
CREATE TABLE `goals` (
`enrollments` DECIMAL(4,4) DEFAULT NULL ,
`followups` DECIMAL(4,4) DEFAULT NULL ,
`outcomes` DECIMAL(4,4) DEFAULT NULL ,
`productivityPoints` DECIMAL(4,4) DEFAULT NULL ,
`hoursWorked`
When I try to insert a record I get the following error:
What's the insert query look like?
-Justin
~|
Order the Adobe Coldfusion Anthology now!
I am inserting it on the back end.
- Original Message -
From: Justin Scott
To: cf-talk
Sent: Monday, December 27, 2010 8:09 PM
Subject: RE: mySQL Error
When I try to insert a record I get the following error:
What's the insert query look like?
-Justin
I am inserting it on the back end.
Ok, what is the value you're trying to insert? The more info you can
volunteer up front, the easier it will be to help you. :)
-Justin
~|
Order the Adobe Coldfusion Anthology now!
DECIMAL(4,4) is a bit strange - the (4,4) part means your column can
store a value with 4 digits, 4 of which are decimal points - effectively
means you can only store a range of values between -. and . in
your column.
the first 4 in (4,4) denotes total number of digits allowed -
Oh sorry :)
just simple number and decimals:
`enrollments` DECIMAL(4,4) DEFAULT NULL ,
`followups` DECIMAL(4,4) DEFAULT NULL ,
`outcomes` DECIMAL(4,4) DEFAULT NULL ,
`productivityPoints` DECIMAL(4,4) DEFAULT NULL ,
`hoursWorked` DECIMAL(4,4) DEFAULT NULL ,
`extrabreakACW`
15 matches
Mail list logo