CacheBox Call-Backs Dilemma
Hi guys, I have this dilemma with the new CacheBox framework I've been working on. It's really bugging me and I wonder if you guys could help me out by giving me some feedback on the solution. I posted an article about the problem on the CacheBox blog here: http://cachebox.riaforge.org/blog/index.cfm/2009/9/22/callbacks Thanks. :) -- s. isaac dealey ^ new epoch isn't it time for a change? ph: 817.385.0301 http://onTap.riaforge.org/blog ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:326476 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: (ot) Server Backup Software
On Monday 21 Sep 2009, Rick Root wrote: Any recommendations for inexpensive solutions? (inexpensive meaning, hundres or thousands of dollars but not tens of thousands). rsync is the generic answer. You can get some fairly 'home/office' NAS boxes now that support RAID mirroring, and I'm fairly sure they'd go up to your size. Almost all of them will also come with some sort of Windows software service too. -- Helping to professionally synthesize prospective enterprise out-of-the-box features as part of the IT team of the year, '09 and '08 This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office together with a list of those non members who are referred to as partners. We use the word partner to refer to a member of the LLP, or an employee or consultant with equivalent standing and qualifications. Regulated by the Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.co ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:326477 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Coldfusion Autosuggest
How do you use Firebug to find a bad entry with a database table with over 25,000 records? Barry ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:326478 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Coldfusion Autosuggest
Would the following strategy help? Maxrows the query to 10 and see if it works then, if it does then yes it sounds like a value is causing a problem, if it doesn't then it must be something else. If 10 records does work try the first 100, then the first 1000 etc. Shouldn't take too long to pin down the problematic value by retrieving subsets of the data. ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:326479 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
selecting different template based on file name
Hi im having trouble with the below piece of code, im trying to set it up to add the correct template as a watermark based on the filename in the database in field (INVOICE_PDFFile) can anyone help me out? at the minute im getting this error message - Error Executing Database Query. [Macromedia][SQLServer JDBC Driver][SQLServer]Ambiguous column name 'InvoiceTemplateType_Key'. heres my code: cfparam name=currentline default=1 cfparam name=previousstring default= cfset timestamp = timeformat(now(),HHmmss) cfset pdfname = url.invoice_timestamp.pdf cfquery name=qgetinvoice datasource=#request.dsn# select INVOICE_PDFFile from INVOICE where INVOICE_Key = #url.invoice# /cfquery cfpdf action=getinfo name=pdfinfo source=#request.maindrivePath#PDFs\#qgetinvoice.INVOICE_PDFFile# cfif pdfinfo.TotalPages gt 1 cfset totalpages = 1-pdfinfo.TotalPages cfelse cfset totalpages = 1 /cfif cfquery name=qgetcreditnotetemplate datasource=#request.dsn# select InvoiceTemplate_FileName, InvoiceTemplateType_Key, Invoive_Key from InvoiceTemplate IT, INVOICE I where IINVOICE_Key = #url.invoice# AND InvoiceTemplateType_Key = 1 /cfquery cfpdf action = addwatermark source = #request.maindrivePath#PDF\#qgetinvoice.INVOICE_PDFFile# image = #request.maindrivePath#PDF\#qgetcreditnotetemplate# foreground = No overwrite = yes pages = #totalpages# opacity = 10 Position = 10, -50 showonprint = YES destination = #request.maindrivePath#temppdf\#pdfname# cflocation url=temppdf/#pdfname# ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:326480 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Coldfusion Autosuggest
If it is indeed a Javascript breakign character, try JSStringFormat() aroudn the output for the autosuggest: http://www.cfquickdocs.com/cf8/?getDoc=JSStringFormat mxAjax / CFAjax docs and other useful articles: http://www.bifrost.com.au/blog/ 2009/9/22 Barry Mcconaghey bmcconag...@gmail.com: How do you use Firebug to find a bad entry with a database table with over 25,000 records? Barry ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:326481 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
re: selecting different template based on file name
The error means that InvoiceTemplateType_Key is a column in both tables, so you have to let the database know which one you actually want. Use your table aliases: cfquery name=qgetcreditnotetemplate datasource=#request.dsn# SELECT IT.InvoiceTemplate_FileName, IT.InvoiceTemplateType_Key, I.Invoive_Key FROM InvoiceTemplate IT, INVOICE I WHERE I.IINVOICE_Key = #url.invoice# AND IT.InvoiceTemplateType_Key = 1 /cfquery Looks like you're not JOINing your tables either, which could be pretty bad in both performance and results, and please be sure you're using CFQUERYPARAM in actual code to screen that URL variable. Something like this (making assumptions here about data types and column references): cfquery name=qgetcreditnotetemplate datasource=#request.dsn# SELECT IT.InvoiceTemplate_FileName, IT.InvoiceTemplateType_Key, I.Invoive_Key FROM InvoiceTemplate IT INNER JOIN INVOICE I ON IT.InvoiceTemplateType_Key = I.InvoiceTemplateType_Key WHERE I.IINVOICE_Key = cfqueryparam cfsqltype=CF_SQL_INTEGER value=#url.invoice# / AND IT.InvoiceTemplateType_Key = cfqueryparam cfsqltype=CF_SQL_INTEGER value=1 / /cfquery ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:326482 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Is Infusion Still In Business?
Is Infusion still in business? I have a couple of their servers installed and want to add another one. There shopping cart is broken and they have not returned any emails for info/support. Did they join the deadpool? I hope not. - Robert ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:326483 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: selecting different template based on file name
Hi Jason Ive tried that but Im still getting the same error The error means that InvoiceTemplateType_Key is a column in both tables, so you have to let the database know which one you actually want. Use your table aliases: cfquery name=qgetcreditnotetemplate datasource=#request.dsn# SELECT IT.InvoiceTemplate_FileName, IT.InvoiceTemplateType_Key, I.Invoive_Key FROM InvoiceTemplate IT, INVOICE I WHERE I.IINVOICE_Key = #url.invoice# AND IT.InvoiceTemplateType_Key = 1 /cfquery Looks like you're not JOINing your tables either, which could be pretty bad in both performance and results, and please be sure you're using CFQUERYPARAM in actual code to screen that URL variable. Something like this (making assumptions here about data types and column references): cfquery name=qgetcreditnotetemplate datasource=#request.dsn# SELECT IT.InvoiceTemplate_FileName, IT.InvoiceTemplateType_Key, I.Invoive_Key FROM InvoiceTemplate IT INNER JOIN INVOICE I ON IT.InvoiceTemplateType_Key = I.InvoiceTemplateType_Key WHERE I.IINVOICE_Key = cfqueryparam cfsqltype=CF_SQL_INTEGER value=#url.invoice# / AND IT.InvoiceTemplateType_Key = cfqueryparam cfsqltype=CF_SQL_INTEGER value=1 / /cfquery ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:326484 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Ampersands being stripped from query_string
99% of the time, the following works without problem to redirect to another page while keeping track of all the URL variables being passed: Let's say my query string is this: a=1b=2c=3d=4e=5 script location.href = 'someURL.cfm?#cgi.query_string#'; /script However, on rare occassions, all the the amersands are getting stripped from the cgi.query_string when it reaches the href destination. So, instead of directing to 'someURL.cfm?a=1b=2c=3d=4e=5' It is directing to: someURL.cfm?a=1b=2c=3d=4e=5 What is happening to the ampersands? They are getting dropped for no reason that I can see. ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:326485 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
CF9 ORM - One-To-One Mapping, Repeated Column Error
I am looking at the one-to-one relationship, unique foreign key mapping example in the ColdFusion 9 ORM documentation .. http://help.adobe.com/en_US/ColdFusion/9.0/Developing/WS5FFD2854-7F18-43ea-B 383-161E007CE0D1.html#WS606584AD-43B2-48c1-B9E6-69A670694BBB . and I am wondering why the Empolyee.cfc has the primary key defined as EmployeeID whereas the OfficeCubicle.cfc has the primary key defined as id? In most of the other examples, the primary key is just named 'id', so is there something special here that requires the Employee object to have the PK as EmployeeID instead? I have a similar setup defined in a project I am working on, but both objects have their PK named 'id' and I am getting an error that there is a Repeated column in mapping for entity: Response column: id (should be mapped with insert=false update=false). cfcomponent displayname=Response output=false persistent=true extends=com.alagad.PersistentBO hint=A response to a survey cfproperty name=id type=numeric fieldtype=id ormtype=integer generator=native setter=false notnull=true hint=I am the unique identifier for the Response / cfproperty name=prize fieldtype=one-to-one cfc= Prize fkcolumn=id hint=I am the Prize which was (optionally) awarded for this Response / cfcomponent displayname=Prize output=false persistent=true hint=A conference Prize to be awarded to a participant cfproperty name=id type=numeric fieldtype=id ormtype=integer generator=native setter=false notnull=true hint=I am the unique identifier for the Prize / cfproperty name=winningResponse fieldtype=one-to-one cfc= Response mappedBy=prize hint=I am the winning response associated with this prize if it has been awarded / Any ideas? Thanks -- Jeff ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:326486 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Coldfusion Autosuggest
I think I found the problem. In my Database, I found some entries like Acme # 1. Because I have a large DB, how can I display only the names with the symbol # in them. For Example: cfoutput query=ratings cfif #ratings.fdd_name# CONTAINS # #ratings.fdd_name# /cfif /cfoutput But this query does not work. Barry ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:326487 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Coldfusion Autosuggest
I believe you have to do CONTAINS ## to escape the pound sign. -Original Message- From: Barry Mcconaghey [mailto:bmcconag...@gmail.com] Sent: Tuesday, September 22, 2009 11:19 AM To: cf-talk Subject: Re: Coldfusion Autosuggest I think I found the problem. In my Database, I found some entries like Acme # 1. Because I have a large DB, how can I display only the names with the symbol # in them. For Example: cfoutput query=ratings cfif #ratings.fdd_name# CONTAINS # #ratings.fdd_name# /cfif /cfoutput But this query does not work. Barry ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:326488 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Coldfusion Autosuggest
Thanks ! Barry I believe you have to do CONTAINS ## to escape the pound sign. I think I found the problem. In my Database, I found some entries like Acme # 1. Because I have a large DB, how can I display only the names with the symbol # in them. For Example: cfoutput query=ratings cfif #ratings.fdd_name# CONTAINS # #ratings.fdd_name# /cfif /cfoutput But this query does not work. Barry ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:326489 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
drop down box
hi we want to have a drop down box on a form that has attribute 'required' and a message that displays if no value is select when the form is submitted however, using cfselect automatically makes the first option selected, but we want the user to physically select an option how can we code it so that no option is automatically selected when the page loads? thanks ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:326490 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: drop down box
This is just how dropdowns work. You need to add a blank element at the beginning. I usually do it manually like this: select name=somename option value=/option cfloop !-- more options here -- /cfloop /select Jake Churchill CF Webtools 11204 Davenport, Ste. 100 Omaha, NE 68154 http://www.cfwebtools.com 402-408-3733 x103 -Original Message- From: Richard White [mailto:rich...@j7is.co.uk] Sent: Tuesday, September 22, 2009 11:04 AM To: cf-talk Subject: drop down box hi we want to have a drop down box on a form that has attribute 'required' and a message that displays if no value is select when the form is submitted however, using cfselect automatically makes the first option selected, but we want the user to physically select an option how can we code it so that no option is automatically selected when the page loads? thanks ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:326491 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: drop down box
I don't know cfselect (or cfform in general, really)... so if not using cfform is an option, here's how it'd be done. form onsubmit=return checkThis(this); select name=foo id=foo option value=Please Select One/option option value=AA/option ... /select /form script type=text/javascript function checkThis(frm) { if (document.getElementById('foo').selectedIndex == 0) { alert('You Failed'); return false; } } /script On Tue, Sep 22, 2009 at 9:04 AM, Richard White rich...@j7is.co.uk wrote: hi we want to have a drop down box on a form that has attribute 'required' and a message that displays if no value is select when the form is submitted however, using cfselect automatically makes the first option selected, but we want the user to physically select an option how can we code it so that no option is automatically selected when the page loads? thanks ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:326492 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: drop down box
thanks for your replies, although the problem with having an empty element or an element saying 'Select one of the following' would cause the required=yes validation not to work as they would still be valid options is there no way to get the required=yes validation to work on these cfselect's hi we want to have a drop down box on a form that has attribute 'required' and a message that displays if no value is select when the form is submitted however, using cfselect automatically makes the first option selected, but we want the user to physically select an option how can we code it so that no option is automatically selected when the page loads? thanks ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:326493 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: drop down box
There are other ways around it. The responses are the correct route for validation. ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:326494 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: drop down box
Richard, Let me see your entire CFSELECT statement and we should be able to figure out how to get the empty First Option to work for you. It is entirely possible to do what you're trying to do. ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:326495 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: CF9 ORM - One-To-One Mapping, Repeated Column Error
fkcolumn should specify the name of the foreign key column, not the name of the primary key on the other table. In most cases this attribute shouldn't need to be specified at all, Hibernate will create a column for the foreign key automatically. So either the docs are just badly worded, or they deliberately named the keys differently to try and highlight the difference (as opposed to having both primary keys be named id). On Tue, Sep 22, 2009 at 10:12 AM, Jeff Chastain li...@admentus.com wrote: I am looking at the one-to-one relationship, unique foreign key mapping example in the ColdFusion 9 ORM documentation .. http://help.adobe.com/en_US/ColdFusion/9.0/Developing/WS5FFD2854-7F18-43ea-B 383-161E007CE0D1.html#WS606584AD-43B2-48c1-B9E6-69A670694BBBhttp://help.adobe.com/en_US/ColdFusion/9.0/Developing/WS5FFD2854-7F18-43ea-B%0A383-161E007CE0D1.html#WS606584AD-43B2-48c1-B9E6-69A670694BBB . and I am wondering why the Empolyee.cfc has the primary key defined as EmployeeID whereas the OfficeCubicle.cfc has the primary key defined as id? In most of the other examples, the primary key is just named 'id', so is there something special here that requires the Employee object to have the PK as EmployeeID instead? ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:326496 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: coldfusion barcode
Hi Phillip, We have tried this function (even copied and pasted your code) but altering the height does not work, do you have this problem? ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:326497 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Web Developer - ColdFusion - Contract - SE Portland Oregon
I've worked for this company before. If anyone wants the lowdown about what it's like to work for them, ping me offline. On Tue, Sep 22, 2009 at 10:10 AM, Dave DeVol da...@coldfusioncafe.com wrote: Established internet development company is looking for a web developer who is able to work with minimum supervision on a contract basis. Major duties include: Develop database-driven web applications using ColdFusion 8 and SQL Server 2005. Create and maintain web applications and systems for variety of clients. Identify requirements and propose solutions to meet client goals. Write technical requirements/specifications. Follow defined technical specifications to a high degree of accuracy. Provide troubleshooting and root cause analysis for production issues. Work with creative director and HTML developer to understand client objectives. Assist junior developers. Job Requirements: Candidate must have four or more years of development experience, preferably in a web-based engineering environment. Additional requirements include: Minimum of 6 years of programming web applications using ColdFusion Minimum of 6 years of programming experience using SQL. Proficient in JavaScript, HTML, DHTML, XML, AJAX and CSS. Solid knowledge of web design best practices, web development processes, revision control, web environments, and browser-specific issues. Demonstrated experience in application architecture design and implementation. Demonstrated experience in data handling / manipulation using ADO, ADO.Net, DTS, SSIS, API, SOAP, and XML Demonstrated ability to understand, debug, and maintain legacy code applications. Ability to come up to speed quickly by learning the system and business rules. Ability to multi-task efficiently and prioritize work. Attention to detail, dedication to quality assurance, and thorough follow-through. Send your resume, three URLs of projects you've recently done, and your salary requirement to j...@dealerpeak.com Location: SE Portland, Oregon Compensation: Based on experience. This is a contract job. Principals only. Recruiters, please don't contact this job poster. Please, no phone calls about this job! Please do not contact job poster about other services, products or commercial interests. ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:326498 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: coldfusion barcode
I haven't played with it enough to run into the issue. Sorry. On Tue, Sep 22, 2009 at 10:17 AM, Richard White rich...@j7is.co.uk wrote: Hi Phillip, We have tried this function (even copied and pasted your code) but altering the height does not work, do you have this problem? ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:326499 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
(ot) HTML anchor tag to a UNC path.
I'm building a page that is going to often end in one more more paths to a location on our internal file server. It would be a nice plus if this could be an active anchor link so that users could just click on the link rather then any copying and pasting. Just to be clear this is not a normal link to a HTTP web url. But rather an UNC path to a file server that has no relationship to the web server. I thought this would work if you put 'file:// into the anchor tag, but this does not seem to cut it. Example of the HTML a href=file://%5C%5Cdprhq01%5CPURCurrent$%5Cpur2008%5Cload_logs%5Cload_log_22-Sep-2009_10h11m37s.txt view-source:file:///\\dprhq01\PURCurrent$\pur2008\load_logs\load_log_22-Sep-2009_10h11m37s.txt/a Cutting and pasting an example here, I note the escaping of the slash characters. Could that be a problem? How to not have that escaped in the HTML? Here is the CFML for that line. a href=file://#remoteDir#\#datayear.name##remoteDir#\#datayear.name#/a ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:326500 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: (ot) HTML anchor tag to a UNC path.
Instead of mapping the images directly to the UNC path I would create a virtual folder to the UNC path and then reference that virtual folder for your images. You don;t want to go around exposing your server structure. Plus, I don't think outside of an intranet running on a private network that it will work using the UNC path... I could be wrong though, I have not tested it. In IIS: Right Click on the Site New Virtual Directory Then go through the wizard and you're all set. =] -- Alan Rother Adobe Certified Advanced ColdFusion MX 7 Developer Manager, Phoenix Cold Fusion User Group, AZCFUG.org ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:326501 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: (ot) HTML anchor tag to a UNC path.
Alan Rother wrote: Instead of mapping the images directly to the UNC path I would create a virtual folder to the UNC path and then reference that virtual folder for your images. You don;t want to go around exposing your server structure. Plus, I don't think outside of an intranet running on a private network that it will work using the UNC path... I could be wrong though, I have not tested it. These are not images but rather large text files. This is for an application running on an intranet on a private network. This is the function requested. We do not want to create a virtual host for this purpose. We want to users to know the file path from without the web tool if they so desire. ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:326502 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: (ot) HTML anchor tag to a UNC path.
Ahh.. That makes perfect sense then... Ignore my previous comments... You're testing it using FF right? Read this http://kb.mozillazine.org/Firefox_:_Issues_:_Links_to_Local_Pages_Don%27t_Work =] -- Alan Rother Adobe Certified Advanced ColdFusion MX 7 Developer Manager, Phoenix Cold Fusion User Group, AZCFUG.org ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:326503 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: (ot) HTML anchor tag to a UNC path.
Alan Rother wrote: Ahh.. That makes perfect sense then... Ignore my previous comments... You're testing it using FF right? Read this http://kb.mozillazine.org/Firefox_:_Issues_:_Links_to_Local_Pages_Don%27t_Work =] Yup, using FireFox (what web developer doesn't!). Thanks for the link, I'm glad to have an explanation that doesn't involve my failing memory do to age! Works perfectly in I.E. (For some reason that the locallink plug in doesn't seem to be doing it for me.) Luckily I.E. is the default browser of the user base. ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:326504 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: drop down box
the entire select works looks like this: cfset lookupOptionsArray = listtoarray(Blood,DNA,Other) / cfselect name=sampleType size=1 multiple=no style=width:200px cfloop index=i from=1 to=#arraylen(lookupOptionsArray)# option value=cfoutput#lookupOptionsArray[i]#/cfoutput id=cfoutput#lookupOptionsArray[i]#/cfoutputcfoutput#lookupOptionsArray[i]# /cfoutput/option /cfloop /cfselect i understand that it can be done by other validation means but have lots of drop down boxes and would much prefer to save on the code by allowing the required=yes and corresponding message to handle it thanks for your help Richard, Let me see your entire CFSELECT statement and we should be able to figure out how to get the empty First Option to work for you. It is entirely possible to do what you're trying to do. ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:326505 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: drop down box
Note the initial empty option. Also, note that you only need 1 set of enclosing cfoutput tags. cfset lookupOptionsArray = listtoarray(Blood,DNA,Other) / cfselect name=sampleType size=1 multiple=no style=width:200px required=yes message=Please select a Sample Type to continue. option value=/option cfoutput cfloop index=i from=1 to=#arraylen(lookupOptionsArray)# option value=#lookupOptionsArray[i]##lookupOptionsArray[i]#/option /cfloop /cfoutput /cfselect ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:326506 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: drop down box
thanks Jason, although this doesnt seem to work my end. i copied and pasted the code into the form...the combo is empty at first which is great, but when i click on the submit button without selecting anything in the combo it doesnt show me the message Please select a Sample Type to continue. is this just a problem my end you think? Note the initial empty option. Also, note that you only need 1 set of enclosing cfoutput tags. cfset lookupOptionsArray = listtoarray(Blood,DNA,Other) / cfselect name=sampleType size=1 multiple=no style=width:200px required=yes message=Please select a Sample Type to continue. option value=/option cfoutput cfloop index=i from=1 to=#arraylen(lookupOptionsArray)# option value=#lookupOptionsArray[i]##lookupOptionsArray[i]#/option /cfloop /cfoutput /cfselect ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:326507 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: drop down box
from the docs: Note: This attribute has no effect if you omit the size attribute or set it to 1, because the browser always submits the displayed item. You can work around this issue: format forms by having an initial option tag with value= (notice the space character between the quotation marks). On Tue, Sep 22, 2009 at 12:02 PM, Richard White rich...@j7is.co.uk wrote: thanks Jason, although this doesnt seem to work my end. i copied and pasted the code into the form...the combo is empty at first which is great, but when i click on the submit button without selecting anything in the combo it doesnt show me the message Please select a Sample Type to continue. is this just a problem my end you think? Note the initial empty option. Also, note that you only need 1 set of enclosing cfoutput tags. cfset lookupOptionsArray = listtoarray(Blood,DNA,Other) / cfselect name=sampleType size=1 multiple=no style=width:200px required=yes message=Please select a Sample Type to continue. option value=/option cfoutput cfloop index=i from=1 to=#arraylen(lookupOptionsArray)# option value=#lookupOptionsArray[i]##lookupOptionsArray[i]#/option /cfloop /cfoutput /cfselect ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:326508 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: drop down box
Seems like it. Do you have any custom onSubmit stuff in JS that might be interfering with the CFFORM processing? ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:326509 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Packing directory output to a list
I am new to this, I have tons of directories that I am working on. I want to output the files in each directory to a comma delimited list with each list named after the directory containing the files. So far I have been able to write a code that groups each files underneath each directory but i'm stuck as to the list part, I need help as to packing the output into a list thanks for your assistance. I have gotten as far as this cfset dir = (D:\dox\) cfdirectory name=Getdir action=list directory=#dir# type=All recurse=yes cfquery dbtype=query name=Getfiles SELECT * FROM Getdir ORDER BY directory, name /cfquery CFOUTPUT QUERY=GetBoth GROUP=directory brB#GetBoth.directory#/B/FONTbr CFOUTPUT#GetBoth.name#BR/CFOUTPUT /CFOUTPUT ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:326510 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Packing directory output to a list
I am new to this, I have tons of directories that I am working on. I want to output the files in each directory to a comma delimited list with each list named after the directory containing the files. So far I have been able to write a code that groups each files underneath each directory but i'm stuck as to the list part, I need help as to packing the output into a list thanks for your assistance. I have gotten as far as this cfset dir = (D:\dox\) cfdirectory name=Getdir action=list directory=#dir# type=All recurse=yes cfquery dbtype=query name=Getfiles SELECT * FROM Getdir ORDER BY directory, name /cfquery CFOUTPUT QUERY=GetBoth GROUP=directory brB#GetBoth.directory#/B/FONTbr CFOUTPUT#GetBoth.name#BR/CFOUTPUT /CFOUTPUT ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:326511 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: drop down box
thanks for both your help, i will continue to work out why this is not working on my system, if it is working your end that it has to be something to do with my code!!! thanks again for your help from the docs: Note: This attribute has no effect if you omit the size attribute or set it to 1, because the browser always submits the displayed item. You can work around this issue: format forms by having an initial option tag with value= (notice the space character between the quotation marks). ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:326512 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: drop down box
as the docs Charlie has posted say, the value must be a space, not an empty string: option value= Please select.../option now required=yes should work in your cfselect. Azadi Saryev Sabai-dee.com http://www.sabai-dee.com/ On 23/09/2009 03:25, Richard White wrote: thanks for both your help, i will continue to work out why this is not working on my system, if it is working your end that it has to be something to do with my code!!! thanks again for your help from the docs: Note: This attribute has no effect if you omit the size attribute or set it to 1, because the browser always submits the displayed item. You can work around this issue: format forms by having an initial option tag with value= (notice the space character between the quotation marks). ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:326513 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Packing directory output to a list
try this: CFOUTPUT QUERY=GetBoth GROUP=directory cfset variables[directory] = CFOUTPUTcfset variables[directory] = listappend(variables[directory], name)/CFOUTPUT br#directory# list: #variables[directory]# /CFOUTPUT Azadi Saryev Sabai-dee.com http://www.sabai-dee.com/ On 23/09/2009 03:24, funsho wrote: CFOUTPUT QUERY=GetBoth GROUP=directory brB#GetBoth.directory#/B/FONTbr CFOUTPUT#GetBoth.name#BR/CFOUTPUT /CFOUTPUT ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:326514 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: coldfusion barcode
ok thanks I haven't played with it enough to run into the issue. Sorry. On Tue, Sep 22, 2009 at 10:17 AM, Richard White rich...@j7is.co.uk wrote: Hi Phillip, We have tried this function (even copied and pasted your code) but altering the height does not work, do you have this problem? ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:326515 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: drop down box
thanks for your replies, although the problem with having an empty element or an element saying 'Select one of the following' would cause the required=yes validation not to work as they would still be valid options is there no way to get the required=yes validation to work on these cfselect's That only works for multi-selects. For a single select, whether you're using SELECT or CFSELECT, there will always be something selected, so the REQUIRED attribute test would automatically be met. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:326516 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
jQuery ajax call question
Hi All, I'm working on a proof a concept and some how I cannot get the following script to work: $.each(data.DATA, function(i){ $('#result').append('li' + data.DATA[i][0] + '/li'); }); The error I get is: G is undefined. I have tried different things without success, $(#result).empty().append(data); works OK. This is the whole page : !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.1//EN http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd; html xmlns=http://www.w3.org/1999/xhtml; xml:lang=en head script type=text/javascript src=http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js;/script script type=text/javascript $(function (){ $('#save').click (function (){ $.ajax({ type: 'post', url: 'cfcs/tjq.cfc?method=userreturnFormat=json', data: $(form).serialize(), success: function(data){ //$(#result).empty().append(data); $.each(data.DATA, function(i){ $('#result').append('li' + data.DATA[i][0] + '/li'); }); } }); }); }); /script /head body form action= method= accept-charset=utf-8 label for=firstFirst:/label input id=first name=first type=text label for=lastLast:/label input id=last name=last type=text label for=ageAge:/label input id=age name=age type=text label for=buttons /label input id=save value=Save type=button /form div id=result/div /body /html the data returned by the ajax call is: {COLUMNS:[ID,NAME],DATA:[[6,Me],[7,Choi],[12,Peter],[13,Johnny],[14,Mike],[17,Paul],[24,Bill J],[29,Test],[39,Tech1],[47,Kal],[51,Mara],[83,merry],[84,Salesman],[93,Marry],[129,Paulina],[156,Bellan],[161,Lynn],[162,Vic],[163,Jeremy],[192,Dinad],[211,Jerry],[212,Sal],[213,SQA],[215,SLoc],[319,Mikeee],[375,Barry],[382,Debra],[386,Consum],[444,Sales1],[485,New User],[542,Pinky],[566,Cristina],[591,TestNA],[599,Salem],[706,Alex21],[732,Emil],[805,Justin]]} Thx Victor ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:326517 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: jQuery ajax call question
You should post this on the jQuery list, its a jQuery question... -Original Message- From: Victor Moore [mailto:victor.mo...@gmail.com] Sent: September-22-09 2:59 PM To: cf-talk Subject: jQuery ajax call question Hi All, I'm working on a proof a concept and some how I cannot get the following script to work: $.each(data.DATA, function(i){ $('#result').append('li' + data.DATA[i][0] + '/li'); }); The error I get is: G is undefined. I have tried different things without success, $(#result).empty().append(data); works OK. This is the whole page : !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.1//EN http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd; html xmlns=http://www.w3.org/1999/xhtml; xml:lang=en head script type=text/javascript src=http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js;/scri pt script type=text/javascript $(function (){ $('#save').click (function (){ $.ajax({ type: 'post', url: 'cfcs/tjq.cfc?method=userreturnFormat=json', data: $(form).serialize(), success: function(data){ //$(#result).empty().append(data); $.each(data.DATA, function(i){ $('#result').append('li' + data.DATA[i][0] + '/li'); }); } }); }); }); /script /head body form action= method= accept-charset=utf-8 label for=firstFirst:/label input id=first name=first type=text label for=lastLast:/label input id=last name=last type=text label for=ageAge:/label input id=age name=age type=text label for=buttons /label input id=save value=Save type=button /form div id=result/div /body /html the data returned by the ajax call is: {COLUMNS:[ID,NAME],DATA:[[6,Me],[7,Choi],[12,Peter],[13,Johnn y],[14,Mike],[17,Paul],[24,Bill J],[29,Test],[39,Tech1],[47,Kal],[51,Mara],[83,merry],[84,Salesm an],[93,Marry],[129,Paulina],[156,Bellan],[161,Lynn],[162,Vic],[1 63,Jeremy],[192,Dinad],[211,Jerry],[212,Sal],[213,SQA],[215,SLoc ],[319,Mikeee],[375,Barry],[382,Debra],[386,Consum],[444,Sales1],[ 485,New User],[542,Pinky],[566,Cristina],[591,TestNA],[599,Salem],[706,Ale x21],[732,Emil],[805,Justin]]} Thx Victor ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:326518 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Coldfusion Blowfish Encrypt() differs from output of Blowfish encryption in PHP and other languages
The result of encrypt(myText, key, BLOWFISH, HEX) gives you a value that you can decrypt just fine in coldfusion, but not the same value as you would get if you ran the same encryption (blowfish, hex) using PHP. Basically I need to encrypt some text in coldfusion and send it over to an API that expects the value that PHP's blowfish encryption generates. I've tried padding the myText variable with null characters to fill it so the length is a multiple of 8 (have to use URLDecode(%00) instead of char(0) as the null character, since char(0) doesn't actually increase the length of the string). But that doesn't seem to have much of any effect. Essentially I'm trying to make the result of encrypt(myText, key, BLOWFISH, HEX) match what you get using this tool: http://webnet77.com/cgi-bin/helpers/blowfish.pl this tool seems to output the result that would be generated by php and what the API expects. If someone can make the result of coldfusion's blowfish encryption match what you get using that tool above I would really appreciate it. ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:326519 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Coldfusion Blowfish Encrypt() differs from output of Blowfish encryption in PHP and other languages
The result of encrypt(myText, key, BLOWFISH, HEX) gives you a value that you can decrypt just fine in coldfusion, but not the same value as you would get if you ran the same encryption (blowfish, hex) using PHP. Basically I need to encrypt some text in coldfusion and send it over to an API that expects the value that PHP's blowfish encryption generates. I've tried padding the myText variable with null characters to fill it so the length is a multiple of 8 (have to use URLDecode(%00) instead of char(0) as the null character, since char(0) doesn't actually increase the length of the string). But that doesn't seem to have much of any effect. Essentially I'm trying to make the result of encrypt(myText, key, BLOWFISH, HEX) match what you get using this tool: http://webnet77.com/cgi-bin/helpers/blowfish.pl this tool seems to output the result that would be generated by php and what the API expects. If someone can make the result of coldfusion's blowfish encryption match what you get using that tool above I would really appreciate it. ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:326520 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
CF jQuery - How to delay ajax completion until images are processed...
Got a combination CF jQuery question for those of you who use both.usually, I can get a better response from folks who use CF jQuery than I can from those who use only jQuery. I've got an ajax call (not AJAX call.) that inserts property data into a database then processes from 1 to usually no more than around 10 images, creating multiple sizes, etc. The problem I'm having is that the ajax call, being asynchronous, returns back to the calling page and continues executing instructions before the images are all processed. If I click the button in a success dialog that I have that pops up after the submission and before the images are finished processing, any images that haven't been processed when the button is clicked don't get processed.now, I know to wait for the images to process, but my users are going to go ahead and click close button and interrupt the processing. I couldn't figure out how to setup some kind of callback function to keep everything paused until the images are processed. Here's the jQuery ajax call: $.ajax ({ cache: false, type: 'post', url: 'rentalProperties.cfc?method=mAddRentalPropertyreturnFormat=json', dataType: 'json', data: values, success:function(response) { if ( response.STATUS == 'Success' ) { var rentalPropertyAddDialogHTML = 'rentalPropertyAddDialogHTML.cfm?' + new Date().getTime(); $('.rentalPropertyAddDialog').fadeOut(100); $('.rentalPropertyAddDialog').empty(); $('.rentalPropertyAddResponseDialog').fadeIn(100); fnGetRentalProperties(); } etc. I looked at ajaxSuccess ajaxComplete, but I couldn't see how these could be used in conjunction with the processing taking place in the rentalProperties.cfc file. I think the exact problem area I the code above is the call to the function fnGetRentalProperties(), which goes out to another cfc method and constructs HTML for display before all the data is finished processing. How can I set this up to instruct the browser to wait until all the images are processed, *then* run fnGetRentalProperties. Suggestions? Thanks, Rick --- Those who hammer their guns into plows will plow for those who do not. - Thomas Jefferson ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:326521 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: jQuery ajax call question
It works if I change the call from $.ajax to: $.getJSON('cfcs/tjq.cfc?method=userreturnformat=JSON', function(data) { $.each(data.DATA, function(i){ $('#result').append('lia href=#' + data.DATA[i][0] + ' ' + data.DATA[i][1] + '/a'); }); }); I would be curious to know why. I saw a lot of whitespace when dumping the data. Thx Victor ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:326522 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: CF jQuery - How to delay ajax completion until images are processed...
It sounds like you need a synchronous request e.g.: http://stackoverflow.com/questions/133310/how-can-i-get-jquery-to-perform-a-synchronous-rather-than-asynchronous-ajax-req Of course, if you have to wait for a response, it may be worth simply doing a normal post rather than using ajax. mxAjax / CFAjax docs and other useful articles: http://www.bifrost.com.au/blog/ 2009/9/23 Rick Faircloth r...@whitestonemedia.com: Got a combination CF jQuery question for those of you who use both.usually, I can get a better response from folks who use CF jQuery than I can from those who use only jQuery. I've got an ajax call (not AJAX call.) that inserts property data into a database then processes from 1 to usually no more than around 10 images, creating multiple sizes, etc. The problem I'm having is that the ajax call, being asynchronous, returns back to the calling page and continues executing instructions before the images are all processed. ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:326523 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: CF jQuery - How to delay ajax completion until images are processed...
Thanks for the tip, James... I tried to use the setting async: false in the ajax parameters, but that didn't seem to have any effect. I wish I could somehow let the image processing continue even if the close button on the success dialog is clicked. But that causes the processing to stop. It might work if I weren't re-writing the property list on the screen after adding a property, but that defeats the whole purpose of using ajax. Clients have commented about the length of time it takes for all the image processing to occur. I even tried putting the image processing part of the cfc method into a cfthread, but that didn't seem to help, either. I'll check out your link...perhaps that's the answer. Rick -Original Message- From: James Holmes [mailto:james.hol...@gmail.com] Sent: Tuesday, September 22, 2009 11:01 PM To: cf-talk Subject: Re: CF jQuery - How to delay ajax completion until images are processed... It sounds like you need a synchronous request e.g.: http://stackoverflow.com/questions/133310/how-can-i-get-jquery-to-perform-a- synchronous-rather-than-asynchronous-ajax-req Of course, if you have to wait for a response, it may be worth simply doing a normal post rather than using ajax. mxAjax / CFAjax docs and other useful articles: http://www.bifrost.com.au/blog/ 2009/9/23 Rick Faircloth r...@whitestonemedia.com: Got a combination CF jQuery question for those of you who use both.usually, I can get a better response from folks who use CF jQuery than I can from those who use only jQuery. I've got an ajax call (not AJAX call.) that inserts property data into a database then processes from 1 to usually no more than around 10 images, creating multiple sizes, etc. The problem I'm having is that the ajax call, being asynchronous, returns back to the calling page and continues executing instructions before the images are all processed. ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:326524 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: CF jQuery - How to delay ajax completion until images are processed...
I took a look at the technique discussed at the link and it is just using BlockUI to put up an overlay which blocks screen interaction. However, the problem is, the timing of the disappearance of the overlay is arbitrary...at least as far as I could tell. There's no way to start it and stop it precisely as the ajax function begins and the images processing is complete. I could throw up an overlay without a problem when my ajax call is initiated, but controlling fading out the overlay after the images are processed is the problem...and there could be 1 to 20 images, so the processing time required can vary greatly. Perhaps I may have to rethink using ajax in this situation...or at least modify the approach somewhat to accommodate the timing needs. I had high hopes that setting async: false would solve the problem. But again, I don't think async:false has anything to do with CF trying to process images in the background. Rick -Original Message- From: Rick Faircloth [mailto:r...@whitestonemedia.com] Sent: Tuesday, September 22, 2009 11:13 PM To: cf-talk Subject: RE: CF jQuery - How to delay ajax completion until images are processed... Thanks for the tip, James... I tried to use the setting async: false in the ajax parameters, but that didn't seem to have any effect. I wish I could somehow let the image processing continue even if the close button on the success dialog is clicked. But that causes the processing to stop. It might work if I weren't re-writing the property list on the screen after adding a property, but that defeats the whole purpose of using ajax. Clients have commented about the length of time it takes for all the image processing to occur. I even tried putting the image processing part of the cfc method into a cfthread, but that didn't seem to help, either. I'll check out your link...perhaps that's the answer. Rick -Original Message- From: James Holmes [mailto:james.hol...@gmail.com] Sent: Tuesday, September 22, 2009 11:01 PM To: cf-talk Subject: Re: CF jQuery - How to delay ajax completion until images are processed... It sounds like you need a synchronous request e.g.: http://stackoverflow.com/questions/133310/how-can-i-get-jquery-to-perform-a- synchronous-rather-than-asynchronous-ajax-req Of course, if you have to wait for a response, it may be worth simply doing a normal post rather than using ajax. mxAjax / CFAjax docs and other useful articles: http://www.bifrost.com.au/blog/ 2009/9/23 Rick Faircloth r...@whitestonemedia.com: Got a combination CF jQuery question for those of you who use both.usually, I can get a better response from folks who use CF jQuery than I can from those who use only jQuery. I've got an ajax call (not AJAX call.) that inserts property data into a database then processes from 1 to usually no more than around 10 images, creating multiple sizes, etc. The problem I'm having is that the ajax call, being asynchronous, returns back to the calling page and continues executing instructions before the images are all processed. ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:326525 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: CF jQuery - How to delay ajax completion until images are processed...
Rick... Are you using the GET/POIST methods, or using the AJAX methods from within jQuery? AJAX is gonna be your best bet as it's got more options. andy -Original Message- From: Rick Faircloth [mailto:r...@whitestonemedia.com] Sent: Tuesday, September 22, 2009 10:13 PM To: cf-talk Subject: RE: CF jQuery - How to delay ajax completion until images are processed... Thanks for the tip, James... I tried to use the setting async: false in the ajax parameters, but that didn't seem to have any effect. I wish I could somehow let the image processing continue even if the close button on the success dialog is clicked. But that causes the processing to stop. It might work if I weren't re-writing the property list on the screen after adding a property, but that defeats the whole purpose of using ajax. Clients have commented about the length of time it takes for all the image processing to occur. I even tried putting the image processing part of the cfc method into a cfthread, but that didn't seem to help, either. I'll check out your link...perhaps that's the answer. Rick -Original Message- From: James Holmes [mailto:james.hol...@gmail.com] Sent: Tuesday, September 22, 2009 11:01 PM To: cf-talk Subject: Re: CF jQuery - How to delay ajax completion until images are processed... It sounds like you need a synchronous request e.g.: http://stackoverflow.com/questions/133310/how-can-i-get-jquery-to-perform-a- synchronous-rather-than-asynchronous-ajax-req Of course, if you have to wait for a response, it may be worth simply doing a normal post rather than using ajax. mxAjax / CFAjax docs and other useful articles: http://www.bifrost.com.au/blog/ 2009/9/23 Rick Faircloth r...@whitestonemedia.com: Got a combination CF jQuery question for those of you who use both.usually, I can get a better response from folks who use CF jQuery than I can from those who use only jQuery. I've got an ajax call (not AJAX call.) that inserts property data into a database then processes from 1 to usually no more than around 10 images, creating multiple sizes, etc. The problem I'm having is that the ajax call, being asynchronous, returns back to the calling page and continues executing instructions before the images are all processed. ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:326526 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: CF jQuery - How to delay ajax completion until images are processed...
It's $.ajax and post method. So far, I haven't been able to figure any way to cause the $.ajax call to wait for the images to be processed before continuing. I've look at ajaxComplete, ajaxSuccess, using cfthread in the cfc method, breaking the script into two parts, using async:false setting in the $.ajax settings... nothing seems to have the desired effect. If there was just some way I could get a variable or something that would only be sent once the images completed processing and then somehow to set up something to wait for that data to show up, as in a loop within the call back or something. But I can't think of anything I could use like that. It seems no matter what I do on the CF backend in the cfc, the ajax call is going to skip right over the processing and head back to the calling page and I can't find a way to control the events in the callback. Rick -Original Message- From: lists [mailto:li...@commadelimited.com] Sent: Tuesday, September 22, 2009 11:39 PM To: cf-talk Subject: RE: CF jQuery - How to delay ajax completion until images are processed... Rick... Are you using the GET/POIST methods, or using the AJAX methods from within jQuery? AJAX is gonna be your best bet as it's got more options. andy -Original Message- From: Rick Faircloth [mailto:r...@whitestonemedia.com] Sent: Tuesday, September 22, 2009 10:13 PM To: cf-talk Subject: RE: CF jQuery - How to delay ajax completion until images are processed... Thanks for the tip, James... I tried to use the setting async: false in the ajax parameters, but that didn't seem to have any effect. I wish I could somehow let the image processing continue even if the close button on the success dialog is clicked. But that causes the processing to stop. It might work if I weren't re-writing the property list on the screen after adding a property, but that defeats the whole purpose of using ajax. Clients have commented about the length of time it takes for all the image processing to occur. I even tried putting the image processing part of the cfc method into a cfthread, but that didn't seem to help, either. I'll check out your link...perhaps that's the answer. Rick -Original Message- From: James Holmes [mailto:james.hol...@gmail.com] Sent: Tuesday, September 22, 2009 11:01 PM To: cf-talk Subject: Re: CF jQuery - How to delay ajax completion until images are processed... It sounds like you need a synchronous request e.g.: http://stackoverflow.com/questions/133310/how-can-i-get-jquery-to-perform-a- synchronous-rather-than-asynchronous-ajax-req Of course, if you have to wait for a response, it may be worth simply doing a normal post rather than using ajax. mxAjax / CFAjax docs and other useful articles: http://www.bifrost.com.au/blog/ 2009/9/23 Rick Faircloth r...@whitestonemedia.com: Got a combination CF jQuery question for those of you who use both.usually, I can get a better response from folks who use CF jQuery than I can from those who use only jQuery. I've got an ajax call (not AJAX call.) that inserts property data into a database then processes from 1 to usually no more than around 10 images, creating multiple sizes, etc. The problem I'm having is that the ajax call, being asynchronous, returns back to the calling page and continues executing instructions before the images are all processed. ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:326527 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: CF jQuery - How to delay ajax completion until images are processed...
async: false should be doing the job. To be sure, your code looks something like that example: jQuery.ajax({ url:'http://example.com/catalog/create/' + targetNode.id + '?name=' + encode(to.inp[0].value), success: function(result) { if(result.isOk == false) alert(result.message); }, async: false }); right? mxAjax / CFAjax docs and other useful articles: http://www.bifrost.com.au/blog/ 2009/9/23 Rick Faircloth r...@whitestonemedia.com: It's $.ajax and post method. So far, I haven't been able to figure any way to cause the $.ajax call to wait for the images to be processed before continuing. I've look at ajaxComplete, ajaxSuccess, using cfthread in the cfc method, breaking the script into two parts, using async:false setting in the $.ajax settings... nothing seems to have the desired effect. If there was just some way I could get a variable or something that would only be sent once the images completed processing and then somehow to set up something to wait for that data to show up, as in a loop within the call back or something. But I can't think of anything I could use like that. It seems no matter what I do on the CF backend in the cfc, the ajax call is going to skip right over the processing and head back to the calling page and I can't find a way to control the events in the callback. Rick -Original Message- From: lists [mailto:li...@commadelimited.com] Sent: Tuesday, September 22, 2009 11:39 PM To: cf-talk Subject: RE: CF jQuery - How to delay ajax completion until images are processed... Rick... Are you using the GET/POIST methods, or using the AJAX methods from within jQuery? AJAX is gonna be your best bet as it's got more options. andy -Original Message- From: Rick Faircloth [mailto:r...@whitestonemedia.com] Sent: Tuesday, September 22, 2009 10:13 PM To: cf-talk Subject: RE: CF jQuery - How to delay ajax completion until images are processed... Thanks for the tip, James... I tried to use the setting async: false in the ajax parameters, but that didn't seem to have any effect. I wish I could somehow let the image processing continue even if the close button on the success dialog is clicked. But that causes the processing to stop. It might work if I weren't re-writing the property list on the screen after adding a property, but that defeats the whole purpose of using ajax. Clients have commented about the length of time it takes for all the image processing to occur. I even tried putting the image processing part of the cfc method into a cfthread, but that didn't seem to help, either. I'll check out your link...perhaps that's the answer. Rick -Original Message- From: James Holmes [mailto:james.hol...@gmail.com] Sent: Tuesday, September 22, 2009 11:01 PM To: cf-talk Subject: Re: CF jQuery - How to delay ajax completion until images are processed... It sounds like you need a synchronous request e.g.: http://stackoverflow.com/questions/133310/how-can-i-get-jquery-to-perform-a- synchronous-rather-than-asynchronous-ajax-req Of course, if you have to wait for a response, it may be worth simply doing a normal post rather than using ajax. mxAjax / CFAjax docs and other useful articles: http://www.bifrost.com.au/blog/ 2009/9/23 Rick Faircloth r...@whitestonemedia.com: Got a combination CF jQuery question for those of you who use both.usually, I can get a better response from folks who use CF jQuery than I can from those who use only jQuery. I've got an ajax call (not AJAX call.) that inserts property data into a database then processes from 1 to usually no more than around 10 images, creating multiple sizes, etc. The problem I'm having is that the ajax call, being asynchronous, returns back to the calling page and continues executing instructions before the images are all processed. ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:326528 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4