CF Wiki
I know about SeedWiki and the option to get its source code. Are there any other installable CF Wiki's I can look at? ~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207624 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
RE: _Structures_vs._"Real_Structures"
Sorry, I meant using getName() on those returns the class names... typing too fast as usual. -Original Message- From: James Holmes [mailto:[EMAIL PROTECTED] Sent: Wednesday, 25 May 2005 12:35 To: CF-Talk Subject: RE: _Structures_vs._"Real_Structures" Yes, using getClass() on those returns coldfusion.filter.FormScope for the form scope and coldfusion.runtime.Struct for the struct. Working through Super classes from there, the form scope goes back through some CF scope classes to java.util.AbstractMap, while the struct goes back through coldfusion.util.FastHashtable to java.util.Hashtable. ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207623 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
Running MS Access macro in Coldfusion
Hi, I have created a Macro in MS Access and when I try to run the macro in ColdFusion it is giving "Undefined" error.Is there any setting I need to change so that I can run the macro in CF? I would appreciate if anyone could help me out with this. Thanks ~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207622 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
RE: _Structures_vs._"Real_Structures"
Yes, using getClass() on those returns coldfusion.filter.FormScope for the form scope and coldfusion.runtime.Struct for the struct. Working through Super classes from there, the form scope goes back through some CF scope classes to java.util.AbstractMap, while the struct goes back through coldfusion.util.FastHashtable to java.util.Hashtable. -Original Message- From: S. Isaac Dealey [mailto:[EMAIL PROTECTED] Sent: Wednesday, 25 May 2005 11:44 To: CF-Talk Subject: RE:_Structures_vs._"Real_Structures" >> -Original Message- >> From: Rebecca Wells [mailto:[EMAIL PROTECTED] >> Sent: Tuesday, May 24, 2005 5:30 PM >> To: CF-Talk >> Subject: Structures vs. "Real Structures" >> >> This reminds me of something that my boss and I argued about... I >> said that query recordsets and forms are structures, and he said that >> it's not the same kind of structure as a struct(), that the structure >> function is better because it's indexed and that the query and forms >> are not "real structures". Which is true? Technically the scope are not the same class as structures created with StructNew(), however, I would be willing to bet that they are a sub-class of the same class of structures created with StructNew() and as a result their indexing is identical. You can see the difference (some of it anyway) with something like this: Did I get that right guys? It's late and I don't have time to look it up to be sure. :) ~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207621 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
RE:_Structures_vs._"Real_Structures"
>> -Original Message- >> From: Rebecca Wells [mailto:[EMAIL PROTECTED] >> Sent: Tuesday, May 24, 2005 5:30 PM >> To: CF-Talk >> Subject: Structures vs. "Real Structures" >> >> This reminds me of something that my boss and I argued >> about... I said >> that query recordsets and forms are structures, and he >> said that it's not >> the same kind of structure as a struct(), that the >> structure function is >> better because it's indexed and that the query and forms >> are not "real >> structures". Which is true? Technically the scope are not the same class as structures created with StructNew(), however, I would be willing to bet that they are a sub-class of the same class of structures created with StructNew() and as a result their indexing is identical. You can see the difference (some of it anyway) with something like this: Did I get that right guys? It's late and I don't have time to look it up to be sure. :) s. isaac dealey 954.522.6080 new epoch : isn't it time for a change? add features without fixtures with the onTap open source framework http://www.fusiontap.com http://coldfusion.sys-con.com/author/4806Dealey.htm ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207620 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
RE:_Structures_vs._"Real_Structures"
> But as I said you can use most array functions on query > columns (generally > those that don't affect the order or the number of items > in the array). > Want a total of a column of numbers? Don't loop! Use > ArraySum(queryname.columname). > It's pretty powerful stuff when you know the limitations. I've found these to be "syntactically flaky" between cf5 and cfmx -- that is -- syntax which allows you to use a query column with an array function with CF5 won't work on MX or vice versa. On a given version, there are consistent behaviors and I ended up creating a QueryColumnToArray() function to control the syntax for this purpose. s. isaac dealey 954.522.6080 new epoch : isn't it time for a change? add features without fixtures with the onTap open source framework http://www.fusiontap.com http://coldfusion.sys-con.com/author/4806Dealey.htm ~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207619 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
ANNOUNCE: MiniMAX 6/28/05 free web programming event
MiniMAX http://www.minimaxconfernce.com/ is a free web programmer (CF, Flash, Dreamweaver etc) event on Tues 6/28/05 7pm at CFUNITED hotel in Bethesda. MiniMAX needs volunteers to help - post fliers at book stores, computer stores, colleges etc - help run event - registration Volunteers will coordinate with the organizer Adam Bell and will qualify for Team CFUNITED membership. If you are interested email me Michael Smith at [EMAIL PROTECTED] -- Due to TeraTech's growth we are seeking winning sales people to sell custom software. For more details: http://www.teratech.com/index.cfm?go=About.JobDetail&JobID=3 Michael Smith, TeraTech, Inc 405 E Gude Dr Ste 207, Rockville MD 20850 Voice: +1-301-424-3903 x110 Fax:301-762-8185 Web: http://www.teratech.com/sig/ Email: mailto:[EMAIL PROTECTED] ICQ: 66057682 Winner in CFDJ awards Best Consulting. Member Team Fusebox. ~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207618 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
Captivate list?
Is there a captivate list out there or do I have to start one? I'd like to export a captivate audio clip to wav format. I did a 5 minute intro to my "consuming web services" presentation for CFUNITED and want to provide it as a 'podcast' without re-recording it. ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207617 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
Re: Returning XML data via a CFC?
Pete, As Sean noted in his post, the return value is encoded as a WDDX packet. You will need to use the WDDX deserializer object to unencode the string. In your js function that handles the data once the XMLHTTP request has returned you can use an alert to see the raw packet, this way you will know if your CFC is indeed returning the valid information. Here is some code that may be helpful: SELECT C.ID, C.fname, C.lname FROMtblContacts C WHERE C.contactTypeID = (SELECT id FROM tblContactTypes WHERE typename = 'individual') AND C.organizationid = ORDER BYC.fname, C.lname #getContacts.id# #getContacts.fname# #getContacts.lname# Javascript Code: var isMozilla = ((document.all) ? false : true); function getXmlHttpConn() { var xhttp = null; try { if (! isMozilla) { xhttp = new ActiveXObject("Microsoft.XMLHTTP"); } else { xhttp = new XMLHttpRequest(); } } catch (e) { alert("An error has occurred while attempting to get a connection to the server!"); } return xhttp; } function getRequest(method, url, async, func) { var xmlHttpConn = getXmlHttpConn(); if (xmlHttpConn != null) { try { xmlHttpConn.open(method, url, async); xmlHttpConn.onreadystatechange = function() { if (xmlHttpConn.readyState == 4) { processRequest(xmlHttpConn.responseText, func); } } xmlHttpConn.send(null); } catch (e) { alert(e.description); } } } function processRequest(rs, func) { alert(rs); if (isMozilla) { des = new WddxDeserializer; } else { des = new WddxDeserializerForIE; } var xmlTextStr = des.deserialize(rs); if (func) { func(xmlTextStr); } } Please let me know if you need some more help with this. HTH Best Regards, -- Donnie Bachan Website: http://www.islandwizards.com Blog: http://angrytrini.blogspot.com "Nitendo Vinces - By Striving You Shall Conquer" == The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer. ~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207616 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
RE: Structures vs. "Real Structures"
> -Original Message- > From: Rebecca Wells [mailto:[EMAIL PROTECTED] > Sent: Tuesday, May 24, 2005 6:58 PM > To: CF-Talk > Subject: RE: Structures vs. "Real Structures" > > So, if you can't just use the structname[structKey] kind of reference for > a query then how can you reference reference a query value using this > model, if at all? You can use either dot or indexed notation to access the query, just not structure functions to work with it. For example you CAN do queryname.columnname - this is exactly like doing structure.keyname. You can also do queryname["columnname"]. However you can't do StructClear(queryname). But as I said you can use most array functions on query columns (generally those that don't affect the order or the number of items in the array). Want a total of a column of numbers? Don't loop! Use ArraySum(queryname.columname). It's pretty powerful stuff when you know the limitations. Jim Davis ~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207615 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
re: CFFORM + FLASH
for one you are trying to be sneaky with the password variable which of course can/will/shall come back to bite you in the ass. but, since this is what you are doing why not add some .as script to the filed just like you did with pw filed? onsubmit="if( numberOfReplies.text != '---' ) alert('please select an email option'); return false;²> ~Dave the disruptor~ From: Stuart Kidd <[EMAIL PROTECTED]> Sent: Tuesday, May 24, 2005 4:57 PM To: CF-Talk Subject: CFFORM + FLASH Hi guys, I¹m using the CFFORM tag and wanted to add some extra validation. My tag is like so: action = "/?kissMyDate=yes" format = "Flash" skin = "haloBlue" width = "400" height="420" name="Part1" onsubmit="if( password.text != '#GetUser.password#' ) { alert('Password is incorrect'); return false;}²> I added the password validation and that worked no problem, but now I¹d like to make sure that a user always makes a selection from a combo box and NOT choose the value which is ³² ( value="">---). value="#GetAdvert.numberOfReplies#" selected>Currently: #GetAdvert.numberOfReplies# --- 5 10 25 Unlimited No more, I've had enough! As it stands if the user chooses value="">--- the form doesn¹t have an error pop up. I thought of either doing some javascript in the cfselect or possibly adding something to the tag similar to the onsubmit. action = "/?kissMyDate=yes" format = "Flash" skin = "haloBlue" width = "400" height="420" name="Part1" onsubmit="if( password.text != '#GetUser.password#' ) { alert('Password is incorrect'); return false;} onsubmit="if( numberOfReplies.text != '' ) { alert('Please choose max emails to receive'); return false;}²> Unfortunately the above comes up with an error. If anyone could help it would be greatly appreciated. Thanks, Saturday ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207614 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
Re: js popup resizing ?
I forgot to mention there is a seperate page with more js in it that does the resizing oopsy on me, sorry bout that ~Dave the disruptor~ From: "Bryan Stevenson" <[EMAIL PROTECTED]> Sent: Tuesday, May 24, 2005 8:28 PM To: CF-Talk Subject: Re: js popup resizing ? hehe...well in this case I think the "other" browsers may simply be accomodating the image size...cause that code sure as hell don't re-size anything ;-) Bryan Stevenson B.Comm. VP & Director of E-Commerce Development Electric Edge Systems Group Inc. phone: 250.480.0642 fax: 250.480.1264 cell: 250.920.8830 e-mail: [EMAIL PROTECTED] web: www.electricedgesystems.com/tiny.cfm/54 ~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207613 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
Re: js popup resizing ?
i dunno but it seems to work in any browser that was designed after the advent of underoos :) heres where i got it from (you didn't think i could actually do it myself did you?) http://www.sitepoint.com/print/resize-popup-fit-images-size ~Dave the disruptor~ From: "Bryan Stevenson" <[EMAIL PROTECTED]> Sent: Tuesday, May 24, 2005 8:28 PM To: CF-Talk Subject: Re: js popup resizing ? hehe...well in this case I think the "other" browsers may simply be accomodating the image size...cause that code sure as hell don't re-size anything ;-) Bryan Stevenson B.Comm. VP & Director of E-Commerce Development Electric Edge Systems Group Inc. phone: 250.480.0642 fax: 250.480.1264 cell: 250.920.8830 e-mail: [EMAIL PROTECTED] web: www.electricedgesystems.com/tiny.cfm/54 ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207612 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
Re: js popup resizing ?
hehe...well in this case I think the "other" browsers may simply be accomodating the image size...cause that code sure as hell don't re-size anything ;-) Bryan Stevenson B.Comm. VP & Director of E-Commerce Development Electric Edge Systems Group Inc. phone: 250.480.0642 fax: 250.480.1264 cell: 250.920.8830 e-mail: [EMAIL PROTECTED] web: www.electricedgesystems.com/tiny.cfm/54 ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207611 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
RE: js popup resizing ?
well dammit!! dont have time 4 that. Spent enough time making damn png's work in the crappy browser, have I ever mentioned the IE sux? ~Dave the disruptor~ From: "Dawson, Michael" <[EMAIL PROTECTED]> Sent: Tuesday, May 24, 2005 8:02 PM To: CF-Talk Subject: RE: js popup resizing ? GFI MailSecurity's HTML threat engine found HTML scripts in this email and has disabled them. That is a user-configurable setting in the browser. For example, I may have FF set to auto-scale the images (no scroll bars), but in IE, I want to see them full-size (potential scroll bars). You can't expect this behavior for each of your users. You would be better off resizing the images before you send them to the browser. Or, at least, scale them using IMG HEIGHT and WIDTH attributes. M!ke -Original Message- From: dave [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 24, 2005 6:37 PM To: CF-Talk Subject: js popup resizing ? ina ll the good browsers this script auto resizes to the pics size but in ie it doesn't, it just goes to the 200 x 200 is there a hack for it? thanks ~Dave the disruptor~ ~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207610 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
Re: js popup resizing ?
good browsers = one that doesnt start with an I or end with an E ;) I dunno but it seems to work (in the good browsers) http://www.icandfashion.com/candstore/katie.cfm ~Dave the disruptor~ From: "Bryan Stevenson" <[EMAIL PROTECTED]> Sent: Tuesday, May 24, 2005 7:58 PM To: CF-Talk Subject: Re: js popup resizing ? How the heck does that change the window size in any browser? looks to me that it hardcodes the window size to 200x200...which is what IE is doing...what's that about the good browsers Dave?? ;-) Bryan Stevenson B.Comm. VP & Director of E-Commerce Development Electric Edge Systems Group Inc. phone: 250.480.0642 fax: 250.480.1264 cell: 250.920.8830 e-mail: [EMAIL PROTECTED] web: www.electricedgesystems.comcfm/54 ~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207609 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
RE: js popup resizing ?
GFI MailSecurity's HTML threat engine found HTML scripts in this email and has disabled them.That is a user-configurable setting in the browser. For example, I may have FF set to auto-scale the images (no scroll bars), but in IE, I want to see them full-size (potential scroll bars). You can't expect this behavior for each of your users. You would be better off resizing the images before you send them to the browser. Or, at least, scale them using IMG HEIGHT and WIDTH attributes. M!ke -Original Message- From: dave [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 24, 2005 6:37 PM To: CF-Talk Subject: js popup resizing ? ina ll the good browsers this script auto resizes to the pics size but in ie it doesn't, it just goes to the 200 x 200 is there a hack for it? thanks ~Dave the disruptor~ ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207608 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
Re: js popup resizing ?
On Tuesday 24 May 2005 16:57, Bryan Stevenson wrote: > How the heck does that change the window size in any browser? looks to me > that it hardcodes the window size to 200x200...which is what IE is > doing...what's that about the good browsers Dave?? ;-);-) Uh oh... *donning asbestos pajamas* -- Richard S. Crawford Programmer III UC Davis Extension Distance Education Group 2901 K Street Sacramento, CA 95816 (916)327-7793 http://unexdlc.ucdavis.edu ~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207607 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
Re: js popup resizing ?
How the heck does that change the window size in any browser? looks to me that it hardcodes the window size to 200x200...which is what IE is doing...what's that about the good browsers Dave?? ;-) Bryan Stevenson B.Comm. VP & Director of E-Commerce Development Electric Edge Systems Group Inc. phone: 250.480.0642 fax: 250.480.1264 cell: 250.920.8830 e-mail: [EMAIL PROTECTED] web: www.electricedgesystems.comcfm/54 ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207606 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
js popup resizing ?
ina ll the good browsers this script auto resizes to the pics size but in ie it doesn't, it just goes to the 200 x 200 is there a hack for it? function PopupPic(sPicURL) { window.open( "popup.cfm?"+sPicURL, "", "resizable=1,HEIGHT=200,WIDTH=200"); } thanks ~Dave the disruptor~ ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207605 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
Re: Returning XML data via a CFC?
On 5/24/05, Pete Ruckelshaus <[EMAIL PROTECTED]> wrote: > I get back a blank page. There is some whitespace (CR/LF's, tabs). If you return a value from a CFC, it's only useful if you call it from other CF code. If you attempt to call it via the browser as you are doing, then the Servlet API encodes the result to WDDX so that it can guarantee it's a string. Do View Source in your browser to see what's happening. > I'm trying to access the CFC directly and return XML data so that I > can use it in an xmlhttp.request transaction to populate some form > fields, sort of like Google suggest. If you are trying to write to the HTTP response buffer (i.e., do output) then specify returntype="void" otherwise you will have problems. -- Sean A Corfield -- http://corfield.org/ Team Fusebox -- http://fusebox.org/ Got Gmail? -- I have 50, yes 50, invites to give away! "If you're not annoying somebody, you're not really alive." -- Margaret Atwood ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207604 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
Re: Structures vs. "Real Structures"
actually you can... queryname.columnName[rowNumber] (which is a way to loop over query data in cfscript) On 5/24/05, Rebecca Wells <[EMAIL PROTECTED]> wrote: > So, if you can't just use the structname[structKey] kind of reference for a > query then how can you reference reference a query value using this model, if > at all? > > >> -Original Message- > > > >The FORM scope (and all other scopes) are plain-jane structs - there's no > >real difference between them and a struct()-generated structure. You can > >use all the struct functions on scopes. > > > >A query is more complex: it's actually a structure of arrays (each column is > >an array). You can't use many of the struct functions on queries however, > >but you can use most of the array functions on query columns. > > > >I'm not sure if this makes it better or worse, but there it is. > > > >Jim Davis > > ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207603 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
Re: Security Issue?
It's a public webpage. No SSL. The ID variable simply specifies which news story to view. Dave Kevin Aebig wrote: > It could be a homemade spider from overseas. In what context is the page > called? Is it an include, a website page, webapp page? Is it under SSL? Is > it protected in any way? > > Kevin > > -Original Message- > From: David Delbridge [mailto:[EMAIL PROTECTED] > Sent: Tuesday, May 24, 2005 1:52 PM > To: CF-Talk > Subject: Re: Security Issue? > > > I'm afraid not. The offending characters arrived unpromted in the URL. > > Dave > > Kevin Aebig wrote: > > >>My guess is that you're using CFencrypt on a variable before you pass it >>through a query param. Is this the case? >> >>Kevin >> >>-Original Message- >>From: David Delbridge [mailto:[EMAIL PROTECTED] >>Sent: Tuesday, May 24, 2005 10:57 AM >>To: CF-Talk >>Subject: Security Issue? >> >> >>Hi all, >> >>Does anybody recognize this URL string pattern (%C2%A0%C2%A0It) as a >>security exploit? For example: >> >>http://www.mywebsite.com/form.cfm?ID=89%C2%A0%C2%A0It >> >>It produces the following error in CF: >> >>Incorrect syntax near 'Â'. >> >>SQL = "select * from DbName >>where (ID = 89Â Â It)" >> >>I've received a few of these in the past 24 hours, all from Inktomi's IP >>block. A Google search turns up nothing useful. >> >>Any ideas? >> >>Dave >> >>-- >> >>David M. Delbridge >>Circa 3000 >>ColdFusion Hosting >>http://www.circa3k.com >>866-CIRCA3K (247-2235) >>Outside U.S: +1.775-832-2445 >> >> >> >> >> > > > > > ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207602 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
RE: Structures vs. "Real Structures"
So, if you can't just use the structname[structKey] kind of reference for a query then how can you reference reference a query value using this model, if at all? >> -Original Message- > >The FORM scope (and all other scopes) are plain-jane structs - there's no >real difference between them and a struct()-generated structure. You can >use all the struct functions on scopes. > >A query is more complex: it's actually a structure of arrays (each column is >an array). You can't use many of the struct functions on queries however, >but you can use most of the array functions on query columns. > >I'm not sure if this makes it better or worse, but there it is. > >Jim Davis ~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207601 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
Re: next and previous records
You're not passing your variables. On 5/20/05, WebStop Internet Services wrote: > Help! This keeps failing after the first 25 records are displayed and it > shows all records in the database 25 at a time not just the ones queried > originally by say company_name. Anyone know why? > > > > > > > datasource="LOADDATA"> > SELECT > company_name, > container_no, > billdate,LOADDATA.ID, > SUM(("IN" - out) * rate) AS total_rate, > SUM("IN" - out) AS OnHand > FROM > rate_calc > WHERE BILLDATE > '#DateFormat(todayDate, > "mm/dd/yy")#' > WHERE BILLDATE < '#DateFormat(todayDate, > "mm/dd/yy")#' > WHERE BILLDATE = '#DateFormat(todayDate, > "mm/dd/yy")#' > WHERE COMPANY_NAME = > '#company_name#' > WHERE CONTAINER_NO = > '#container_no#' > > GROUP BY > company_name, > container_no, > billdate, LOADDATA.ID > ORDER BY company_name, CONTAINER_NO, BILLDATE > > ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207600 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
RE: Structures vs. "Real Structures"
> -Original Message- > From: Rebecca Wells [mailto:[EMAIL PROTECTED] > Sent: Tuesday, May 24, 2005 5:30 PM > To: CF-Talk > Subject: Structures vs. "Real Structures" > > This reminds me of something that my boss and I argued about... I said > that query recordsets and forms are structures, and he said that it's not > the same kind of structure as a struct(), that the structure function is > better because it's indexed and that the query and forms are not "real > structures". Which is true? The FORM scope (and all other scopes) are plain-jane structs - there's no real difference between them and a struct()-generated structure. You can use all the struct functions on scopes. A query is more complex: it's actually a structure of arrays (each column is an array). You can't use many of the struct functions on queries however, but you can use most of the array functions on query columns. I'm not sure if this makes it better or worse, but there it is. Jim Davis ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207599 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
RE: Security Issue?
It could be a homemade spider from overseas. In what context is the page called? Is it an include, a website page, webapp page? Is it under SSL? Is it protected in any way? Kevin -Original Message- From: David Delbridge [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 24, 2005 1:52 PM To: CF-Talk Subject: Re: Security Issue? I'm afraid not. The offending characters arrived unpromted in the URL. Dave Kevin Aebig wrote: > My guess is that you're using CFencrypt on a variable before you pass it > through a query param. Is this the case? > > Kevin > > -Original Message- > From: David Delbridge [mailto:[EMAIL PROTECTED] > Sent: Tuesday, May 24, 2005 10:57 AM > To: CF-Talk > Subject: Security Issue? > > > Hi all, > > Does anybody recognize this URL string pattern (%C2%A0%C2%A0It) as a > security exploit? For example: > > http://www.mywebsite.com/form.cfm?ID=89%C2%A0%C2%A0It > > It produces the following error in CF: > > Incorrect syntax near 'Â'. > > SQL = "select * from DbName > where (ID = 89Â Â It)" > > I've received a few of these in the past 24 hours, all from Inktomi's IP > block. A Google search turns up nothing useful. > > Any ideas? > > Dave > > -- > > David M. Delbridge > Circa 3000 > ColdFusion Hosting > http://www.circa3k.com > 866-CIRCA3K (247-2235) > Outside U.S: +1.775-832-2445 > > > > > ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207598 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
RE: Structures vs. "Real Structures"
I'm not sure you could actually make an argument one way or another. Like most tools, they're better than the other depending on the situation. To say that one is "real" is to assume the other is "fake"... and everyone knows thats not the case. Kevin -Original Message- From: Rebecca Wells [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 24, 2005 3:30 PM To: CF-Talk Subject: Structures vs. "Real Structures" This reminds me of something that my boss and I argued about... I said that query recordsets and forms are structures, and he said that it's not the same kind of structure as a struct(), that the structure function is better because it's indexed and that the query and forms are not "real structures". Which is true? >> There are generally two reasons for something like that: >> >> 1) The code is very old - we've still got code from CF 2.0 >> around and it's pretty damn nasty. ;^) A lot of the stuff >> we take for granted (structs, scopes as structs, even arrays) >> didn't exist in earlier versions of the language. > >In this case, I don't think that's an excuse, since CF has had >FORM.FIELDNAMES since CF 2.0, at least. That's what it was there for - to >let you get a list of the form fields so you could process them. Now, of >course, we have the Form scope exposed as a structure, which is nicer, but >the required functionality for generalized form handlers has been there all >the time. ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207597 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
Re: Java and JVM page in CF Administrator
sounds like you have the J2EE version with full Jrun. In this case the CFAdmin tool doesn't have this. You can use the JMC, I think its fixed now, used to have a bug that messedup your JVM settings. Personally, I mod these directly. See JRun/bin for your jvm.config. Note by default, this file applies to all JRun instances. DK On 5/24/05, B G <[EMAIL PROTECTED]> wrote: > > This question is in regards to CFMX 6.1 Enterprise. > > I am working on a box I inherited and in the admin there is no link to the > Java and JVM settings. I have never seen this before and I have no idea > where to even look to correct this. Could the installation be corrupt? All > CF pages seem to behave correctly but I cannot edit the Class Path for a > new > app I am trying to install. > > Any ideas? Thanks in advance! > > BG > > > > ~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207596 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
Re: Returning XML data via a CFC?
Dave, I get back a blank page. There is some whitespace (CR/LF's, tabs). No error messages. Donnie, I'm trying to access the CFC directly and return XML data so that I can use it in an xmlhttp.request transaction to populate some form fields, sort of like Google suggest. Thanks Pete ~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207595 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
Nest query inside structure in CFMX web service?
I would like to nest a query object inside of a structure that is returned by a web service I'm building. The web service is to be consumed by CFMX. I thought I had it working at one point, but now I get an ugly error that says the QueryBean cannot be deserialized. So, now I'm wondering if I imagined my initial success. Is what I want to do legal? Thanks in advance, Ben Mueller ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207594 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
Structures vs. "Real Structures"
This reminds me of something that my boss and I argued about... I said that query recordsets and forms are structures, and he said that it's not the same kind of structure as a struct(), that the structure function is better because it's indexed and that the query and forms are not "real structures". Which is true? >> There are generally two reasons for something like that: >> >> 1) The code is very old - we've still got code from CF 2.0 >> around and it's pretty damn nasty. ;^) A lot of the stuff >> we take for granted (structs, scopes as structs, even arrays) >> didn't exist in earlier versions of the language. > >In this case, I don't think that's an excuse, since CF has had >FORM.FIELDNAMES since CF 2.0, at least. That's what it was there for - to >let you get a list of the form fields so you could process them. Now, of >course, we have the Form scope exposed as a structure, which is nicer, but >the required functionality for generalized form handlers has been there all >the time. ~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207593 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
Java and JVM page in CF Administrator
This question is in regards to CFMX 6.1 Enterprise. I am working on a box I inherited and in the admin there is no link to the Java and JVM settings. I have never seen this before and I have no idea where to even look to correct this. Could the installation be corrupt? All CF pages seem to behave correctly but I cannot edit the Class Path for a new app I am trying to install. Any ideas? Thanks in advance! BG ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207592 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
CFFORM + FLASH
Hi guys, I¹m using the CFFORM tag and wanted to add some extra validation. My tag is like so: ---). Currently: #GetAdvert.numberOfReplies# --- 5 10 25 Unlimited No more, I've had enough! As it stands if the user chooses --- the form doesn¹t have an error pop up. I thought of either doing some javascript in the cfselect or possibly adding something to the tag similar to the onsubmit. Unfortunately the above comes up with an error. If anyone could help it would be greatly appreciated. Thanks, Saturday ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207591 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
Re: Viewing files in another server/directory outside CF server
That's the proper behavior. If you want them to display in the browser, you'll ned to change your value="attachment; " to value="inline;" - Original Message - From: "Michel Deloux" <[EMAIL PROTECTED]> To: "CF-Talk" Sent: Tuesday, May 24, 2005 2:49 PM Subject: Re: Viewing files in another server/directory outside CF server > Using CFCONTENT and CFHEADER with MS Word files show me a > "Save/Download" screen in IE. Please look my simple code: > > view_files.cfm?fileX=file://CA_LA_Fresno/systems/Fresno2004_12.doc > > in view_files I remove file: and change / bar to \ bar and after:: > > > > > > Whta's happened? > > Thanx > > ~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207590 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
RE: ACH file format
>From what I have seen, ACH files are just fixed-width files. Sometimes, the format can be flexible. The parser, on the other end, can be setup to read your format and do what it needs to do. We had the need for this on our mainframe. It only created fixed-width text files. There was nothing special about it that CF, or any text editor, could not do. M!ke -Original Message- From: Chris Terrebonne [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 24, 2005 2:04 PM To: CF-Talk Subject: ACH file format Any chance one of you have experience with using CF to format a standardized ACH file? Any CFC's or custom tags that will do this? I was going to write one, but no need to reinvent if it already exists. Thanks! Chris ~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207589 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
RE: format XML string?
If you really need to view it, open the xml in IE or an xml editor like XML Spy. They will format it nicely for display regardless of the file's formatting. M!ke ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207588 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
Re: format XML string?
> Your method works, but it doesn't do indentation. I'll look more into it. Thanks. Yes, the XSLT code I posted is too generic for doing indentation too. You have to customize it, that's why I said it was a starting point. Massimo Foti Tools for ColdFusion and Dreamweaver developers: http://www.massimocorner.com ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207587 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
Re: format XML string?
Your method works, but it doesn't do indentation. I'll look more into it. Thanks. Johnny >> So I don't see how XSLT can play a role here. > >It can play a role, because you can post-process your XML string using XSLT >as "pretty printer". >Try the code below (hope carriage returns will not break it): > > >xmlns:xsl="http://www.w3.org/1999/XSL/Transform";> > > > > > > > > > > >first itemsecond >item > > >#XmlTransform(xmlStr, xslStr)# > > >Massimo Foti >http://www.massimocorner.com/ > >It should be this hole in the ozone layer >But I am not the coder I use to be... ~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207586 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
Re: Returning XML data via a CFC?
Pete, What are you doing with the XML once it is returned via the CFC? Are you returning for the javascript to manipulate it or is the javascript going to write it directly to the page? -- Donnie Bachan Website: http://www.islandwizards.com Blog: http://angrytrini.blogspot.com "Nitendo Vinces - By Striving You Shall Conquer" == The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer. ~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207585 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
Re: Security Issue?
I'm afraid not. The offending characters arrived unpromted in the URL. Dave Kevin Aebig wrote: > My guess is that you're using CFencrypt on a variable before you pass it > through a query param. Is this the case? > > Kevin > > -Original Message- > From: David Delbridge [mailto:[EMAIL PROTECTED] > Sent: Tuesday, May 24, 2005 10:57 AM > To: CF-Talk > Subject: Security Issue? > > > Hi all, > > Does anybody recognize this URL string pattern (%C2%A0%C2%A0It) as a > security exploit? For example: > > http://www.mywebsite.com/form.cfm?ID=89%C2%A0%C2%A0It > > It produces the following error in CF: > > Incorrect syntax near 'Â'. > > SQL = "select * from DbName > where (ID = 89Â Â It)" > > I've received a few of these in the past 24 hours, all from Inktomi's IP > block. A Google search turns up nothing useful. > > Any ideas? > > Dave > > -- > > David M. Delbridge > Circa 3000 > ColdFusion Hosting > http://www.circa3k.com > 866-CIRCA3K (247-2235) > Outside U.S: +1.775-832-2445 > > > > > ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207584 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
Re: Viewing files in another server/directory outside CF server
Using CFCONTENT and CFHEADER with MS Word files show me a "Save/Download" screen in IE. Please look my simple code: view_files.cfm?fileX=file://CA_LA_Fresno/systems/Fresno2004_12.doc in view_files I remove file: and change / bar to \ bar and after:: Whta's happened? Thanx 2005/5/24, Dave Watts <[EMAIL PROTECTED]>: > > using CFCONTENT and CFHEADER I need to get that file right? After > > that I can send that file to user browser... Works with users with > > no server "rights"? > > Yes, you would be fetching the file with CF, then returning it to the > browser. > > 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! > > ~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207583 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
Re: Security Issue?
Good point. I do, but then there's a small matter of a few hundred hosting customers Dave Damien McKenna wrote: > Please tell me you are using cfqueryparam? > -- David M. Delbridge Circa 3000 ColdFusion Hosting http://www.circa3k.com 866-CIRCA3K (247-2235) Outside U.S: +1.775-832-2445 ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207582 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
RE: format XML string?
>If you export the string to a file, and let your XML-aware text editor (or >other XML reader software like a browser) know it's an XML file (typically >by the file extension), the text editor will automatically display it as a >tree. Unfortunately, the current version of Dreamweaver doesn't seem to do >this. This would not work for me either as I name all my xml files with .xml.cfm extension. >This is common - XML parsers will often remove extraneous space when writing >the XML string. You will have to rewrite the string using regular string >formatting functionality after you've modified it using XML parsing >functionality. You mean like using replaceNoCase() function and search for > http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207581 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
3.4 Drivers - Any Early Adopters Care To Comment?
The new CF database drivers based on DataDirect 3.4 came out a couple weeks ago. Are there any early adopters who have tried these on busy systems with success? Are they better than the last, about the same, anything? I'll even accept "me too" type posts (or even as we learned yesterday). thanks! -nathan strutz ps, my experience is I've had them running on a couple dev servers with no difference in anything, but those really don't get any traffic. ~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207580 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
RE: ACH file format
I have one but unfortunately the code is not public to use. It our proprietary ACH file writer. I can however answer any questions you might have writing one. A lot of "7" records are different depending on which financial institution you are sending it to, but all the formatting and line positioning is pretty fixed... Jeff > -Original Message- > From: Chris Terrebonne [mailto:[EMAIL PROTECTED] > Sent: Tuesday, May 24, 2005 3:04 PM > To: CF-Talk > Subject: ACH file format > > > Any chance one of you have experience with using CF to format > a standardized ACH file? Any CFC's or custom tags that will > do this? I was going to write one, but no need to reinvent if > it already exists. > > Thanks! > Chris > > > This email and its attachments may contain confidential information > which is intended only for the use of the person(s) named above. > If you are not the intended recipient, you are hereby advised > that any disclosure, copying, distribution or the taking of > any action based on the contents of this information is > prohibited. If you > have received this transmission in error, please notify the > sender and delete this email from your computer. Thank you. > > > > ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207579 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
Re: format XML string?
> So I don't see how XSLT can play a role here. It can play a role, because you can post-process your XML string using XSLT as "pretty printer". Try the code below (hope carriage returns will not break it): http://www.w3.org/1999/XSL/Transform";> first itemsecond item #XmlTransform(xmlStr, xslStr)# Massimo Foti http://www.massimocorner.com/ It should be this hole in the ozone layer But I am not the coder I use to be... ~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207578 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
RE: Viewing files in another server/directory outside CF server
> using CFCONTENT and CFHEADER I need to get that file right? After > that I can send that file to user browser... Works with users with > no server "rights"? Yes, you would be fetching the file with CF, then returning it to the browser. 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! ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207577 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
RE: format XML string?
> Also some of you missed my point, I am trying to format it so > it would look readable when I modify it in Dreamweaver or > CFEclipse. I don't have problem viewing it in IE or on a web > page. So I don't see how XSLT can play a role here. If you export the string to a file, and let your XML-aware text editor (or other XML reader software like a browser) know it's an XML file (typically by the file extension), the text editor will automatically display it as a tree. Unfortunately, the current version of Dreamweaver doesn't seem to do this. > I spoke too soon, Kerry. It didn't work. The toString() > function seems to work properly when you create the file for > the first time, but when you access an existing xml file and > modify it with the xmlElemNew() and other xml functions, then > the output is just one long string. This is common - XML parsers will often remove extraneous space when writing the XML string. You will have to rewrite the string using regular string formatting functionality after you've modified it using XML parsing functionality. 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! ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207576 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
Re: Returning XML data via a CFC?
On 5/24/05, Pete Ruckelshaus <[EMAIL PROTECTED]> wrote: > Dave C, > > Thanks, but I was unable to get that to work when calling it via URL. > At this point I'm more focused on "getting it to work" than I am on > "CFC best practices", and getting it to work isn't, well, working. > Macromedia's docs are incomplete and nearly devoid of useful examples. > I hate to say it, but at this point, I've burned a half a day on this > problem, I'm the only person working on this project, and I'm behind > schedule. Quick and dirty will have to get me by, unfortunately. If > I'm lucky, I can circle back and do it the right way once this phase > of the project is done. > Fair enough. However, what do you mean when you said you couldn't get it to work? Did you get an error message? A blank screen? Regards, Dave. ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207575 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
Re: format XML string?
> This should work fine (if slowly) asside from the fact that you need > to add xmlformat() around the attribute and text node values. Thanks, I'll add them in if I ever need to use it again. It was put together in about 10 minutes for debug purposes a while back when I couldn't use a browser (dump of something inside a CFC to a text file), so it's definitely a don't-use-this-for-anything-real snippet. -Joe -- Get Glued! The Model-Glue ColdFusion Framework http://www.model-glue.com ~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207574 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
ACH file format
Any chance one of you have experience with using CF to format a standardized ACH file? Any CFC's or custom tags that will do this? I was going to write one, but no need to reinvent if it already exists. Thanks! Chris This email and its attachments may contain confidential information which is intended only for the use of the person(s) named above. If you are not the intended recipient, you are hereby advised that any disclosure, copying, distribution or the taking of any action based on the contents of this information is prohibited. If you have received this transmission in error, please notify the sender and delete this email from your computer. Thank you. ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207573 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
RE: format XML string?
I spoke too soon, Kerry. It didn't work. The toString() function seems to work properly when you create the file for the first time, but when you access an existing xml file and modify it with the xmlElemNew() and other xml functions, then the output is just one long string. Also some of you missed my point, I am trying to format it so it would look readable when I modify it in Dreamweaver or CFEclipse. I don't have problem viewing it in IE or on a web page. So I don't see how XSLT can play a role here. Johnny > Yes, I do have the need for that. That is why I asked. I > auto-generate the circuit.xml files, but I want other developers to be > able to manually edit them if needed without any difficulty. > > Kerry, your suggestion seems to do the trick. Thank you. > > Johnny > > >> Is there a way to format the xml string before writing back > >> to the file? The problem I have is when I use > >> toString(xmlObject) to convert the xml object to string to > >> write to a file, it becomes one long ugly string. Is there > >> an easy to format it with indentation and all? > > > >I would strongly recommend that you not attempt to format the XML > string. > >There's no need to do that. > > > >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! ~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207572 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
Re: Returning XML data via a CFC?
Dave C, Thanks, but I was unable to get that to work when calling it via URL. At this point I'm more focused on "getting it to work" than I am on "CFC best practices", and getting it to work isn't, well, working. Macromedia's docs are incomplete and nearly devoid of useful examples. I hate to say it, but at this point, I've burned a half a day on this problem, I'm the only person working on this project, and I'm behind schedule. Quick and dirty will have to get me by, unfortunately. If I'm lucky, I can circle back and do it the right way once this phase of the project is done. Thanks anyway, Pete ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207571 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
RE: Returning XML data via a CFC?
>From what I see happening, you'd probably be better off returning a string with the content and handling the output elsewhere. The method you're using isn't very flexible and the cfcontent within a CFC isn't a real good idea. Also, I've had issues where only whitespace is returned if there is *any* whitespace before the cfcontent tag... Cheers, Kevin -Original Message- From: Pete Ruckelshaus [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 24, 2005 11:30 AM To: CF-Talk Subject: Returning XML data via a CFC? I'm using XMLhttp to do some RIA stuff. Rather than having a separate CFM file for each XML file that I need to return, I want to have a single CFC with a bunch of methods in it that return the proper content (XML, using cfheader/cfcontent) to the app. The question is, can I do this (and is it good practice)? I have a script that I'm working on but it's not working; a cfm page with similar code on it works just fine. Here is the code: SELECT C.ID, C.fname, C.lname FROMtblContacts C WHERE C.contactTypeID = (SELECT id FROM tblContactTypes WHERE typename = 'individual') AND C.organizationid = #param# ORDER BYC.fname, C.lname #getContacts.id# #getContacts.fname# #getContacts.lname# Are there any glaring errors in this code that would explain why I'm not getting anything but whitespace back? Also, I'm calling the CFC like this http://localhost/cfc/xmlconduit.cfc?method=getcontactsbyorganization¶m=5 Thanks, Pete ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207570 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
Re: format XML string?
"Johnny Le" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Yes, I do have the need for that. You can try a "pretty printer" XSLT. This should be a starting point: http://www.w3.org/1999/XSL/Transform";> Hope it will help Massimo Foti Tools for ColdFusion and Dreamweaver developers: http://www.massimocorner.com ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207569 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
RE: popup blocker detector script
hence the "cant remember site" in my ? ;)~ ~Dave the disruptor~ From: "Connie DeCinko" <[EMAIL PROTECTED]> Sent: Tuesday, May 24, 2005 1:32 PM To: CF-Talk Subject: RE: popup blocker detector script Just check the code of that page (view source) and see how they did it. > i was on a site once and i clicked on popup and it said i had a popup > blocker enabled, cant remember site, anyone have a script 4 that? > Thanks > > ~Dave the disruptor~ > ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207566 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
Re: popup blocker detector script
that works, thanks! ~Dave the disruptor~ From: Daniel Mackey <[EMAIL PROTECTED]> Sent: Tuesday, May 24, 2005 1:36 PM To: CF-Talk Subject: Re: popup blocker detector script http://www.visitor-stats.com/articles/detect-popup-blocker.php Dan. Connie DeCinko wrote: >Just check the code of that page (view source) and see how they did it. > > > >>i was on a site once and i clicked on popup and it said i had a popup >>blocker enabled, cant remember site, anyone have a script 4 that? >> >> > > > >>Thanks >> >>~Dave the disruptor~ >> >> >> > > > > > ~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207567 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
RE: format XML string?
If you're just looking to quickly see your output, You could just write it out and set the content type of the page. Kevin -Original Message- From: S. Isaac Dealey [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 24, 2005 12:23 PM To: CF-Talk Subject: RE: format XML string? >> Is there a way to format the xml string before writing >> back >> to the file? The problem I have is when I use >> toString(xmlObject) to convert the xml object to string >> to >> write to a file, it becomes one long ugly string. Is >> there >> an easy to format it with indentation and all? > I would strongly recommend that you not attempt to format > the XML string. > There's no need to do that. If you want clean, friendly formatting to peruse the xml document, just write it to a local file on your machine and open it in Firefox or IE -- both of them have default xml style sheets that make examining xml docs easier. s. isaac dealey 954.522.6080 new epoch : isn't it time for a change? add features without fixtures with the onTap open source framework http://www.fusiontap.com http://coldfusion.sys-con.com/author/4806Dealey.htm ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207568 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
Re: Returning XML data via a CFC?
On 5/24/05, Pete Ruckelshaus <[EMAIL PROTECTED]> wrote: > Dave, > > That's what I'm doing in a similar CFM page (that I want to convert to > CFC), and it works fine: > > > > select firstname, email > fromtblArsUsers > where userid LIKE '#param#%' > > > > > > #getEmail.firstname# > #getEmail.email# > showdebugoutput="no"> > Pete, CFMs NEQ CFCs. That's my rule. You can't always use the same coding rules across the two file types. Your CFM template might work just fine, but the CFCs aren't guaranteed to follow every CFM construct the same way. Tags like cfcontent might be perfectly fine in CFM templates, but might not work the same way in CFCs. There have been a couple threads over the last few weeks where other people have run into this problem, and moving the cfcontent tag out of the CFCs has taken care of it. Further, if you make sure to religiously put output="false" in your cfcomponent and cffunction tags, then you will not get any whitespace, which removes the need for the cfsetting tag anyway. Regards, Dave. ~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207565 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
Re: format XML string?
> Not with CF natively. XML (like HTML) is whitespace > agnostic, so the > XML doesnt care if it's one long line, or a nicely > formatted > (according to an arbitrary human). You could probably > write a > formatter fairly easily, depending on the complexity of > the formatting > rules you wanted to enforce. > At it's simplest, just do replace(xmlString, ">", > ">#chr(10)#", > "all"), but that'll only give you linebreaks, you'll have > to write an > actual parser that tracks nesting depth if you want to do > indentation > and stuff. Come to think of it there might be a way to get the formatting straight with a reasonably simple XSLT template also... XML to Text I'd have to look into it. s. isaac dealey 954.522.6080 new epoch : isn't it time for a change? add features without fixtures with the onTap open source framework http://www.fusiontap.com http://coldfusion.sys-con.com/author/4806Dealey.htm ~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207564 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
RE: format XML string?
Yes, I do have the need for that. That is why I asked. I auto-generate the circuit.xml files, but I want other developers to be able to manually edit them if needed without any difficulty. Kerry, your suggestion seems to do the trick. Thank you. Johnny >> Is there a way to format the xml string before writing back >> to the file? The problem I have is when I use >> toString(xmlObject) to convert the xml object to string to >> write to a file, it becomes one long ugly string. Is there >> an easy to format it with indentation and all? > >I would strongly recommend that you not attempt to format the XML string. >There's no need to do that. > >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! ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207563 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
Re: format XML string?
This should work fine (if slowly) asside from the fact that you need to add xmlformat() around the attribute and text node values. > If it helps, I wrote a little UDF for this...can't > guarantee it'll be > 100% on all of the time, I scrawled it out quickly for my > own quick > use a while back. > output="false"> > > > >"<#arguments.xmlNode.xmlName#" /> > item="i"> > #i#=""#arguments.xmlNode.xmlAttributes[i]#"""> > >arrayLen(arguments.xmlNode.xmlChildren)> > > > " /> > >arguments.depth + 1) & > htmlEditFormat(arguments.xmlNode.xmlText) & > chr(10) /> > > > > to="#arrayLen(arguments.xmlNode.xmlChildren)#" index="i"> > prettyXml(arguments.xmlNode.xmlChildren[i], > arguments.depth + 1) /> > >arrayLen(arguments.xmlNode.xmlChildren)> > arguments.depth) & > "" & chr(10) /> > > > s. isaac dealey 954.522.6080 new epoch : isn't it time for a change? add features without fixtures with the onTap open source framework http://www.fusiontap.com http://coldfusion.sys-con.com/author/4806Dealey.htm ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207562 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
Re: There's got to be a way around this
> On Tuesday 24 May 2005 10:12, Jim Davis wrote: >> In my company however this is the norm: we moved away >> from CF almost purely >> on the say-so of the Java programmers like the one I >> mentioned and their >> assertions that Java was "easier" to work with. >> >> In short they produced complete crap and blamed the >> language. Sounds like >> you're working with the results of that kind of thinking. >> ;^) > I tend to agree with you on the whole, though I think I > will be spending > several days trying to get my head around the idea that > Java is easier than > anything. I've never been able to figure Java out. These are the same sort of people who think that bitshrn() is easier to use than for instance find("R",mystring)... A project I worked on a while back the guy decided to use all bit-math for the security -- and I've seen several cases of using bit-math for permission-systems since then and every one of them has been attrocious. I remember the guy saying "here I'll show you, it's real simple" and then failing miserably to explain succinctly how it worked. s. isaac dealey 954.522.6080 new epoch : isn't it time for a change? add features without fixtures with the onTap open source framework http://www.fusiontap.com http://coldfusion.sys-con.com/author/4806Dealey.htm ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207561 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
RE: format XML string?
>> Is there a way to format the xml string before writing >> back >> to the file? The problem I have is when I use >> toString(xmlObject) to convert the xml object to string >> to >> write to a file, it becomes one long ugly string. Is >> there >> an easy to format it with indentation and all? > I would strongly recommend that you not attempt to format > the XML string. > There's no need to do that. If you want clean, friendly formatting to peruse the xml document, just write it to a local file on your machine and open it in Firefox or IE -- both of them have default xml style sheets that make examining xml docs easier. s. isaac dealey 954.522.6080 new epoch : isn't it time for a change? add features without fixtures with the onTap open source framework http://www.fusiontap.com http://coldfusion.sys-con.com/author/4806Dealey.htm ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207560 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
Re: format XML string?
If it helps, I wrote a little UDF for this...can't guarantee it'll be 100% on all of the time, I scrawled it out quickly for my own quick use a while back. " /> " & chr(10) /> On 5/24/05, Barney Boisvert <[EMAIL PROTECTED]> wrote: > Not with CF natively. XML (like HTML) is whitespace agnostic, so the > XML doesnt care if it's one long line, or a nicely formatted > (according to an arbitrary human). You could probably write a > formatter fairly easily, depending on the complexity of the formatting > rules you wanted to enforce. > > At it's simplest, just do replace(xmlString, ">", ">#chr(10)#", > "all"), but that'll only give you linebreaks, you'll have to write an > actual parser that tracks nesting depth if you want to do indentation > and stuff. > > cheers, > barneyb > > On 5/24/05, Johnny Le <[EMAIL PROTECTED]> wrote: > > Hi, > > > > Is there a way to format the xml string before writing back to the file? > > The problem I have is when I use toString(xmlObject) to convert the xml > > object to string to write to a file, it becomes one long ugly string. Is > > there an easy to format it with indentation and all? > > > > Johnny > -- > Barney Boisvert > [EMAIL PROTECTED] > 360.319.6145 > http://www.barneyb.com/ > > Got Gmail? I have 50 invites. > > ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207559 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
Re: Viewing files in another server/directory outside CF server
Thanx Dave using CFCONTENT and CFHEADER I need to get that file right? After that I can send that file to user browser... Works with users with no server "rights"? 2005/5/24, Dave Watts <[EMAIL PROTECTED]>: > > and that your clients have network logon rights to that > > machine and read access to the share in question... it's > > impossible! > > > > What's UNC? How to setup? > > If that's impossible, you won't be able to offer links using the "file:" > pseudo-protocol. If the service account used by the CF server has rights to > read those documents, you can use CFCONTENT to fetch those files and serve > them to the user. > > > #filename# > > > > SELECT Filename, MIMEType > FROM File > WHEREFileID = value="#URL.fileid#"> > > > > > > In the above example, the presumption is that you're storing information > about those files within your database. > > 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! > > ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207558 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
Re: There's got to be a way around this
On Tuesday 24 May 2005 10:12, Jim Davis wrote: > In my company however this is the norm: we moved away from CF almost purely > on the say-so of the Java programmers like the one I mentioned and their > assertions that Java was "easier" to work with. > > In short they produced complete crap and blamed the language. Sounds like > you're working with the results of that kind of thinking. ;^) I tend to agree with you on the whole, though I think I will be spending several days trying to get my head around the idea that Java is easier than anything. I've never been able to figure Java out. -- Richard S. Crawford Programmer III UC Davis Extension Distance Education Group 2901 K Street Sacramento, CA 95816 (916)327-7793 http://unexdlc.ucdavis.edu ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207557 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
Re: Returning XML data via a CFC?
Dave, That's what I'm doing in a similar CFM page (that I want to convert to CFC), and it works fine: select firstname, email fromtblArsUsers where userid LIKE '#param#%' #getEmail.firstname# #getEmail.email# ~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207556 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
RE: Viewing files in another server/directory outside CF server
UNC: \\servername\sharename\directory\file AFAIK, your CF service will need to login as a user with rights to the remote server -Original Message- From: Michel Deloux [mailto:[EMAIL PROTECTED] Sent: 24 May 2005 17:45 To: CF-Talk Subject: Re: Viewing files in another server/directory outside CF server Thanx Dave. .and that your clients have network logon rights to that machine and read access to the share in question... it's impossible! What's UNC? How to setup? Thanx once more again. 2005/5/24, Dave Watts <[EMAIL PROTECTED]>: > > CF lives in CA_LA_WS server and all docs lives in CA_LA_Fresno > > server. How to show for our users docs stored in CA_LA_Fresno > > server with IE? It's possible? For IE I need to store my files > > in CF server? > > You have all sorts of options. You can allow direct access via UNC path to > the server in question, although you will also have to ensure that your > clients can resolve the NetBIOS name correctly (via WINS, LMHOSTS or AD DNS) > and that your clients have network logon rights to that machine and read > access to the share in question. > > 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! > > ~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207555 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
Re: CFMX XML/XSLT questions....
> Also, with CF 7, you can pass parameters to XMLParse(), so if you want > to separate your data from your display logic, you can put your data > in the XML and pass the display options to XMLParse() at runtime. If you would like to perform XSLT transformation with parameters you can check this UDF: http://www.cfmentor.com/code/index.cfm?action=script&id=137 Massimo Foti Tools for ColdFusion and Dreamweaver developers: http://www.massimocorner.com ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207554 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
Re: Returning XML data via a CFC?
On 5/24/05, Pete Ruckelshaus <[EMAIL PROTECTED]> wrote: > I'm using XMLhttp to do some RIA stuff. Rather than having a separate > CFM file for each XML file that I need to return, I want to have a > single CFC with a bunch of methods in it that return the proper > content (XML, using cfheader/cfcontent) to the app. > > The question is, can I do this (and is it good practice)? I have a > script that I'm working on but it's not working; a cfm page with > similar code on it works just fine. Here is the code: > > Are there any glaring errors in this code that would explain why I'm > not getting anything but whitespace back? Also, I'm calling the CFC > like this > http://localhost/cfc/xmlconduit.cfc?method=getcontactsbyorganization¶m=5 > Yeah, there's lots of things going on in there that shouldn't be. For starters, you specify a returnType of XML, yet there's no cfreturn in the function, so nothing comes back. Second, you have a bunch of scoping (or lack thereof) issues. Third, don't use cfsetting and cfcontent and those tags within CFCs -- they can cause problems, and I'm not even sure that cfcontent works, quite honestly. Fourth, I would argue that it's a bad practice to directly refer to your calling environment's request scope. I would put in an init function and pass the datasource in there and place it in an instance variable (See code below). Last, your "param" argument says it's required, yet you provide a default value of 0. Don't do that. Either it's required or it's not. If it's not, then use a default. Here's a cleaned up version of your code. Your best bet is to cut and paste it into your editor because I kept in tabs and line breaks. I didn't test the code because I don't have your datasource, but it should be close enough. SELECT C.ID, C.fname, C.lname FROM tblContacts C WHERE C.contactTypeID = (SELECT id FROM tblContactTypes WHERE typename = 'individual') AND C.organizationid = ORDER BY C.fname, C.lname #getContacts.id# #getContacts.fname# #getContacts.lname# Your calling code would then be something like: #variables.objXMLConduit.getContactsByOrganization(param:myValue)# Something very close to the above should get you going. Hope this helps? Regards, Dave. ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207553 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
RE: Returning XML data via a CFC?
> > > > Are there any glaring errors in this code that would explain why I'm > not getting anything but whitespace back? You are using CFSETTING to require output be within a CFOUTPUT tag. I'm not sure how that plays with your CFHEADER and CFCONTENT tags. 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! ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207552 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
RE: format XML string?
> Is there a way to format the xml string before writing back > to the file? The problem I have is when I use > toString(xmlObject) to convert the xml object to string to > write to a file, it becomes one long ugly string. Is there > an easy to format it with indentation and all? I would strongly recommend that you not attempt to format the XML string. There's no need to do that. 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! ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207551 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
RE: format XML string?
parse it into an xml object, then use: xmlobj.getDocumentElement().toString() except that will probably Unicode format it, dunno if theres a unicode2msdos() function floating around anywhere... -Original Message- From: Johnny Le [mailto:[EMAIL PROTECTED] Sent: 24 May 2005 18:36 To: CF-Talk Subject: format XML string? Hi, Is there a way to format the xml string before writing back to the file? The problem I have is when I use toString(xmlObject) to convert the xml object to string to write to a file, it becomes one long ugly string. Is there an easy to format it with indentation and all? Johnny ~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207550 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
Re: format XML string?
Not with CF natively. XML (like HTML) is whitespace agnostic, so the XML doesnt care if it's one long line, or a nicely formatted (according to an arbitrary human). You could probably write a formatter fairly easily, depending on the complexity of the formatting rules you wanted to enforce. At it's simplest, just do replace(xmlString, ">", ">#chr(10)#", "all"), but that'll only give you linebreaks, you'll have to write an actual parser that tracks nesting depth if you want to do indentation and stuff. cheers, barneyb On 5/24/05, Johnny Le <[EMAIL PROTECTED]> wrote: > Hi, > > Is there a way to format the xml string before writing back to the file? The > problem I have is when I use toString(xmlObject) to convert the xml object to > string to write to a file, it becomes one long ugly string. Is there an easy > to format it with indentation and all? > > Johnny -- Barney Boisvert [EMAIL PROTECTED] 360.319.6145 http://www.barneyb.com/ Got Gmail? I have 50 invites. ~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207549 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
format XML string?
Hi, Is there a way to format the xml string before writing back to the file? The problem I have is when I use toString(xmlObject) to convert the xml object to string to write to a file, it becomes one long ugly string. Is there an easy to format it with indentation and all? Johnny ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207548 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
Re: popup blocker detector script
http://www.visitor-stats.com/articles/detect-popup-blocker.php Dan. Connie DeCinko wrote: >Just check the code of that page (view source) and see how they did it. > > > >>i was on a site once and i clicked on popup and it said i had a popup >>blocker enabled, cant remember site, anyone have a script 4 that? >> >> > > > >>Thanks >> >>~Dave the disruptor~ >> >> >> > > > > > ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207547 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
RE: popup blocker detector script
Just check the code of that page (view source) and see how they did it. > i was on a site once and i clicked on popup and it said i had a popup > blocker enabled, cant remember site, anyone have a script 4 that? > Thanks > > ~Dave the disruptor~ > ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207546 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
Returning XML data via a CFC?
I'm using XMLhttp to do some RIA stuff. Rather than having a separate CFM file for each XML file that I need to return, I want to have a single CFC with a bunch of methods in it that return the proper content (XML, using cfheader/cfcontent) to the app. The question is, can I do this (and is it good practice)? I have a script that I'm working on but it's not working; a cfm page with similar code on it works just fine. Here is the code: SELECT C.ID, C.fname, C.lname FROMtblContacts C WHERE C.contactTypeID = (SELECT id FROM tblContactTypes WHERE typename = 'individual') AND C.organizationid = #param# ORDER BYC.fname, C.lname #getContacts.id# #getContacts.fname# #getContacts.lname# Are there any glaring errors in this code that would explain why I'm not getting anything but whitespace back? Also, I'm calling the CFC like this http://localhost/cfc/xmlconduit.cfc?method=getcontactsbyorganization¶m=5 Thanks, Pete ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207545 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
Re: RESOLVED CFMX GC every 60 sec.?
Thanks, Sean. Yes, I've wondered why JVM's seem to be installed by default with the ability for any programmer to call a Garbage Collection. I've never heard anyone say it was good to do (though I don't doubt there could be cases where it would be good). And I agree about protecting the servers from well-meaning programmers ... :-) Chris Norloff -- Original Message -- From: Sean Corfield <[EMAIL PROTECTED]> Reply-To: cf-talk@houseoffusion.com Date: Fri, 20 May 2005 07:48:18 -0700 >On 5/20/05, Chris Norloff <[EMAIL PROTECTED]> wrote: >> It turns out it was probably an explicit garbage collection call from one of >> the applications. As soon as I disabled the ability to explicitly call a GC >> (just let the JVM manage its own memory) the GC dropped to once an hour on >> an idle server. > >I'm sure you're aware that explicitly calling GC is a Bad Thing(tm) >since it interferes with the JVM's ability to plan and manage GC on >its own schedule. > >I'd probably go as far as recommending that folks disable explicit GC >in general to prevent misguided programmers from tanking your systems! >(and even some third party Java code might do this so it doesn't even >have to be your own code) >-- >Sean A Corfield -- http://corfield.org/ >Team Fusebox -- http://fusebox.org/ >Got Gmail? -- I have 50, yes 50, invites to give away! > >"If you're not annoying somebody, you're not really alive." >-- Margaret Atwood > > ~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207544 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
Re: CFMX XML/XSLT questions....
XSLT can be a little bit tricky to get your head around if you are new to it. For example, variables can only be set once within their scope and you often use recursion implicitly (apply-templates) or explicitly (call a template inside of itself) to get things done that you might you accomplish quickly in CF with some loops and variables. That said, XSLT is designed to transform XML documents into other documents, often HTML or XML. Thus, if you have XML to begin with, then I would definitely consider using XSLT to display it as HTML. It can do searching, grouping, and filtering. I find pulling lots of data with XMLSearch() in CF to be quite ugly and hard to maintain and probably not as fast as doing it with XSLT. Also, with CF 7, you can pass parameters to XMLParse(), so if you want to separate your data from your display logic, you can put your data in the XML and pass the display options to XMLParse() at runtime. If you are reusing the data with new display options (e.g. now sort ascending), then you can cache the XML and just reparse it with new display options. I don't find XSLT slow per se, but it easy to accidentally write slow performing XSLT code. The slowness usually comes from the XPath expressions in the XSLT (e.g. searching from the document root when you just need to search below the current node being processsed). Maybe you could do a brief mock up with XSLT to see if you are comfortable with it and if it is a good fit for you project. With the prevelance of XML, I think XSLT if a valuable technology for a web programmer to know. Hope that helps. Jon On 5/19/05, Joe Eugene <[EMAIL PROTECTED]> wrote: > If you dont really have a purpose for XSLT, dont use it. XSLT is slow. > Just the parse the xml file (xmlParse()) and use xPath expressions to pull > out whatever you need. > > If the xml data doesnt change that often, you could cache the parsed xml > doc. > > Joe Eugene > > - Original Message - > From: "Jeff Waris" <[EMAIL PROTECTED]> > To: "CF-Talk" > Sent: Thursday, May 19, 2005 11:54 AM > Subject: CFMX XML/XSLT questions > > > > What I am doing is not earth shattering by any means but I am looking for > > the most efficient way to do it. The XML is generated on the fly and about > > the only options I have is the date range I give to create the file. > > > > I would like to be able to sort, filter and display it back to the user > > based on the information in the XML file itself. Am I going in the right > > direction by using XSLT for doing this? OR... should I throw the data from > > the XML file in a temporary table in my SQL7 database? If I throw the > > information in the temp table I am then free to query the data and use CF > to > > parse out the data to the user.. What's the better way, or do I have more > > options for doing this kind of thing??? > > > > Thanks. > > Jeff > > > > > > > > ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207543 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
RE: There's got to be a way around this
> -Original Message- > From: Richard Crawford [mailto:[EMAIL PROTECTED] > Sent: Tuesday, May 24, 2005 12:30 PM > To: CF-Talk > Subject: Re: There's got to be a way around this > > On Monday 23 May 2005 22:03, Jim Davis wrote: > > The developer in question used it as an example of "how hard it was to > do > > simple things in CF compared to Java" in meeting. I wrote > "#listfirst(var, > > "-")# and #listlast(var, "-")# on the whiteboard. ;^) > > In general, I prefer to program in PHP since I feel like I have much more > control over the code in PHP than I do in Cold Fusion. However, I have > come > to appreciate CF more over the past few months as I've learned that the > code > that I've been working with around here is not typical of the kind of code > that CF professionals generally produce. The one everlasting rule of thumb is that you can produce complete crap using any language. ;^) There's absolutely nothing wrong with having a favorite. Personally I don't see any of the languages as being head-and-shoulders above the others. I'll never have a problem with anybody saying they prefer one language over another. I just know that I can code most things cleaner and quicker in CF. I generally won't comment on how easy or hard another language is (especially one that I barely know). In my company however this is the norm: we moved away from CF almost purely on the say-so of the Java programmers like the one I mentioned and their assertions that Java was "easier" to work with. In short they produced complete crap and blamed the language. Sounds like you're working with the results of that kind of thinking. ;^) Jim Davis ~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207542 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
RE: Viewing files in another server/directory outside CF server
> and that your clients have network logon rights to that > machine and read access to the share in question... it's > impossible! > > What's UNC? How to setup? If that's impossible, you won't be able to offer links using the "file:" pseudo-protocol. If the service account used by the CF server has rights to read those documents, you can use CFCONTENT to fetch those files and serve them to the user. #filename# SELECT Filename, MIMEType FROM File WHEREFileID = In the above example, the presumption is that you're storing information about those files within your database. 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! ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207541 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
Re: Security Issue?
> Hi all, > Does anybody recognize this URL string pattern > (%C2%A0%C2%A0It) as a > security exploit? For example: > http://www.mywebsite.com/form.cfm?ID=89%C2%A0%C2%A0It > It produces the following error in CF: > Incorrect syntax near 'Â'. > SQL = "select * from DbName > where (ID = 89Â Â It)" > I've received a few of these in the past 24 hours, all > from Inktomi's IP > block. A Google search turns up nothing useful. > Any ideas? 89A isn't a number and therefore requires quotes, but better the value should be explicitly cast as whatever data type the ID column is. And if you have time add a cferror template or sitewide error handler to the application/server and check the input values on the page to provide a friendlier "this isn't valid" message. I wouldn't expect it to be an "exploit", just somebody (maybe a robot) trying random junk to see what info they can get on your server. s. isaac dealey 954.522.6080 new epoch : isn't it time for a change? add features without fixtures with the onTap open source framework http://www.fusiontap.com http://coldfusion.sys-con.com/author/4806Dealey.htm ~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207540 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
RE: Security Issue?
My guess is that you're using CFencrypt on a variable before you pass it through a query param. Is this the case? Kevin -Original Message- From: David Delbridge [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 24, 2005 10:57 AM To: CF-Talk Subject: Security Issue? Hi all, Does anybody recognize this URL string pattern (%C2%A0%C2%A0It) as a security exploit? For example: http://www.mywebsite.com/form.cfm?ID=89%C2%A0%C2%A0It It produces the following error in CF: Incorrect syntax near 'Â'. SQL = "select * from DbName where (ID = 89Â Â It)" I've received a few of these in the past 24 hours, all from Inktomi's IP block. A Google search turns up nothing useful. Any ideas? Dave -- David M. Delbridge Circa 3000 ColdFusion Hosting http://www.circa3k.com 866-CIRCA3K (247-2235) Outside U.S: +1.775-832-2445 ~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207539 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
RE: Viewing files in another server/directory outside CF server
UNC: universal network connection, or something like that. Basically it's Windows Shared folder/or drive. Scott A. Stewart, Web Application Developer Engineering Consulting Services, Ltd. (ECS) 14026 Thunderbolt Place, Suite 300 Chantilly, VA 20151 Phone: (703) 995-1737 Fax: (703) 834-5527 -Original Message- From: Michel Deloux [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 24, 2005 12:45 pm To: CF-Talk Subject: Re: Viewing files in another server/directory outside CF server Importance: Low Thanx Dave. .and that your clients have network logon rights to that machine and read access to the share in question... it's impossible! What's UNC? How to setup? Thanx once more again. 2005/5/24, Dave Watts <[EMAIL PROTECTED]>: > > CF lives in CA_LA_WS server and all docs lives in CA_LA_Fresno > > server. How to show for our users docs stored in CA_LA_Fresno > > server with IE? It's possible? For IE I need to store my files > > in CF server? > > You have all sorts of options. You can allow direct access via UNC path to > the server in question, although you will also have to ensure that your > clients can resolve the NetBIOS name correctly (via WINS, LMHOSTS or AD DNS) > and that your clients have network logon rights to that machine and read > access to the share in question. > > 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! > > ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207538 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
RE: Security Issue?
Please tell me you are using cfqueryparam? -- Damien McKenna - Web Developer - [EMAIL PROTECTED] The Limu Company - http://www.thelimucompany.com/ - 407-804-1014 #include ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207537 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
Security Issue?
Hi all, Does anybody recognize this URL string pattern (%C2%A0%C2%A0It) as a security exploit? For example: http://www.mywebsite.com/form.cfm?ID=89%C2%A0%C2%A0It It produces the following error in CF: Incorrect syntax near 'Â'. SQL = "select * from DbName where (ID = 89Â Â It)" I've received a few of these in the past 24 hours, all from Inktomi's IP block. A Google search turns up nothing useful. Any ideas? Dave -- David M. Delbridge Circa 3000 ColdFusion Hosting http://www.circa3k.com 866-CIRCA3K (247-2235) Outside U.S: +1.775-832-2445 ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207536 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
Re: Viewing files in another server/directory outside CF server
Thanx Dave. and that your clients have network logon rights to that machine and read access to the share in question... it's impossible! What's UNC? How to setup? Thanx once more again. 2005/5/24, Dave Watts <[EMAIL PROTECTED]>: > > CF lives in CA_LA_WS server and all docs lives in CA_LA_Fresno > > server. How to show for our users docs stored in CA_LA_Fresno > > server with IE? It's possible? For IE I need to store my files > > in CF server? > > You have all sorts of options. You can allow direct access via UNC path to > the server in question, although you will also have to ensure that your > clients can resolve the NetBIOS name correctly (via WINS, LMHOSTS or AD DNS) > and that your clients have network logon rights to that machine and read > access to the share in question. > > 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! > > ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207535 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
Re: There's got to be a way around this
> On Tuesday 24 May 2005 06:54, S. Isaac Dealey wrote: >> >> >> instead of this: >> >> >> >> I'm still not entirely certain how that comes across as >> the question >> he asked, except perhaps that he's trying to scope his >> variables as >> say "variables.x" instead of "form.x" without first >> copying them down >> from the form scope into the variables scope, so the >> server produces >> an error when it doesn't see "variables.firstname" even >> though the >> firstname input element was a text input. I'm trying to >> remember if >> inserts a value into the >> variables scope >> if there's a form field matching that variable name... >> It's been so >> long since I've used cfparam without scoping the name >> that I can't >> remember what the behavior is. > Sort of. I don't want to have to include the cfparam line > at all, though, > since there are so many times when I won't know what > parameters are going to > be used in a page at the tim that I write it -- such as > when a form has been > dynamically generated and can contain different fields > each time it is > generated, based on user input or results from a database > query. Okay... now I'm lost... How does PHP obviate the need to parameterize variables on a form action page?Does it do something like ASP where any undefined variable is equal to "" instead of producing an error? s. isaac dealey 954.522.6080 new epoch : isn't it time for a change? add features without fixtures with the onTap open source framework http://www.fusiontap.com http://coldfusion.sys-con.com/author/4806Dealey.htm ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207534 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
RE: Viewing files in another server/directory outside CF server
> CF lives in CA_LA_WS server and all docs lives in CA_LA_Fresno > server. How to show for our users docs stored in CA_LA_Fresno > server with IE? It's possible? For IE I need to store my files > in CF server? You have all sorts of options. You can allow direct access via UNC path to the server in question, although you will also have to ensure that your clients can resolve the NetBIOS name correctly (via WINS, LMHOSTS or AD DNS) and that your clients have network logon rights to that machine and read access to the share in question. 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! ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207533 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
Re: There's got to be a way around this
On Monday 23 May 2005 22:03, Jim Davis wrote: > The developer in question used it as an example of "how hard it was to do > simple things in CF compared to Java" in meeting. I wrote "#listfirst(var, > "-")# and #listlast(var, "-")# on the whiteboard. ;^) In general, I prefer to program in PHP since I feel like I have much more control over the code in PHP than I do in Cold Fusion. However, I have come to appreciate CF more over the past few months as I've learned that the code that I've been working with around here is not typical of the kind of code that CF professionals generally produce. -- Richard S. Crawford Programmer III UC Davis Extension Distance Education Group 2901 K Street Sacramento, CA 95816 (916)327-7793 http://unexdlc.ucdavis.edu ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207532 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
Re: Viewing files in another server/directory outside CF server
Thanx Dave, CF lives in CA_LA_WS server and all docs lives in CA_LA_Fresno server. How to show for our users docs stored in CA_LA_Fresno server with IE? It's possible? For IE I need to store my files in CF server? 2005/5/24, Dave Watts <[EMAIL PROTECTED]>: > > I'm using this script to show to the user > > > > > title="Please click here to view this documento">FresnoPower.doc > > > > All users have READ only access to Docs subdir. > > > > In that situation if user clicks Internet Explorer show this message: > > > > Error message: Cannot find filename. Make sure the path or Internet > > Address is correct. > > This has nothing to do with CF's permissions to access files, or your web > server's permissions either. You are providing links directly to files, and > your users would need to be able to resolve UNC paths directly to those > files from their workstations for those links to work. > > 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! > > ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207531 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
Re: There's got to be a way around this
On Tuesday 24 May 2005 06:54, S. Isaac Dealey wrote: > > > instead of this: > > > > I'm still not entirely certain how that comes across as the question > he asked, except perhaps that he's trying to scope his variables as > say "variables.x" instead of "form.x" without first copying them down > from the form scope into the variables scope, so the server produces > an error when it doesn't see "variables.firstname" even though the > firstname input element was a text input. I'm trying to remember if > inserts a value into the variables scope > if there's a form field matching that variable name... It's been so > long since I've used cfparam without scoping the name that I can't > remember what the behavior is. Sort of. I don't want to have to include the cfparam line at all, though, since there are so many times when I won't know what parameters are going to be used in a page at the tim that I write it -- such as when a form has been dynamically generated and can contain different fields each time it is generated, based on user input or results from a database query. -- Richard S. Crawford http://www.mossroot.com -- Richard S. Crawford Programmer III UC Davis Extension Distance Education Group 2901 K Street Sacramento, CA 95816 (916)327-7793 http://unexdlc.ucdavis.edu ~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207530 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
RE: Viewing files in another server/directory outside CF server
> I'm using this script to show to the user > > title="Please click here to view this documento">FresnoPower.doc > > All users have READ only access to Docs subdir. > > In that situation if user clicks Internet Explorer show this message: > > Error message: Cannot find filename. Make sure the path or Internet > Address is correct. This has nothing to do with CF's permissions to access files, or your web server's permissions either. You are providing links directly to files, and your users would need to be able to resolve UNC paths directly to those files from their workstations for those links to work. 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! ~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207529 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
Re: Viewing files in another server/directory outside CF server
Thanx Pascal I'm using this script to show to the user FresnoPower.doc All users have READ only access to Docs subdir. In that situation if user clicks Internet Explorer show this message: Error message: Cannot find filename. Make sure the path or Internet Address is correct. What do you think about? Thanx in advance. 2005/5/24, Pascal Peters <[EMAIL PROTECTED]>: > The final user does not need access to that folder, just CF. Let's say I > want to access a file C:\docs\test.doc, but the user doesn't have access > to C:\docs. CF has access to it, and the user has access to a CF > application in the webroot. > Create a file download.cfm under the webroot somewhere and pot the > following code in it: > > > deletefile="No"> > > This should enable the users to download the file by calling > download.cfm. You have to make sure that coldfusion has access to the > folder. Sandbox security may also prevent this, but then you have to > talk to the server admin. > > > -Original Message- > > From: Michel Deloux [mailto:[EMAIL PROTECTED] > > Sent: 24 May 2005 13:01 > > To: CF-Talk > > Subject: Re: Viewing files in another server/directory outside CF > server > > > > Thank you Pascal for your answer. But don't work for us. With CF > > I(administrator user) can view all files stored in that protected > > dir/server. But final user(without rights for read/write) don't... > > Using cflocation, cffile with read and after write, all fails... Do > > you have other choice? > > > > Can help us? > > > > Thanks for your time. > > > > 2005/5/23, Pascal Peters <[EMAIL PROTECTED]>: > > > Use cfcontent to do that > > > > > > > > > > > deletefile="No"> > > > > > > Pascal > > > > > > > -Original Message- > > > > From: Michel Deloux [mailto:[EMAIL PROTECTED] > > > > Sent: 23 May 2005 16:54 > > > > To: CF-Talk > > > > Subject: Viewing files in another server/directory outside CF > server > > > > > > > > Hi all > > > > > > > > I can upload files to CA_LA_Fresno server using CF user. CF user > haves > > > > administrator properties. But my user don't have permission to > access > > > > that server/directory. It's possible to my users see that file in > your > > > > browser or Word? > > > > > > > > How? > > > > > > > > Thanks in advance > > > > > > > > > > > > > > > > > > > > ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207528 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
SMS Event Gateway?
Hello all, Im having some trouble finding some concrete info on exactly what is needed to get the SMS Event Gateway working. >From what I can gather I can go about it 1 of 2 way. Either obtain SMPP accounts with all of the wireless providers, OR work with a Connection Aggregator (3rd party company) to handle all of the SMS requests. Can anyone shed any more light on this, or is this pretty much all there is to it? Also, can anyone recommend any good Connection Aggregation companies? Thanks everyone. -chris.alvarado [ application developer ] 4 Guys Interactive, Inc -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.322 / Virus Database: 266.11.16 - Release Date: 5/24/2005 ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207527 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
popup blocker detector script
Basically, you just see if your JavaScript can successfully invoke window.open(). There is a myriad of ways to do that, so it would be fun to self-explore and look for alternate solutions. :) Cheers, [ simon.cpu ] > i was on a site once and i clicked on popup and it said i had a popup > blocker enabled, cant remember site, anyone have a script 4 that? > Thanks > > ~Dave the disruptor~ > ~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207526 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
RE: Viewing files in another server/directory outside CF server
The final user does not need access to that folder, just CF. Let's say I want to access a file C:\docs\test.doc, but the user doesn't have access to C:\docs. CF has access to it, and the user has access to a CF application in the webroot. Create a file download.cfm under the webroot somewhere and pot the following code in it: This should enable the users to download the file by calling download.cfm. You have to make sure that coldfusion has access to the folder. Sandbox security may also prevent this, but then you have to talk to the server admin. > -Original Message- > From: Michel Deloux [mailto:[EMAIL PROTECTED] > Sent: 24 May 2005 13:01 > To: CF-Talk > Subject: Re: Viewing files in another server/directory outside CF server > > Thank you Pascal for your answer. But don't work for us. With CF > I(administrator user) can view all files stored in that protected > dir/server. But final user(without rights for read/write) don't... > Using cflocation, cffile with read and after write, all fails... Do > you have other choice? > > Can help us? > > Thanks for your time. > > 2005/5/23, Pascal Peters <[EMAIL PROTECTED]>: > > Use cfcontent to do that > > > > > > > deletefile="No"> > > > > Pascal > > > > > -Original Message- > > > From: Michel Deloux [mailto:[EMAIL PROTECTED] > > > Sent: 23 May 2005 16:54 > > > To: CF-Talk > > > Subject: Viewing files in another server/directory outside CF server > > > > > > Hi all > > > > > > I can upload files to CA_LA_Fresno server using CF user. CF user haves > > > administrator properties. But my user don't have permission to access > > > that server/directory. It's possible to my users see that file in your > > > browser or Word? > > > > > > How? > > > > > > Thanks in advance > > > > > > > > > > > > ~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207525 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54