I am trying to figure out how to change the color of the background when you
open a new cfwindow in modal mode. I want to make it darker so you cannot see
the stuff behind it as well.
How can I do that?
Any help would be great.
standards-compliant (add doctype,
html, head, body, etc tags) and then add this as the last line before
the closing /body tag:
cfset ajaxonload('doAccordion')
Azadi
On 13/04/2011 11:09 , Steve Sequenzia wrote:
~|
Order the Adobe
I am trying to use the code below to open a new window but I need the value of
the select passed to the window. Is this possible to do like this?
cfselect name=itemID bind=cfc:_root.data.items.getItems({itemGroupID})
display=itemDescription bindonload=yes value=itemID selected=0
add cfset
ajaxonload('name-of-your-js-function-to-execute-here') as the last line
before the closing /body tag: this will run the specified js function
after the page has been loaded inside the container
Azadi
On 11/04/2011 22:31 , Steve Sequenzia wrote
Andrew,
Thanks for the response.
I fixed the functions to this format - funcName = function() {};. All of the
scripts are in separate files. Do I need to use cfajaximport scriptSrc or can I
just put the scripts into the CFIDE/scripts folder? I am confused how all that
works.
Thanks again.
Andrew,
I understand what you are saying. I would rather import the files. I just can't
seem to get the syntax right. I am trying this - cfajaximport
scriptsrc=\CFIDE\scripts\jquery\
When I do that all the other ajax stuff on the page does not load. Do I need to
redirect all the files?
I have a index page that has a cflayout and a cflayoutarea with a source to
another cfm page. The cfm page that the cflayoutarea uses as the source has a
jquery menu in it. When it loads all of the javascript that powers the jquery
menu is not loading.
I made sure that the javascript source
I am trying to format dates in an HTML cfgrid. I cannot seem to make it work in
CF when using HTML as the grid type. I have also tried doing it in MSSQL by
using - CONVERT(VARCHAR(10), startDate, 101) AS startDate.
When I do that it shows up right in the grid but the grid will not sort on the
Got it. Thanks Andrew.
Use the DayOfWeek(now) to get the day number, find out the difference to
Tuesday and to a dateAdd for day to either go back in time. Then use the
DateAdd of 3 weeks to get your result.
Regards,
Andrew Scott
http://www.andyscott.id.au/
I need a little help with a
I am trying to make this http://www.webtoolkit.info/ajax-file-upload.html work
in ColdFusion.
I can get it to work as long as I don't make the form a cfform. I need to make
it work with a cfform though.
When I change the form to cfform it just submits to the action page I created
but it
No, I have action=formRes.cfm. Then on the formRes.cfm it does a file upload.
Again, it works with a html form but not with a cfform. should I have the
action be a .cfc file?
Thanks for the help.
You have it like this?
CFFORM NAME=foo ACTION=bar.cfc METHOD=POST enctype=multipart/form-data
I am trying to make this http://www.webtoolkit.info/ajax-file-upload.
html work in ColdFusion.
I can get it to work as long as I don't make the form a cfform. I need
to make it work with a cfform though.
When I change the form to cfform it just submits to the action page I
created but
I need a little help with a ColdFusion function. I need to calculate the date
of the next Tuesday 3 weeks from the current date.
I am assuming that I need to use the dateadd but I am not really sure how to
figure out the day thing.
Any help with this would be great.
-Steve
For some reason I cannot use CFWindow. When I do just a basic cfwindow
width=500 height=500 initshow=true/cfwindow it does not work. I get
the following error in firebug:
Ext.Window is not a constructor
anonymous(cf_window1267811011254, Object name=url, Object modal=false
I am trying to open a cfwindow using a
href=javascript:ColdFusion.Window.show('window')/a but in need to pass a
variable to the page that it opens. I have tried a few ways of doing it but I
cannot get it to work.
Any help on this would be great.
Thanks!
I am trying to open a cfwindow using a
href=javascript:ColdFusion.Window.show('window')/a but in need to pass a
variable to the page that it opens. I have tried a few ways of doing it but I
cannot get it to work.
Any help on this would be great.
Thanks!
Gerald - Thanks for this info. I works but I am having another issue with it.
For some reason any div tags that are floated left in the savecontent are not
showing up when the pdf is created. All of the data in the div tag is just not
there.
Any idea or anyone else have any ideas.
Any help
I am looking for some help getting on creating a pdf from a hyperlink. I need
to it to use content on the same page for the pdf. I do not want the entire
page created as a pdf just a section of the page.
Can someone please point me in the right direction for this.
Thanks in advance.
I am trying to use ColdFusion to consume a web service and I am having issuses.
I really don't know much about web services so please bear with me.
Here is what I have been trying to do:
cfsavecontent variable=soap
?xml version=1.0 encoding=utf-8?
soap:Envelope
Just to get this out of the way. I am pretty much brand new to web
services so please excuse my lack of knowledge.
I have been working on a real small web app that allows the customer
to input an invoice then it kicks out a csv of the invoices. My
problem is that the vendor just added an
Just to get this out of the way. I am pretty much brand new to web services so
please excuse my lack of knowledge.
I have been working on a real small web app that allows the customer to input
an invoice then it kicks out a csv of the invoices. My problem is that the
vendor just added an
I am working on a fairly simple solution that allows users to input information
from an invoice and it then drops the data in a MSSQL database. I need to then
be able to pop out cXML files that can be uploaded to a billing vendor. Does
anyone out there have any experience with cXML and how to
Thanks guys for all the help.
I ended up getting it to work with a combination of responses. Here is the code:
function check()
{
var text1 = ColdFusion.RichText.getEditorObject('theBody');
var text2 = text1.GetXHTML(true);
if (text2==0)
{
alert('Body is
I am creating a cfwindow from JS with this:
ColdFusion.Window.create('testwindow', 'This is a test');
I also need to be able to write content to the window from JavaScript. That
will include JavaScript variables. I have tried doing it with this:
elementName_body.innerHTML='This is the body';
I am trying to check whether or not a rich text textarea has a value in
JavaScript. On a normal textarea box I can just use the elementname.value == ''
but that is not working when I have rich text turned on.
Anyone have any ideas how to check it when rich text is on?
Thanks!
I am trying to figure out how to remove all characters from a string besides
numbers, letters and spaces.
Can anyone point me in the right direction.
Thanks in advance for any help.
~|
Adobe® ColdFusion® 8 software 8 is the
Thanks for the help. I am trying to do it like this:
cfset d2 = rereplace(lcase(d1) , '[A-Za-z0-9 ]', '','all') /
but (understandably) it is doing the reverse of what I want. It is replacing
all the numbers and letters. How do I change it so it only picks characters
that are not numbers and
Got it now.
Thanks guys for the help.
I am trying to figure out how to remove all characters from a string
besides numbers, letters and spaces.
Can anyone point me in the right direction.
Thanks in advance for any help.
I am trying to figure out the best way to remove all text that is left of a
substring in a string.
Sting Example - ColdFusion is an application server and software development
framework used for the development of computer software
Substring Example - software development framework
I need to
I am having issues with cfhttp returning 302 Moved Temporarily on some of the
pages that I am hitting. I know that there are redirects happening and I am
assuming that it is going past the threshold of 4 redirects.
Does anyone know a way around this?
Any help would be great.
Thanks!
is showing the feed with the XSLT that comes with the feed, which
shows the content.
On Sat, Mar 29, 2008 at 3:58 PM, Steve Sequenzia [EMAIL PROTECTED] wrote:
~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic
, which
shows the content.
On Sat, Mar 29, 2008 at 3:58 PM, Steve Sequenzia [EMAIL PROTECTED]
wrote:
~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
http
, Mar 27, 2008 at 11:40 PM, Steve Sequenzia [EMAIL PROTECTED] wrote:
~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k
I am experimenting with building a very simple feed reader but I am hiving
issues with cffeed not reading all the contents of the feed on certain sites. I
have this very basic reader setup that reads the feeds and then does a dump on
the page. Here it is http://dev.thinksys.com/feeds/1.cfm
I posted this yesterday but I don't see any trace of it hitting the list, so if
it is a double post I apologize.
I am trying to use the Datediff function to determine the years, months, days
between to days. Example - from 1/1/08 to 2/9/08 is 1 years 2 months 8 days. I
am trying to figure out
I am trying to figuring how to determine the year, months and days from a date.
Like from 1/1/2007 to 2/9/2008 it is 1 year 1 month and 8 days. I am trying to
figure out how to do that programmatically.
I have been trying to do it with datediff but I cannot figure out how.
Any help would be
Yeah, I got it working by changing my cfform to a normal html form. That makes
sense, thanks Azadi for the insight.
that is only true for CFFORM tag, not FORM tag
read here:
http://www.coldfusionjedi.com/index.
cfm/2007/8/5/Reminder-about-forms-and-ColdFusion-8-Ajax-Containers
---
I am trying to be submit a form from within a cfdiv on a parent page. What I
mean is I have a page that has the entire layout and everything in it but the
for itself is actually on another page that is showing by using a cfdiv with a
bind to the URL.
All of the form variables are on one page
Hi All,
Can I get some help figuring out how to connect two dropdowns dynamically?
I am working a shoe database and I need to allow the user to select a size from
a dropdown and then from there I need to have another dropdown called quantity
updated with the amount of quantity based on the
I have a loop that uses a cfquery with a start and end for paging. I am trying
to figure out if there is a way for me to know if the current record in the
loop is the last record. I know how to tell based on the query but I am not
sure how to know based on the loop.
Any help on the would be
I need to take a string and replace all the spaces with dashes. I tried using
the replace function but I am having issues with strings that have multiple
spaces next to each other and/or a space or spaces at the end. Here is what I
have:
cfset dirName = #Replace(String, , -, ALL)#
Any
@Everyone - Thanks for the help.
@Charlie - The regex worked perfect. Thanks for the help.
I need to take a string and replace all the spaces with dashes. I
tried using the replace function but I am having issues with strings
that have multiple spaces next to each other and/or a space or
I am trying to figure out if it is possible to tell the name of the directory
that the viewed page is in. I have been playing with cfdirectory and I cannot
figure it out.
What I mean if this is the file c:\inpub\wwwroot\website\about-us\index.cfm I
want to read the about-us and make it a
concerned that this will confuse
users and they will not open it.
Any suggestions on how to stop this besides client side security
settings in Excel?
Thanks.
__
Steve Sequenzia
Thinksys Incorporated
1613 E Livingston St
Orlando, FL 32803
866.633.3000 x305
407.459.1305
Can someone please give me some insight into exporting data to excel using CF8.
I am having issues with all the code I am trying.
Any help would be great.
Thanks
~|
Enterprise web applications, build robust, secure
scalable
not realize that excel was an option
for cfreport. I will check that out.
__
Steve Sequenzia
Thinksys Incorporated
1613 E Livingston St
Orlando, FL 32803
866.633.3000 x305
407.459.1305 Direct
866.892.3000 Help Desk
407.895.3338 Fax
-Original Message-
From: Ben Forta
William,
Sorry for not being more descriptive. I just need to export a really
basic query from SQL to Excel. It only has like for fields and no
formulas.
Thanks
__
Steve Sequenzia
Thinksys Incorporated
1613 E Livingston St
Orlando, FL 32803
866.633.3000 x305
I cannot seem to figure this out.
I have a table called dirs. It has columns named: dirID, dirPath and
parentDirID.
The parentDirID handles the hierarchy.
All I need to do is have a cfselect that lists all the dirPaths but defaults to
the parentDirID of the selected dir.
Here is the code:
Anyone no if it is possible to do a alt tag or tooltip on a cftreeitem.
I just need a little description to pop up when a user rolls over the
cftreeitem.
Any help on this would be great.
Thanks in advance.
Anyone??
Anyone no if it is possible to do a alt tag or tooltip on a cftreeitem. I just
need a little description to pop up when a user rolls over the cftreeitem.
Any help on this would be great.
Thanks in advance.
~|
Create robust
Ray Camden has blogged about column rendring, maybe you check that out.
On 9/21/07, Steve Sequenzia [EMAIL PROTECTED] wrote:
I just need to add commas to a grid column that are displaying
numbers. I think I need to use numberformat but I am not sure how to
use it.
Any help would
I just need to add commas to a grid column that are displaying numbers. I think
I need to use numberformat but I am not sure how to use it.
Any help would be great.
~|
ColdFusion is delivering applications solutions at at top
Hey Brian, quick question about this.
If you use a CFC to create a web service and do not convert it to XML what data
format does the CFC respond to requests in?
I mean, if I have a backend in CF that uses CFC to access the database and feed
it to the front end (or other users front ends)
Hey Brian, quick question about this.
If you use a CFC to create a web service and do not convert it to XML what data
format does the CFC respond to requests in?
I mean, if I have a backend in CF that uses CFC to access the database and feed
it to the front end (or other users front ends)
Hey Brian, quick question about this.
If you use a CFC to create a web service and do not convert it to XML what data
format does the CFC respond to requests in?
I mean, if I have a backend in CF that uses CFC to access the database and feed
it to the front end (or other users front ends)
Brian, thanks for the info. It makes more sense to me now. You control the
format based on the invoke not necessarily in the CFC. For some reason I
thought that you had to convert the data to XML in the CFC.
Thanks for clearing that up.
Sorry everyone for the double (I mean triple) posts.
If
Andy,
Can you share the code you used for the iframe?
Thanks
Just an update. It seems like it is working. :) I need to tweak it
some more to get the result I want but at least the file is being
uploaded... within a CFWINDOW.
So IFRAME is the answer.
Thanks DAN!
Thanks Dan,
Anyone know if it is possible to use cflocation to redirect a page inside of
a cflayout to a cflayoutarea? I don't want it to break the page out.
Thanks in advance for any help.
~|
ColdFusion 8 - Build next generation apps
Larry,
What is the error you are getting when it loads?
Here is a similar demo I did using a grid and a pod. It might be helpful:
http://demo.thinksys.com/cf8/cfgrid/contacts.cfm
I am a bit confused as to why this is occurring, but I am sure it is
something I have done wrong. I am
Andy,
Yes, I am having the exact same problem. When a form is in a Ajax UI element
(like cflayout and cfdiv) it is submitted asynchronous. The encoding type is
set to application/x-www-form-urlencoded and it needs to be
multipart/form-data. According to Ray Camden there is no way around this
Yeah I tried to change the encoding with JS and it do not work. It just still
errors out with this message:
Invalid content type: application/x-www-form-urlencoded. The cffile
action=upload requires forms to use enctype=multipart/form-data.
I think that CF overrides it because it is in a AJAX
I am currently working on a small web app and I am struggling with some UI
issues.
I have in the past liked to use frames (I know) for the general layout. Here is
a simple sample of a layout using frames that I have used in the past:
http://demo.thinksys.com/ui/frames/
On this project I
Chris, thanks for the insight. You are correct the frames way is quicker to
develop in but the AJAX way is a nicer user experience.
Thing is I still have some issues doing it with cflayouts. I guess I just need
to make a decision which way to go.
I really want to get into Flex, I am just not
Yeah I was thinking about doing it with a pop window but I was trying to avoid
doing that, I might have to though. Thanks for the help.
Anyone else have any ideas?
I hate to suggest it- but the only thought that comes to mind is a
popup window. PLEASE know that I bet there is a better solution
Message-
From: Steve Sequenzia [EMAIL PROTECTED]
To: CF-Talk cf-talk@houseoffusion.com
Sent: 8/24/07 2:32 PM
Subject: Importing CSV into
I am trying to write some code that takes a .csv file and inserts it
into SQL.
I am having issues with it reading the header. I would like to be able
I am having issues with trying to upload a file when the form that has the
cfinput in it is nested inside of a cfdiv. Here is a simple version of the
problem:
cfif isDefined('cmd')
cffile action=upload destination=#application.photoPath# filefield=file1
/cfif
cfdiv
cfform name=form1
Crow,
Thanks for the info, that is very helpful.
I am using SQL 05 DTS is not really an option anymore. I had to use Integration
Services to do it. I am guessing you can save the package and call it like you
do a DTS package.
Any ideas if it will function the same way.
Thanks again for the
Ray,
Thanks for the help. That makes sense, but I have a pretty big issue. I am
using Ajax UI elements (cflayout and cfdiv) for my interface and I need to have
the ability to upload files in it.
Are there any work arounds that you can think of. I am wondering if I can use a
separate
I am trying to write some code that takes a .csv file and inserts it into SQL.
I am having issues with it reading the header. I would like to be able to leave
the header on the file and not have it insert the header data into the DB.
When I try to run it without a header I am having issues with
I am trying to figure out if it is normal for the cfimage resize to be very
slow. I am reading photos from a database then resizing them and writing them
to a directory. The the process works fine but it gets through about 17
pictures and then errors out with this error The request has exceeded
I am trying to figure out how to use cfinput type=file to upload multiple
files at once. I can only seem to get it to accept one file at a time.
Any help on this would be great.
BTW - I am on CF8.
Thanks.
~|
Check out the
Thanks Jayesh...
That is exactly what I was looking for.
Thanks again.
Hi
ImageInfo() function is doesn't provide the metadata information. It's
about the Image File properties.
If you need to extract the Metadata, you can use the following
functions.
ImageGetIPTCMetadata()
ImageGetIPTCTag()
I am trying to figure out if it is possible to read the date picture taken of
a picture in CF8. I would like to read it and write it into a DB.
I know in CF8 you can use ImageInfo to get some of the metadata off a picture
but I don't see anything for date picture taken.
I have heard of
Works for me... selectOnLoad=false
Here is a demo with it:
http://demo.thinksys.com/cf8/cfgrid/contacts.cfm
Are you still on a beta or the release?
Hi all,
Anyone dealt with selectOnLoad in CFGRID -- in the docs, it's there, plain
as day, but when I try to use it, I get this:
Attribute
If you are using cfwindow than the window is on the same page. You should be
able to use JS to control the value on the original form. Like:
document.formName.name.value;
Check out this demo I did:
http://demo.thinksys.com/cf8/cfwindow/addContacts.cfm
I think the concept is kind of the same.
Andy,
Move the JS to the form_test1.cfm page. It works when you do that.
Here it is:
http://demo.thinksys.com/cf8/cfwindow/form_test1.cfm
Are you using Firebug? As Ray Camden has told me many times, use Firebug. It is
really great for this stuff. You would see that the actual error was
I am trying to set a cfgrid to bind to a cfc but for some reason it is not
showing any data. The grid is loaded and it does not error out or anything it
just does not show any data in the grid. Here is the code:
Display Page -
cfform name=productsForm
cfgrid name=productsGrid format=HTML
Ray,
Yes I a using Firebug. Here is what the query string looks like:
Ray,
I tried to make the names upper case and no change. I cannot remove the
cfgridcolumn because it errors out without at least one when using the bind.
Here is the error:
The cfgrid tag for HTML format using bind attribute requires at least one
cfgridcolumn.
I don't know what the problem
It is still not working for me.
I can see the data in JSON format when I run the query string from Firebug, but
there is just still no data showing up in the grid?
Oh duh. Hmmm. You lost me there then. Outside of being pretty slow,
the code seemed ok.
I guess I am confused (what's new, right). The link to the actual grid is:
http://dev.thinksys.com/atc/portal/modules/inventory/viewInventory.cfm
That does not load any data in the. The only update I have made to that is I
made the column names upper case.
The query string from Firebug when
%22gridsortcolumn%22%3A%22%22%2C%22gridsortdirection%22%3A%22%22%7D_cf_nodebug=true_c
f_nocache=true_cf_clientid=9DD5A34E600C2D12C2BC77ACEDE990C8_cf_rc=0
View source.
See the link tag? That is breaking your response.
On 8/7/07, Steve Sequenzia [EMAIL PROTECTED] wrote:
I guess I am confused
Ok, I think I have been asking more than the allotted amount of questions
lately (and Ray has been answering them all) but I have another question.
Anyone know how to have the hyperlink in a cfgrid open the linked page in a
cflayout or a cfdiv
I have tried
Anyone know the syntax to tell whether a cfwindow by name exists on a page. I
am having issues with it trying to reload a new window with same name.
I need to figure out the syntax to tell whether it is defined.
Any ideas?
~|
I have this little bit of code that I am testing with inside of a
cflayoutarea:
cfform name=form1
cfinput name=sku type=text
cfinput type=submit name=cmd1 value=1
cfinput type=submit name=cmd2 value=2
/cfform
cfif isDefined('cmd1')
cfoutput#cmd1#/cfoutput
/cfif
cfif isDefined('cmd2')
Ray,
Thanks for the help again.
Yeah it is confusing me. I have tried submitting to the same page and to a
different page and it always has the same result. The second button is ignored.
I don't know what the deal is. At least it is not just me, if it surprised you
then there must really be
My need for it is pretty similar to what Ray explained. My buttons are Save and
Save New. So both buttons submit the form, I just know what the next step is
based on the button. I agree, it can be done with a drop down or a check box I
have always just liked doing it with two buttons.
Thanks.
Ok, so I am taking Ray's advice and changing a hidden form variable and
submitting the form with JS. Thing is when I use the normal submit() in JS it
breaks the page out of the original cflayout.
Anyone know how to keep the form in the layout when submitting with JS?
Thanks.
Ray,
Thanks
Just thought I would share a pretty cool way to do this in CF8:
http://demo.thinksys.com/cf8/cfwindow/addContacts.cfm
It is dummy data so feel free to play with it.
I have a general question about how people are handling new records to
select boxes. I mean if you have a form with a select
Here is a little code I am working on:
cflayout type=border
cflayoutarea name=top position=top size=50 nbsp; /cflayoutarea
cflayoutarea name=left position=left title=Menu collapsible=true
splitter=true size=200
cflayout type=vbox
cfform name=left_menu
cftree name=left_menu vscroll=no
Email never went out for this. Can anyone help?
Here is a little code I am working on:
cflayout type=border
cflayoutarea name=top position=top size=50 nbsp;
/cflayoutarea
cflayoutarea name=left position=left title=Menu
collapsible=true splitter=true size=200
cflayout type=vbox
I also like to have a separate interface for managing the records. So they can
add/edit the records. I do however like to give them the ability to add it
right on the current page.
I have tried many of the ways mentioned to do this but I always seem to get
frustrated by them for some reason or
In a related question to this, can anyone please help me get started on the
best way to do a popup page that inserts the new record and then updates the
cfselect on the original page without having to reload the original page.
I know how to do the popup and the insert without any issues. I can
I have a general question about how people are handling new records to select
boxes. I mean if you have a form with a select box that displays values from a
database but when the user is filling out the form they need to add a new
record to that list.
--Example--
Description: textbox
Data:
I am not sure if this is possible but here is what I am trying to do.
I have a function that queries the database (MSSQL) for all users:
cffunction name=getUsers returntype=query access=remote
cfquery name=queryUsers datasource=#application.ds#
I am pretty new to using ColdFusion components but I am trying to start doing
all my inserts and queries with them.
In the past I would always submit my forms to another .cfm page (usually called
action). On that page I would do my SQL inserts or whatever and then put a
cflocation at the
Thanks for the help everyone. It all makes sense. I was actually doing it that
way but then I read somewhere about submitting directly to the cfc.
I am pretty new to using ColdFusion components but I am trying to
start doing all my inserts and queries with them.
In the past I would always
97 matches
Mail list logo