Re: SURVEY RESULTS: Is ColdFusion OO?
On 7/11/07, Jaime Metcher <[EMAIL PROTECTED]> wrote: > Just musing about how to preserve some of the documentation benefits of > typing in the presence of duck-typing. Use the hint= attribute and readable argument names. I've seen various (repeated) suggestions to use custom attributes such as _type= and _returntype but I really don't see the point. The hint= attribute already shows up in the auto-generated documentation and lets you describe exactly what the argument / return value are about. -- Sean A Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ "If you're not annoying somebody, you're not really alive." -- Margaret Atwood ~| Upgrade to Adobe ColdFusion MX7 Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJQ Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:283524 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: cfcache and searches
That was it! Thank you so much! >> Is it possible to cache search results? For example, if >> someone puts a keyword Tokyo in our search input box and >> clicks go, it retrieves tons of entries. If I add > action="cache"> to the action page for the query, it returns >> no entries. I should think it would simply retrieve the page >> that was saved in the cache that included all of the entries, >> but it didn't. > >For CFCACHE to identify your search result page, you need to embed the data >submitted from your form within the URL. CFCACHE doesn't let you use form >data to identify cached pages. Just change your FORM's METHOD attribute to >GET. > >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! > >This email has been processed by SmoothZap - www.smoothwall.net ~| Macromedia ColdFusion MX7 Upgrade to MX7 & experience time-saving features, more productivity. http://www.adobe.com/products/coldfusion?sdid=RVJW Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:283523 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: cfcache and searches
> Is it possible to cache search results? For example, if > someone puts a keyword Tokyo in our search input box and > clicks go, it retrieves tons of entries. If I add action="cache"> to the action page for the query, it returns > no entries. I should think it would simply retrieve the page > that was saved in the cache that included all of the entries, > but it didn't. For CFCACHE to identify your search result page, you need to embed the data submitted from your form within the URL. CFCACHE doesn't let you use form data to identify cached pages. Just change your FORM's METHOD attribute to GET. 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! This email has been processed by SmoothZap - www.smoothwall.net ~| ColdFusion 8 beta â Build next generation applications today. Free beta download on Labs http://www.adobe.com/cfusion/entitlement/index.cfm?e=labs_adobecf8_beta Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:283522 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
cfcache and searches
Is it possible to cache search results? For example, if someone puts a keyword Tokyo in our search input box and clicks go, it retrieves tons of entries. If I add to the action page for the query, it returns no entries. I should think it would simply retrieve the page that was saved in the cache that included all of the entries, but it didn't. What am I doing wrong? Thanks in advance. ~| ColdFusion 8 beta â Build next generation applications today. Free beta download on Labs http://www.adobe.com/cfusion/entitlement/index.cfm?e=labs_adobecf8_beta Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:283521 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Submitting form to .cfc page
Most of the time when someone refers to submitting to a CFC, they're talking about a remoting or web services method invocation, not a form POST. Which isn't to say that POSTing to a CFC is bad, just that's not really the use case they're best suited for. cheers, barneyb On 7/11/07, Steve Sequenzia <[EMAIL PROTECTED]> wrote: > Thanks for the help everyone. It all makes sense. I was actually doing it > that way but then I read somewhere about submitting directly to the cfc. > -- Barney Boisvert [EMAIL PROTECTED] http://www.barneyb.com/ Got Gmail? I have 100 invites. ~| Macromedia ColdFusion MX7 Upgrade to MX7 & experience time-saving features, more productivity. http://www.adobe.com/products/coldfusion?sdid=RVJW Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:283520 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: SURVEY RESULTS: Is ColdFusion OO?
> -Original Message- > From: Sean Corfield [mailto:[EMAIL PROTECTED] > Sent: Thursday, 12 July 2007 2:21 AM > To: CF-Talk > Subject: Re: SURVEY RESULTS: Is ColdFusion OO? > > > 2) simply use type="any" and allow any strategy object to be pass in - > if it doesn't implement the right methods, you'll get a runtime error > Just musing about how to preserve some of the documentation benefits of typing in the presence of duck-typing. I guess if we stick to short methods (<20 lines) the set of methods required to be implemented by duck-typed arguments is not too hard to work out just by reading the method body. In fact if we wanted to soup up the code introspection I'd think this is something that could be determined automatically by inspecting the CF parse tree. Obviously we couldn't follow the call tree as we don't know which implementation to look at until runtime, but we could at least determine method names and number of arguments. Beyond that, there's still a need to document somewhere central the semantics of each duck-typed method - it's all very well to know that a method will take as an argument any object that implements a setID() method, e.g., but it's important that the caller and implementor share a common world view regarding what an ID is. cfinterface or the abstract superclass technique provides a place to put that documentation, and it would be nice to have a documentation mechanism with no runtime impact that is similarly structured and introspectable. Jaime Metcher ~| Create Web Applications With ColdFusion MX7 & Flex 2. Build powerful, scalable RIAs. Free Trial http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJS Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:283519 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: SURVEY RESULTS: Is ColdFusion OO?
On 7/10/07, Tom Chiverton <[EMAIL PROTECTED]> wrote: > I *think* CF8's IsInstanceOf() will still throw an error if you've broken the > contract. Based on my testing... It will return NO, because it tests - at runtime - that the contract still holds. However, type="ISomething" on an argument does not (it only checks the metadata). Here's an example: Successfully called test with t as an ITest! #isInstanceOf(arguments.obj,"ITest")# #isInstanceOf(t,"ITest")# #isInstanceOf(t,"ITest")# We can still call test() after messing with t but isInstanceOf() is no longer true. In other words, the only way to be sure the contract is still true is call isInstanceOf() even in the presence of arguments. -- Sean A Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ "If you're not annoying somebody, you're not really alive." -- Margaret Atwood ~| CF 8 â Scorpio beta now available, easily build great internet experiences â Try it now on Labs http://www.adobe.com/cfusion/entitlement/index.cfm?e=labs_adobecf8_beta Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:283518 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: SURVEY RESULTS: Is ColdFusion OO?
On 7/11/07, Nathan Strutz <[EMAIL PROTECTED]> wrote: > I think the reason why people would vote "no" to the main question is that > we know in an OOPL we create an object and call methods on it. new struct(), > struct.keyList(), but in CF we do structNew(), structKeyList(myStruct). It > doesn't "feel" OO, even as much as javascript does, unless you're heavily > using CFCs for everything. s.size() = #s.size()# s.get(#x#) = #s.get(x)# But of course you could have done: s[#x#] = #s[x]# -- Sean A Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ "If you're not annoying somebody, you're not really alive." -- Margaret Atwood ~| ColdFusion 8 beta â Build next generation applications today. Free beta download on Labs http://www.adobe.com/cfusion/entitlement/index.cfm?e=labs_adobecf8_beta Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:283517 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Submitting form to .cfc page
Thanks for the help everyone. It all makes sense. I was actually doing it that way but then I read somewhere about submitting directly to the cfc. > I am pretty new to using ColdFusion components but I am trying to > start doing all my inserts and queries with them. > > In the past I would always submit my forms to another .cfm page > (usually called action). On that page I would do my SQL inserts or > whatever and then put a at the bottom that directed the > browser to the proper destination page. I am not really sure if this > is best practice coding but it always worked for me. > > When using components it seems like I should be submitting the form to > the .cfc by making it the action page of the form. That all works fine > and the database inserts are working but the browser ends up on the . > cfc page. I am not sure the best way to redirect to the proper .cfm > destination page. Normally the destination page will be different > depending on the source page. > > I hope this all makes sense. > > Any help on this would be greatly appreciated. > > Thanks in advance. ~| Upgrade to Adobe ColdFusion MX7 The most significant release in over 10 years. Upgrade & see new features. http://www.adobe.com/products/coldfusion?sdid=RVJR Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:283516 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Submitting form to .cfc page
Not many people like doing it this way, but the CFC supports the concept. You just finish up the same way you used to. After the cfc function has done what it is doing - relocate the user to the desired page with a , most likely with some kind of logic to provide different end locations depending on the results of the processing logic. ~| Macromedia ColdFusion MX7 Upgrade to MX7 & experience time-saving features, more productivity. http://www.adobe.com/products/coldfusion?sdid=RVJW Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:283515 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Submitting form to .cfc page
not sure of the "right" way myself... but you could always make the action page a "normal" .cfm page and call the CFC's method from that action page (passing the entire form struct as an argument)... and your in that same page. On 7/11/07, Steve Sequenzia <[EMAIL PROTECTED]> wrote: > I am pretty new to using ColdFusion components but I am trying to start doing > all my inserts and queries with them. > > In the past I would always submit my forms to another .cfm page (usually > called action). On that page I would do my SQL inserts or whatever and then > put a at the bottom that directed the browser to the proper > destination page. I am not really sure if this is best practice coding but it > always worked for me. > > When using components it seems like I should be submitting the form to the > .cfc by making it the action page of the form. That all works fine and the > database inserts are working but the browser ends up on the .cfc page. I am > not sure the best way to redirect to the proper .cfm destination page. > Normally the destination page will be different depending on the source page. > > I hope this all makes sense. > > Any help on this would be greatly appreciated. > > Thanks in advance. > > ~| ColdFusion MX7 and Flex 2 Build sales & marketing dashboard RIAâs for your business. Upgrade now http://www.adobe.com/products/coldfusion/flex2?sdid=RVJT Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:283513 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Submitting form to .cfc page
I wouldn't submit directly to the cfc... I would submit to another template that invokes the CFC, passing arguments to it from the form or attributes scope. Or: myCfcObject = CreateObject("component", "myCfc"); myReturn = myCfcObject.setMyMethod(form.myFormVariable); Jim Rising Sr. Cold Fusion Developer ICGLink Inc. www.icglink.com -Original Message- From: Steve Sequenzia [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 11, 2007 4:47 PM To: CF-Talk Subject: Submitting form to .cfc page I am pretty new to using ColdFusion components but I am trying to start doing all my inserts and queries with them. In the past I would always submit my forms to another .cfm page (usually called action). On that page I would do my SQL inserts or whatever and then put a at the bottom that directed the browser to the proper destination page. I am not really sure if this is best practice coding but it always worked for me. When using components it seems like I should be submitting the form to the ..cfc by making it the action page of the form. That all works fine and the database inserts are working but the browser ends up on the .cfc page. I am not sure the best way to redirect to the proper .cfm destination page. Normally the destination page will be different depending on the source page. I hope this all makes sense. Any help on this would be greatly appreciated. Thanks in advance. ~| ColdFusion MX7 and Flex 2 Build sales & marketing dashboard RIAâs for your business. Upgrade now http://www.adobe.com/products/coldfusion/flex2?sdid=RVJT Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:283514 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Submitting form to .cfc page
Usually, you only interact with CFM pages from the browser. Those CFM pages then delegate processing to your CFCs. If you take your current model, the first step would be to move your queries into CFCs, and then invoke the CFC methods from your action page, before doing the CFLOCATION. The general rule of thumb that I follow is that if it's a UI concern, it goes in a CFM (which might be an include, a custom tag, a UDF library, etc), but if it's a business concern, it goes in a CFC. cheers, barneyb On 7/11/07, Steve Sequenzia <[EMAIL PROTECTED]> wrote: > I am pretty new to using ColdFusion components but I am trying to start doing > all my inserts and queries with them. > > In the past I would always submit my forms to another .cfm page (usually > called action). On that page I would do my SQL inserts or whatever and then > put a at the bottom that directed the browser to the proper > destination page. I am not really sure if this is best practice coding but it > always worked for me. > > When using components it seems like I should be submitting the form to the > .cfc by making it the action page of the form. That all works fine and the > database inserts are working but the browser ends up on the .cfc page. I am > not sure the best way to redirect to the proper .cfm destination page. > Normally the destination page will be different depending on the source page. > > I hope this all makes sense. > > Any help on this would be greatly appreciated. > > Thanks in advance. > -- Barney Boisvert [EMAIL PROTECTED] http://www.barneyb.com/ Got Gmail? I have 100 invites. ~| Create Web Applications With ColdFusion MX7 & Flex 2. Build powerful, scalable RIAs. Free Trial http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJS Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:283511 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Metadata for code documentation (was RE: SURVEY RESULTS: Is ColdFusion OO?)
> -Original Message- > From: Tom Chiverton [mailto:[EMAIL PROTECTED] > Sent: Wednesday, 11 July 2007 7:59 PM > To: CF-Talk > Subject: Re: Metadata for code documentation (was RE: SURVEY RESULTS: Is > ColdFusion OO?) > > > On Wednesday 11 Jul 2007, Jaime Metcher wrote: > > there is no enforceable contract, so cfinterface turns into an elaborate > > commenting mechanism with a runtime performance penalty. > > Did you try the CF8 beta yet :-) ? > That's the Mona Lisa smiley - I can tell you're thinking something, but I'm not sure what it is. Jaime ~| ColdFusion 8 beta â Build next generation applications today. Free beta download on Labs http://www.adobe.com/cfusion/entitlement/index.cfm?e=labs_adobecf8_beta Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:283512 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Submitting form to .cfc page
I am pretty new to using ColdFusion components but I am trying to start doing all my inserts and queries with them. In the past I would always submit my forms to another .cfm page (usually called action). On that page I would do my SQL inserts or whatever and then put a at the bottom that directed the browser to the proper destination page. I am not really sure if this is best practice coding but it always worked for me. When using components it seems like I should be submitting the form to the .cfc by making it the action page of the form. That all works fine and the database inserts are working but the browser ends up on the .cfc page. I am not sure the best way to redirect to the proper .cfm destination page. Normally the destination page will be different depending on the source page. I hope this all makes sense. Any help on this would be greatly appreciated. Thanks in advance. ~| Upgrade to Adobe ColdFusion MX7 The most significant release in over 10 years. Upgrade & see new features. http://www.adobe.com/products/coldfusion?sdid=RVJR Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:283510 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: too many js libraries
Thanks for all the suggestions and interesting chat! I think an easy win would be to create one combined js file to start with, but I guess there is no other way than to look for and properly document what is actually being used. I was hoping you guys had a nice eclipse or browser plugin that showed a list of js functions called cheers! On 7/11/07, Dave Watts <[EMAIL PROTECTED]> wrote: > > > If you have a view within an application that uses an ajax > > enabled datagrid but does not need autocomplete, form > > validation, and an accordian... Why would you load your > > entire toolbox into the back of the truck when all you need > > is a box of nails and a hammer? So maybe you don't expire > > content immediately (or at all) ... But at least identify > > those javascript components that are needed for what you're > > doing, and only download those tools when they are needed > > rather than downloading all of the objects you have and > > including all of them into every view as a default? > > Because I haven't seen any evidence that simply including them as static, > cacheable files into every view creates any significant overhead, and > because there is overhead in dynamically building view-specific > JavaScript. > > > I don't know how browsers interpret javascript either... But > > it does seem like pages that are heavy on js do use lots of > > memory, and when I see my browser footprint climbing... > > Is this because those pages use lots of JavaScript? > > 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! > > This email has been processed by SmoothZap - www.smoothwall.net > > > ~| Deploy Web Applications Quickly across the enterprise with ColdFusion MX7 & Flex 2 Free Trial http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:283509 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Named anchor + url params in IE
ok what i have done is remove it out of the cfoutput tag and just used the one hash. works now. i was using the double hash to escape it? thanks dave. mike >> and at the top of the article a link > href="##comments">View Comment > >Is this within a CFOUTPUT? If not, you don't need two hashes. > >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! > >This email has been processed by SmoothZap - www.smoothwall.net ~| Create Web Applications With ColdFusion MX7 & Flex 2. Build powerful, scalable RIAs. Free Trial http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJS Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:283508 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: too many js libraries
> If you have a view within an application that uses an ajax > enabled datagrid but does not need autocomplete, form > validation, and an accordian... Why would you load your > entire toolbox into the back of the truck when all you need > is a box of nails and a hammer? So maybe you don't expire > content immediately (or at all) ... But at least identify > those javascript components that are needed for what you're > doing, and only download those tools when they are needed > rather than downloading all of the objects you have and > including all of them into every view as a default? Because I haven't seen any evidence that simply including them as static, cacheable files into every view creates any significant overhead, and because there is overhead in dynamically building view-specific JavaScript. > I don't know how browsers interpret javascript either... But > it does seem like pages that are heavy on js do use lots of > memory, and when I see my browser footprint climbing... Is this because those pages use lots of JavaScript? 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! This email has been processed by SmoothZap - www.smoothwall.net ~| Create Web Applications With ColdFusion MX7 & Flex 2. Build powerful, scalable RIAs. Free Trial http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJS Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:283507 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: too many js libraries
That is exactly what I was saying... 'unless no two pages use the same code at all' If you have a view within an application that uses an ajax enabled datagrid but does not need autocomplete, form validation, and an accordian... Why would you load your entire toolbox into the back of the truck when all you need is a box of nails and a hammer? So maybe you don't expire content immediately (or at all) ... But at least identify those javascript components that are needed for what you're doing, and only download those tools when they are needed rather than downloading all of the objects you have and including all of them into every view as a default? I don't know how browsers interpret javascript either... But it does seem like pages that are heavy on js do use lots of memory, and when I see my browser footprint climbing... I have to wonder if there's another way. :) Jim Rising Sr. Cold Fusion Developer ICGLink Inc. www.icglink.com -Original Message- From: Dave Watts [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 11, 2007 3:11 PM To: CF-Talk Subject: RE: too many js libraries > I figured it would be an issue with browser caching... Hence the 'of > course I don't know how well this deals with browser caching issues'. > :) > > though I suspect that you could 'expire content immediately' > on the web server to remedy this. That gets a distinctly suboptimal result. If you're using a bunch of JavaScript on many pages, that JavaScript should be downloaded and cached once, unless no two pages use the same code at all. > If bandwidth is your issue, seems like a huge waste of time for such a > small problem anyhow considering that all of these resources can be > loaded once at 'runtime'... Though as brad mentioned, if the issue > isn't bandwidth but cpu and memory overhead... Fewer functions means > less overhead. Bandwidth is not the issue. Downloading takes time and negatively affects performance. I don't know enough about how browsers interpret JavaScript to be sure that fewer functions means less overhead. Of course, fewer functions means less download time, but there are things you can do about that: http://betterexplained.com/articles/speed-up-your-javascript-load-time/ 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! This email has been processed by SmoothZap - www.smoothwall.net ~| Create robust enterprise, web RIAs. Upgrade & integrate Adobe Coldfusion MX7 with Flex 2 http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:283506 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: Named anchor + url params in IE
> and at the top of the article a link href="##comments">View Comment Is this within a CFOUTPUT? If not, you don't need two hashes. 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! This email has been processed by SmoothZap - www.smoothwall.net ~| CF 8 â Scorpio beta now available, easily build great internet experiences â Try it now on Labs http://www.adobe.com/cfusion/entitlement/index.cfm?e=labs_adobecf8_beta Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:283505 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Named anchor + url params in IE
this is really bugging me. i have a named anchor at the bottom of the article... and at the top of the article a link View Comment why would this not be working? it doesn't even seem to work when there are no URL params. mike > came across this thread in my search for a solution. was this ever > sorted as i am having the exact problem with IE7?? > > mike > > >I'm finding that urls with both parameters and a named anchor, like > this: > > > > somesite/somedir/somefile.cfm?method=go&action=showHelp#help_sql > > > >...work fine in Firefox, but not in IE. It goes to the page, but not > to the > >requested anchor. > > > > > >Also tried this variant: > > > > somesite/somedir/somefile.cfm#help_sql?method=go&action=showHelp > > > >...no joy in either browser. > > > > > >Has anyone else seen this behavior? More importantly, got a > workaround? > > > >Thanks, > > > >Dave Merrill ~| ColdFusion MX7 by Adobe® Dyncamically transform webcontent into Adobe PDF with new ColdFusion MX7. Free Trial. http://www.adobe.com/products/coldfusion?sdid=RVJV Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:283504 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Selecting top row in access db
the maxrows worked too. wasn't sure i could have a cfif in the cfquery tag though. >Very interesting. I'm curious how maxrows="1" in the cfquery tag would >have behaved. > >~Brad > >-Original Message- >From: Mike Little [mailto:[EMAIL PROTECTED] >Sent: Tuesday, July 10, 2007 6:52 PM >To: CF-Talk >Subject: Re: Selecting top row in access db > >how about that - adding an additional column to the order by clause >fixed it! > >thanks heaps adrian. > >>Have a read of this: >> >>http://articles.techrepublic.com.com/5100-22-5035113.html >> >>Might explain things. >> >>Adrian >> ~| Deploy Web Applications Quickly across the enterprise with ColdFusion MX7 & Flex 2 Free Trial http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:283503 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: too many js libraries
> I figured it would be an issue with browser caching... Hence > the 'of course I don't know how well this deals with browser > caching issues'. :) > > though I suspect that you could 'expire content immediately' > on the web server to remedy this. That gets a distinctly suboptimal result. If you're using a bunch of JavaScript on many pages, that JavaScript should be downloaded and cached once, unless no two pages use the same code at all. > If bandwidth is your issue, seems like a huge waste of time > for such a small problem anyhow considering that all of these > resources can be loaded once at 'runtime'... Though as brad > mentioned, if the issue isn't bandwidth but cpu and memory > overhead... Fewer functions means less overhead. Bandwidth is not the issue. Downloading takes time and negatively affects performance. I don't know enough about how browsers interpret JavaScript to be sure that fewer functions means less overhead. Of course, fewer functions means less download time, but there are things you can do about that: http://betterexplained.com/articles/speed-up-your-javascript-load-time/ 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! This email has been processed by SmoothZap - www.smoothwall.net ~| Create robust enterprise, web RIAs. Upgrade & integrate Adobe Coldfusion MX7 with Flex 2 http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:283502 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: too many js libraries
See my previous email. You don't want the browser to load a new JS file each time. That would be silly if they've already got it. -Original Message- From: Jim Rising [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 11, 2007 2:31 PM To: CF-Talk Subject: RE: too many js libraries Yeah... That was the first approach I thought of, but didn't think it was as elegant. ;) The other thing that I was thinking about is that the number of potential I/O accesses involved in that as the browser rips through all of the included javascript src. Why not just append a UUID or random number to the end? Won't that force the browser to load a fresh copy of the javascript source? And for extra measure... Expire the content on the server? Jim Rising Sr. Cold Fusion Developer ICGLink Inc. www.icglink.com -Original Message- From: Andy Matthews [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 11, 2007 1:47 PM To: CF-Talk Subject: RE: too many js libraries Would probably be better to include javascript.cfm, which then writes each individual script tag to the page. Otherwise the browser is only going to try and cache javascript.cfm. -Original Message- From: Jim Rising [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 11, 2007 1:16 PM To: CF-Talk Subject: RE: too many js libraries Yeah I know... But I still like how mootools allows the developer to download only those portions of the library that they need for the parts that they are actually using into a tidy little compressed package. :) the core is under 3k. The core + all elements needed for a javascript accordian ~20k. It's sort of the same problem... If you are including the entire javascript library and not just the components of the library that you're actually using... Fixing that on the front end is one way to reduce your overall page weight. (which is what it looks like Mike is trying to do) If I was to try and solve the problem on the other end (after the site was developed), I would first identify all the javascript objects that were in use, and where they were being used within the application. No idea on the best approach for this... Seems like a manual search. Once I had them all inventoried, I would build a single 'javascript.cfm' file that consists of conditional logic wrapped around javascript, where the conditions identified specific javascript functionality given by javascript objects. At the top of every page, I would put a (where the default values are the objects that I want included on that page). After all of this was done, I would include the javascript.cfm like this: Of course I don't know how well this deals with browser caching issues... Jim Rising Sr. Cold Fusion Developer ICGLink Inc. www.icglink.com -Original Message- From: Andy Matthews [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 11, 2007 11:49 AM To: CF-Talk Subject: RE: too many js libraries He's talking about downloading the code in production to the client computer. You're talking about a "build" for the developer Jim. -Original Message- From: Jim Rising [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 11, 2007 11:06 AM To: CF-Talk Subject: RE: too many js libraries I like mootools' approach... They have a downloader that allows you to download only what you need: http://www.mootools.net/download Jim Rising Sr. Cold Fusion Developer ICGLink Inc. www.icglink.com -Original Message- From: Michael Traher [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 11, 2007 10:26 AM To: CF-Talk Subject: too many js libraries Hi All, We have developed a large new website and used a number of javascript libraries along the way for some effects and some ajax stuff. I have a feeling that we are only using a tiny proportion of these libraries, but they are being downloaded in full. My question is how to find out what functions are in use across the entire code base? Anyone had to do this kind of optimisation process? Any tips or tools that might help? (I am already compressing the files in IIS6) Cheers -- Mike T Blog http://www.socialpoints.com/ ~| Create robust enterprise, web RIAs. Upgrade & integrate Adobe Coldfusion MX7 with Flex 2 http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:283501 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: too many js libraries
So maybe: Then it should only cache it for the view that it is on. The max overall script downloads for any given application would be based on the number of views you had. Jim Rising Sr. Cold Fusion Developer ICGLink Inc. www.icglink.com -Original Message- From: Andy Matthews [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 11, 2007 2:38 PM To: CF-Talk Subject: RE: too many js libraries You wouldn't want to expire that content though. You WANT to cache it. ~| Deploy Web Applications Quickly across the enterprise with ColdFusion MX7 & Flex 2 Free Trial http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:283500 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: too many js libraries
> For instance, if I dump (www.netgrow.com.au/files) a JavaScript > array while using the prototype library, there are a crap load of > extra functions tacked on to each array and that kind of stuff > has to add up. Why does it have to add up? They're not passed by value when you create a new array, not if they're written correctly. They're passed by reference. You shouldn't have more than one copy of the actual function in question in memory, no matter how many arrays you have. > Today I used a script to output all the variables in an IE window > (http://www.thomasfrank.se/global_namespace.html) and dumped > the result (with the above mentioned dump function). My CPU > red lined at 100% for TEN MINUTES and then finally cranked > out 25 MEGS of html dump showing me every single variable, > function, array, etc in the page. *MUCH* of the stuff which > was dumped out was stuff which came from different js > libraries laying around. That says more about how long it takes to render HTML tables than it does about memory usage. I agree that, ideally, you shouldn't have duplication of functionality that you may get when you use different libraries, though. 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! This email has been processed by SmoothZap - www.smoothwall.net ~| Macromedia ColdFusion MX7 Upgrade to MX7 & experience time-saving features, more productivity. http://www.adobe.com/products/coldfusion?sdid=RVJW Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:283499 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: too many js libraries
You wouldn't want to expire that content though. You WANT to cache it. -Original Message- From: Jim Rising [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 11, 2007 2:06 PM To: CF-Talk Subject: RE: too many js libraries I figured it would be an issue with browser caching... Hence the 'of course I don't know how well this deals with browser caching issues'. :) though I suspect that you could 'expire content immediately' on the web server to remedy this. If bandwidth is your issue, seems like a huge waste of time for such a small problem anyhow considering that all of these resources can be loaded once at 'runtime'... Though as brad mentioned, if the issue isn't bandwidth but cpu and memory overhead... Fewer functions means less overhead. Jim Rising Sr. Cold Fusion Developer ICGLink Inc. www.icglink.com -Original Message- From: Dave Watts [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 11, 2007 1:37 PM To: CF-Talk Subject: RE: too many js libraries > If I was to try and solve the problem on the other end (after the site > was developed), I would first identify all the javascript objects that > were in use, and where they were being used within the application. No > idea on the best approach for this... Seems like a manual search. Once > I had them all inventoried, I would build a single 'javascript.cfm' > file that consists of conditional logic wrapped around javascript, > where the conditions identified specific javascript functionality > given by javascript objects. At the top of every page, I would put a > default="accordian,XMLHttpRequest,autocomplete"> (where the default > values are the objects that I want included on that page). > > After all of this was done, I would include the javascript.cfm like > this: > > > > Of course I don't know how well this deals with browser caching > issues... That would be a terrible approach, because of browser caching issues. You'd be much better off just having one static JS file that gets used by every page, but only downloaded once. 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! This email has been processed by SmoothZap - www.smoothwall.net ~| ColdFusion 8 beta â Build next generation applications today. Free beta download on Labs http://www.adobe.com/cfusion/entitlement/index.cfm?e=labs_adobecf8_beta Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:283498 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: too many js libraries
Yeah... That was the first approach I thought of, but didn't think it was as elegant. ;) The other thing that I was thinking about is that the number of potential I/O accesses involved in that as the browser rips through all of the included javascript src. Why not just append a UUID or random number to the end? Won't that force the browser to load a fresh copy of the javascript source? And for extra measure... Expire the content on the server? Jim Rising Sr. Cold Fusion Developer ICGLink Inc. www.icglink.com -Original Message- From: Andy Matthews [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 11, 2007 1:47 PM To: CF-Talk Subject: RE: too many js libraries Would probably be better to include javascript.cfm, which then writes each individual script tag to the page. Otherwise the browser is only going to try and cache javascript.cfm. -Original Message- From: Jim Rising [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 11, 2007 1:16 PM To: CF-Talk Subject: RE: too many js libraries Yeah I know... But I still like how mootools allows the developer to download only those portions of the library that they need for the parts that they are actually using into a tidy little compressed package. :) the core is under 3k. The core + all elements needed for a javascript accordian ~20k. It's sort of the same problem... If you are including the entire javascript library and not just the components of the library that you're actually using... Fixing that on the front end is one way to reduce your overall page weight. (which is what it looks like Mike is trying to do) If I was to try and solve the problem on the other end (after the site was developed), I would first identify all the javascript objects that were in use, and where they were being used within the application. No idea on the best approach for this... Seems like a manual search. Once I had them all inventoried, I would build a single 'javascript.cfm' file that consists of conditional logic wrapped around javascript, where the conditions identified specific javascript functionality given by javascript objects. At the top of every page, I would put a (where the default values are the objects that I want included on that page). After all of this was done, I would include the javascript.cfm like this: Of course I don't know how well this deals with browser caching issues... Jim Rising Sr. Cold Fusion Developer ICGLink Inc. www.icglink.com -Original Message- From: Andy Matthews [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 11, 2007 11:49 AM To: CF-Talk Subject: RE: too many js libraries He's talking about downloading the code in production to the client computer. You're talking about a "build" for the developer Jim. -Original Message- From: Jim Rising [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 11, 2007 11:06 AM To: CF-Talk Subject: RE: too many js libraries I like mootools' approach... They have a downloader that allows you to download only what you need: http://www.mootools.net/download Jim Rising Sr. Cold Fusion Developer ICGLink Inc. www.icglink.com -Original Message- From: Michael Traher [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 11, 2007 10:26 AM To: CF-Talk Subject: too many js libraries Hi All, We have developed a large new website and used a number of javascript libraries along the way for some effects and some ajax stuff. I have a feeling that we are only using a tiny proportion of these libraries, but they are being downloaded in full. My question is how to find out what functions are in use across the entire code base? Anyone had to do this kind of optimisation process? Any tips or tools that might help? (I am already compressing the files in IIS6) Cheers -- Mike T Blog http://www.socialpoints.com/ ~| ColdFusion MX7 by Adobe® Dyncamically transform webcontent into Adobe PDF with new ColdFusion MX7. Free Trial. http://www.adobe.com/products/coldfusion?sdid=RVJV Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:283497 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: too many js libraries
I figured it would be an issue with browser caching... Hence the 'of course I don't know how well this deals with browser caching issues'. :) though I suspect that you could 'expire content immediately' on the web server to remedy this. If bandwidth is your issue, seems like a huge waste of time for such a small problem anyhow considering that all of these resources can be loaded once at 'runtime'... Though as brad mentioned, if the issue isn't bandwidth but cpu and memory overhead... Fewer functions means less overhead. Jim Rising Sr. Cold Fusion Developer ICGLink Inc. www.icglink.com -Original Message- From: Dave Watts [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 11, 2007 1:37 PM To: CF-Talk Subject: RE: too many js libraries > If I was to try and solve the problem on the other end (after the site > was developed), I would first identify all the javascript objects that > were in use, and where they were being used within the application. No > idea on the best approach for this... Seems like a manual search. Once > I had them all inventoried, I would build a single 'javascript.cfm' > file that consists of conditional logic wrapped around javascript, > where the conditions identified specific javascript functionality > given by javascript objects. At the top of every page, I would put a > default="accordian,XMLHttpRequest,autocomplete"> (where the default > values are the objects that I want included on that page). > > After all of this was done, I would include the javascript.cfm like > this: > > > > Of course I don't know how well this deals with browser caching > issues... That would be a terrible approach, because of browser caching issues. You'd be much better off just having one static JS file that gets used by every page, but only downloaded once. 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! This email has been processed by SmoothZap - www.smoothwall.net ~| ColdFusion MX7 and Flex 2 Build sales & marketing dashboard RIAâs for your business. Upgrade now http://www.adobe.com/products/coldfusion/flex2?sdid=RVJT Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:283494 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Spry - File Upload - validate mime type
Just because it gracefully handles an error if the object you're creating is not actually an image() does not make it mime type validation, that would be handling onError... It could possibly be considered a form of passive image validation ... but really only for a handful of image types, and does not identify specific image types so I would not go as far as saying that it is a form of mime type validation (as you mentioned, it is 'limited'). And I didn't 'miss' the way it validates images, I saw that you were creating an image() object, and it's a very creative work-around to validate some image types on the client side. I just assumed that the user was looking for full mime type validation, and was only referencing what I thought would apply to what I figured he needed. What more do you want me to say? I've already said 3 times that it was a nice validation library (once referenced here), and have now said that the way you are validating images is a creative approach. Good job. Too bad about firefox... Seems like you have a good thing here otherwise. Dissapointing (but expected) about browsers not following standard with the 'accept' attribute on input type="file". I've never personally tried to use it... Just saw that it was part of the standard and figured it might help. Let's just end this thread. I'm sure we've both got better things to do with our time than to argue. Jim Rising Sr. Cold Fusion Developer ICGLink Inc. www.icglink.com -Original Message- From: Massimo Foti [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 11, 2007 12:13 PM To: CF-Talk Subject: Re: Spry - File Upload - validate mime type > No need to get defensive. People tend to get defensive whenever you post ill-informed comments about their work. It's kind of human nature. > The original poster's request was for mime type validation, not for > finding > image dimemsions and such. That's why I wrote "If you need to validate images this could work" > I was speaking specifically about how TMT > validates file types. And you clearly haven't look at the code between line 463 and line 510. Or didn't realize that certain features can't be just the results of checking for file extensions. > I didn't even look at how TMT deals with file sizes, > dimensions, etc... The way that TMT validates file types is by regexp on > file extension: > > tmt_globalPatterns.filepath_pdf = new > RegExp("[\\w_]*\\.([pP][dD][fF])$"); > tmt_globalPatterns.filepath_jpg_gif = new > RegExp("[\\w_]*\\.([gG][iI][fF])|([jJ][pP][eE]?[gG])$"); > tmt_globalPatterns.filepath_jpg = new > RegExp("[\\w_]*\\.([jJ][pP][eE]?[gG])$"); > tmt_globalPatterns.filepath_zip = new > RegExp("[\\w_]*\\.([zZ][iI][pP])$"); > tmt_globalPatterns.filepath = new RegExp("[\\w_]*\\.\\w{3}$"); What you are missing is the way it validates images. It's just 10 lines above. It creates a JavaScript image object and if that fails it returns an error. Since browsers creates image objects only out of gif, jpg, png or bmp, this is can work as mime-type validation too. It has limitations > Again... It's a nice validation library... But it's not really doing what > the poster was asking for. There is no client-side solution for what the poster ask. As far as I know the "accept" attribute is unfortunately not supported by IE and FF (don't know about Safari, sorry). But I would be more than glad to be proved wrong on this. See also comments on "accept" here: http://htmlhelp.com/reference/html40/forms/input.html Anyway, my previous post was about your [...] it's really just using a regexp or pattern to define file extensions... [...] not about the original post (I already answered that one to my best). Massimo Foti, web-programmer for hire Tools for ColdFusion and Dreamweaver developers: http://www.massimocorner.com ~| CF 8 â Scorpio beta now available, easily build great internet experiences â Try it now on Labs http://www.adobe.com/cfusion/entitlement/index.cfm?e=labs_adobecf8_beta Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:283495 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: too many js libraries
That would be sweet! Jim Rising Sr. Cold Fusion Developer ICGLink Inc. www.icglink.com -Original Message- From: Andy Matthews [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 11, 2007 1:45 PM To: CF-Talk Subject: RE: too many js libraries Right... You create a build that contains ONLY the library items you're going to use, all in a single JS file. That's the file that then gets downloaded by the end user. It doesn't dynamically build the file for the user at runtime though. andy -Original Message- From: Jim Davis [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 11, 2007 12:59 PM To: CF-Talk Subject: RE: too many js libraries > -Original Message- > From: Andy Matthews [mailto:[EMAIL PROTECTED] > Sent: Wednesday, July 11, 2007 12:49 PM > To: CF-Talk > Subject: RE: too many js libraries > > He's talking about downloading the code in production to the client > computer. You're talking about a "build" for the developer Jim. No - it's actually both, I'm nearly positive. MooTools lets you say "I only used these tools/methods/functions, create me a customer library that only includes those." This is then the file that gets downloaded by the end user in production. Jim Davis ~| Create Web Applications With ColdFusion MX7 & Flex 2. Build powerful, scalable RIAs. Free Trial http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJS Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:283496 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: too many js libraries
Would probably be better to include javascript.cfm, which then writes each individual script tag to the page. Otherwise the browser is only going to try and cache javascript.cfm. -Original Message- From: Jim Rising [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 11, 2007 1:16 PM To: CF-Talk Subject: RE: too many js libraries Yeah I know... But I still like how mootools allows the developer to download only those portions of the library that they need for the parts that they are actually using into a tidy little compressed package. :) the core is under 3k. The core + all elements needed for a javascript accordian ~20k. It's sort of the same problem... If you are including the entire javascript library and not just the components of the library that you're actually using... Fixing that on the front end is one way to reduce your overall page weight. (which is what it looks like Mike is trying to do) If I was to try and solve the problem on the other end (after the site was developed), I would first identify all the javascript objects that were in use, and where they were being used within the application. No idea on the best approach for this... Seems like a manual search. Once I had them all inventoried, I would build a single 'javascript.cfm' file that consists of conditional logic wrapped around javascript, where the conditions identified specific javascript functionality given by javascript objects. At the top of every page, I would put a (where the default values are the objects that I want included on that page). After all of this was done, I would include the javascript.cfm like this: Of course I don't know how well this deals with browser caching issues... Jim Rising Sr. Cold Fusion Developer ICGLink Inc. www.icglink.com -Original Message- From: Andy Matthews [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 11, 2007 11:49 AM To: CF-Talk Subject: RE: too many js libraries He's talking about downloading the code in production to the client computer. You're talking about a "build" for the developer Jim. -Original Message- From: Jim Rising [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 11, 2007 11:06 AM To: CF-Talk Subject: RE: too many js libraries I like mootools' approach... They have a downloader that allows you to download only what you need: http://www.mootools.net/download Jim Rising Sr. Cold Fusion Developer ICGLink Inc. www.icglink.com -Original Message- From: Michael Traher [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 11, 2007 10:26 AM To: CF-Talk Subject: too many js libraries Hi All, We have developed a large new website and used a number of javascript libraries along the way for some effects and some ajax stuff. I have a feeling that we are only using a tiny proportion of these libraries, but they are being downloaded in full. My question is how to find out what functions are in use across the entire code base? Anyone had to do this kind of optimisation process? Any tips or tools that might help? (I am already compressing the files in IIS6) Cheers -- Mike T Blog http://www.socialpoints.com/ ~| CF 8 â Scorpio beta now available, easily build great internet experiences â Try it now on Labs http://www.adobe.com/cfusion/entitlement/index.cfm?e=labs_adobecf8_beta Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:283493 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: too many js libraries
It's not necessarily terrible if you use proper expiration headers. But I agree, better (and easier) to smash all the JS into a single static file and just use that. On 7/11/07, Dave Watts <[EMAIL PROTECTED]> wrote: > > If I was to try and solve the problem on the other end (after > > the site was developed), I would first identify all the > > javascript objects that were in use, and where they were > > being used within the application. No idea on the best > > approach for this... Seems like a manual search. Once I had > > them all inventoried, I would build a single 'javascript.cfm' > > file that consists of conditional logic wrapped around > > javascript, where the conditions identified specific > > javascript functionality given by javascript objects. At the > > top of every page, I would put a > default="accordian,XMLHttpRequest,autocomplete"> (where the > > default values are the objects that I want included on that page). > > > > After all of this was done, I would include the > > javascript.cfm like this: > > > > > > > > Of course I don't know how well this deals with browser > > caching issues... > > That would be a terrible approach, because of browser caching issues. You'd > be much better off just having one static JS file that gets used by every > page, but only downloaded once. > > Dave Watts, CTO, Fig Leaf Software > http://www.figleaf.com/ > -- Barney Boisvert [EMAIL PROTECTED] http://www.barneyb.com/ Got Gmail? I have 100 invites. ~| Deploy Web Applications Quickly across the enterprise with ColdFusion MX7 & Flex 2 Free Trial http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:283491 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: too many js libraries
Right... You create a build that contains ONLY the library items you're going to use, all in a single JS file. That's the file that then gets downloaded by the end user. It doesn't dynamically build the file for the user at runtime though. andy -Original Message- From: Jim Davis [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 11, 2007 12:59 PM To: CF-Talk Subject: RE: too many js libraries > -Original Message- > From: Andy Matthews [mailto:[EMAIL PROTECTED] > Sent: Wednesday, July 11, 2007 12:49 PM > To: CF-Talk > Subject: RE: too many js libraries > > He's talking about downloading the code in production to the client > computer. You're talking about a "build" for the developer Jim. No - it's actually both, I'm nearly positive. MooTools lets you say "I only used these tools/methods/functions, create me a customer library that only includes those." This is then the file that gets downloaded by the end user in production. Jim Davis ~| ColdFusion MX7 and Flex 2 Build sales & marketing dashboard RIAâs for your business. Upgrade now http://www.adobe.com/products/coldfusion/flex2?sdid=RVJT Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:283492 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: too many js libraries
> If I was to try and solve the problem on the other end (after > the site was developed), I would first identify all the > javascript objects that were in use, and where they were > being used within the application. No idea on the best > approach for this... Seems like a manual search. Once I had > them all inventoried, I would build a single 'javascript.cfm' > file that consists of conditional logic wrapped around > javascript, where the conditions identified specific > javascript functionality given by javascript objects. At the > top of every page, I would put a default="accordian,XMLHttpRequest,autocomplete"> (where the > default values are the objects that I want included on that page). > > After all of this was done, I would include the > javascript.cfm like this: > > > > Of course I don't know how well this deals with browser > caching issues... That would be a terrible approach, because of browser caching issues. You'd be much better off just having one static JS file that gets used by every page, but only downloaded once. 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! This email has been processed by SmoothZap - www.smoothwall.net ~| ColdFusion MX7 by Adobe® Dyncamically transform webcontent into Adobe PDF with new ColdFusion MX7. Free Trial. http://www.adobe.com/products/coldfusion?sdid=RVJV Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:283489 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: SURVEY RESULTS: Is ColdFusion OO?
Without getting into how the survey was unfair or whatever, I answered based on what I read at wikipedia: http://en.wikipedia.org/wiki/Object-oriented_programming The fundamental parts of an OOPL are classes, objects, methods, passing messages, inheritance, encapsulation, abstraction and polymorphism. It seems to me that encapsulation and abstraction are more like programmer features than programming language features, but the language has to provide a little something for those to happen. Under this definition, I would say that CF passes the test pretty easily. I voted yes. BTW I didn't see CF anywhere on the wikipedia entry, so I added it in the scripting section :) For those mentioned missing features in the survey, I know we've been bickering for the last few days, but I wanted to pitch my 2c ... 1) Overloading, while nice to have, wouldn't work so well, and would make CFCs more complicated. 2) Constructors, yeah, i could see an argument for that, but there's already a well established workaround. 3) Interfaces are coming, I recommend that they are only used in extreme cases, but I've hit a few spots where I wanted to make one and there was no obvious way to go. I think the problem here is the complexity it adds to the already hard-to-grasp-for-newbies CFC development paradigm. 4) Multiple Inheritance, not many languages have this. Read a pattern book and get over it. 5) Serialization for components is also coming, but it's not a language feature and has nothing to do with OOP. I think the reason why people would vote "no" to the main question is that we know in an OOPL we create an object and call methods on it. new struct(), struct.keyList(), but in CF we do structNew(), structKeyList(myStruct). It doesn't "feel" OO, even as much as javascript does, unless you're heavily using CFCs for everything. -- nathan strutz http://www.dopefly.com/ On 7/9/07, Dale Fraser <[EMAIL PROTECTED]> wrote: > > After reading a Blog Entry of Ray Camden, in a general comment, he made > this > statement. > > "CF is not OO. CF should NOT be OO. And lastly, I pray to God that CF > never > becomes OO." > > I didn't agree, I actually think ColdFusion is OO, and thought that view > especially from Ray was odd, then I thought, well perhaps I have it wrong, > perhaps CF is not OO and i'm the only one who thinks it is. So I ran a > Survey, posted to both cftalk and cfaussie. > > The results are quite interesting. > > 1. Do you consider ColdFusion to be Object Oriented? > Yes: 66% > No: 34% > > 2. What percentage do you think ColdFusion achieves the ability to code OO > style. > 0-20%: 2% > 20-40%: 4% > 40-60%: 24% > 60-80%: 44% > 80-100%: 26% > > 3. Would you like the Adobe ColdFusion team to further develop ColdFusion > OO > features? > Yes: 58% > No: 42% > > 4. What is the number one feature missing from ColdFusion from an OO point > of view? > None / Pass: 52% > Overloading: 16% > Constructors: 10% > Overriding: 4% > Interfaces: 4% > Multiple Inheritance: 2% > Serialization: 2% > Other: 10% > > That last one was free text, so I combined a lot of dumb answers into None > / > Pass and lots of single votes into Other. I consider that CF already does > Overriding, but I left it in the stats and CF8 does Interfaces but I left > it > in also. > > But here is my summary of the survey > > Of the people surveyed 66% of people think that ColdFusion is an Object > Oriented language, 70% of people think that the OO features are between > 60-100%, just over half 58% of people think more development needs to be > done and the main two things missing are Overloading and Constructors. > > So ColdFusion is Object Oriented after all, I have always thought so and > am > supported by the numbers, we here code our entire application in a OO way > so > to me it was a no brainer. You could read deeper that if Adobe just added > Overloading and Constructors that the CF OO feel would be almost complete > but then again 52% of people passed on what the main missing feature was. > > Regards > Dale Fraser > > > > ~| CF 8 â Scorpio beta now available, easily build great internet experiences â Try it now on Labs http://www.adobe.com/cfusion/entitlement/index.cfm?e=labs_adobecf8_beta Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:283490 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: too many js libraries
This will be (somewhat) resolved in the final build. Steve "Cutter" Blades Adobe Certified Professional Advanced Macromedia ColdFusion MX 7 Developer _ http://blog.cutterscrossing.com Casey Dougall wrote: > On 7/11/07, Robertson-Ravo, Neil (RX) <[EMAIL PROTECTED]> > wrote: >> Surely if you are not using it all it would be 0k compressed or otherwise? > > > Just waite till you use some of the cfajax tags in CF8... talk about js > files!!! > > Casey > > > ~| ColdFusion MX7 by Adobe® Dyncamically transform webcontent into Adobe PDF with new ColdFusion MX7. Free Trial. http://www.adobe.com/products/coldfusion?sdid=RVJV Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:283488 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Installing a JDBC driver for Firebird
> I have copied the following files into the > \CFusionMX\wwwroot\WEB-INF\lib\ folder ... Have you restarted CF? 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! This email has been processed by SmoothZap - www.smoothwall.net ~| Deploy Web Applications Quickly across the enterprise with ColdFusion MX7 & Flex 2 Free Trial http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:283487 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: too many js libraries
Yep, using them now, gotta love YUI. "This e-mail is from Reed Exhibitions (Gateway House, 28 The Quadrant, Richmond, Surrey, TW9 1DN, United Kingdom), a division of Reed Business, Registered in England, Number 678540. It contains information which is confidential and may also be privileged. It is for the exclusive use of the intended recipient(s). If you are not the intended recipient(s) please note that any form of distribution, copying or use of this communication or the information in it is strictly prohibited and may be unlawful. If you have received this communication in error please return it to the sender or call our switchboard on +44 (0) 20 89107910. The opinions expressed within this communication are not necessarily those expressed by Reed Exhibitions." Visit our website at http://www.reedexpo.com -Original Message- From: Casey Dougall To: CF-Talk Sent: Wed Jul 11 17:43:57 2007 Subject: Re: too many js libraries On 7/11/07, Robertson-Ravo, Neil (RX) <[EMAIL PROTECTED]> wrote: > > Surely if you are not using it all it would be 0k compressed or otherwise? Just waite till you use some of the cfajax tags in CF8... talk about js files!!! Casey ~| Upgrade to Adobe ColdFusion MX7 The most significant release in over 10 years. Upgrade & see new features. http://www.adobe.com/products/coldfusion?sdid=RVJR Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:283486 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: too many js libraries
Yeah I know... But I still like how mootools allows the developer to download only those portions of the library that they need for the parts that they are actually using into a tidy little compressed package. :) the core is under 3k. The core + all elements needed for a javascript accordian ~20k. It's sort of the same problem... If you are including the entire javascript library and not just the components of the library that you're actually using... Fixing that on the front end is one way to reduce your overall page weight. (which is what it looks like Mike is trying to do) If I was to try and solve the problem on the other end (after the site was developed), I would first identify all the javascript objects that were in use, and where they were being used within the application. No idea on the best approach for this... Seems like a manual search. Once I had them all inventoried, I would build a single 'javascript.cfm' file that consists of conditional logic wrapped around javascript, where the conditions identified specific javascript functionality given by javascript objects. At the top of every page, I would put a (where the default values are the objects that I want included on that page). After all of this was done, I would include the javascript.cfm like this: Of course I don't know how well this deals with browser caching issues... Jim Rising Sr. Cold Fusion Developer ICGLink Inc. www.icglink.com -Original Message- From: Andy Matthews [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 11, 2007 11:49 AM To: CF-Talk Subject: RE: too many js libraries He's talking about downloading the code in production to the client computer. You're talking about a "build" for the developer Jim. -Original Message- From: Jim Rising [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 11, 2007 11:06 AM To: CF-Talk Subject: RE: too many js libraries I like mootools' approach... They have a downloader that allows you to download only what you need: http://www.mootools.net/download Jim Rising Sr. Cold Fusion Developer ICGLink Inc. www.icglink.com -Original Message- From: Michael Traher [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 11, 2007 10:26 AM To: CF-Talk Subject: too many js libraries Hi All, We have developed a large new website and used a number of javascript libraries along the way for some effects and some ajax stuff. I have a feeling that we are only using a tiny proportion of these libraries, but they are being downloaded in full. My question is how to find out what functions are in use across the entire code base? Anyone had to do this kind of optimisation process? Any tips or tools that might help? (I am already compressing the files in IIS6) Cheers -- Mike T Blog http://www.socialpoints.com/ ~| ColdFusion MX7 and Flex 2 Build sales & marketing dashboard RIAâs for your business. Upgrade now http://www.adobe.com/products/coldfusion/flex2?sdid=RVJT Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:283485 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: too many js libraries
Just an FYI, at CFUnited one of the Adobe engineers confirmed that the JS files in the final version of CF8 will be greatly compressed over what they are now. There will still be lots of files, but they'll be much smaller. -Original Message- From: Casey Dougall [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 11, 2007 11:44 AM To: CF-Talk Subject: Re: too many js libraries On 7/11/07, Robertson-Ravo, Neil (RX) <[EMAIL PROTECTED]> wrote: > > Surely if you are not using it all it would be 0k compressed or otherwise? Just waite till you use some of the cfajax tags in CF8... talk about js files!!! Casey ~| ColdFusion MX7 and Flex 2 Build sales & marketing dashboard RIAâs for your business. Upgrade now http://www.adobe.com/products/coldfusion/flex2?sdid=RVJT Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:283484 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: too many js libraries
> -Original Message- > From: Andy Matthews [mailto:[EMAIL PROTECTED] > Sent: Wednesday, July 11, 2007 12:49 PM > To: CF-Talk > Subject: RE: too many js libraries > > He's talking about downloading the code in production to the client > computer. You're talking about a "build" for the developer Jim. No - it's actually both, I'm nearly positive. MooTools lets you say "I only used these tools/methods/functions, create me a customer library that only includes those." This is then the file that gets downloaded by the end user in production. Jim Davis ~| Create Web Applications With ColdFusion MX7 & Flex 2. Build powerful, scalable RIAs. Free Trial http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJS Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:283483 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Client-side file validation
hey guys, in my apps a while back, if there was a fiel uploading function that had a file size limit, I would allow the user to post the file first, then have coldfusion check the file size, and if it's too big, tell the user that they can't upload it (even tho it already is!) and then the file is deleted on the server. Seems client-side validation would be the best way to do things, but how do I approach it? My first guess is java applets. Does CF have some neat applets i can use? Or, can this be done through javascript. I prefer javascript! ~| Create Web Applications With ColdFusion MX7 & Flex 2. Build powerful, scalable RIAs. Free Trial http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJS Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:283481 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: too many js libraries
See, you are all talking about compressed downloaded file size, and features (which are all important). I have found myself wondering the same question of whether we have too many js libraries all overlapping, but I am more concerned about memory usage and overhead that my browser/client OS has to deal with. For instance, if I dump (www.netgrow.com.au/files) a JavaScript array while using the prototype library, there are a crap load of extra functions tacked on to each array and that kind of stuff has to add up. Today I used a script to output all the variables in an IE window (http://www.thomasfrank.se/global_namespace.html) and dumped the result (with the above mentioned dump function). My CPU red lined at 100% for TEN MINUTES and then finally cranked out 25 MEGS of html dump showing me every single variable, function, array, etc in the page. *MUCH* of the stuff which was dumped out was stuff which came from different js libraries laying around. Maybe I'm paranoid, but that bothers me that I subject my browser to that EVEN if it is only a few K worth of source code and has tons of functionality. Is the bloat worth it? ~Brad -Original Message- From: Rey Bango [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 11, 2007 11:53 AM To: CF-Talk Subject: Re: too many js libraries Add another vote for jQuery from me. It really does encompass most of the functionality that I've needed for my apps. Rey Christopher Jordan wrote: > +1 for jQuery. Even though I've not seen your site, I'd almost be > willing to bet that it will do everything you want. > > Chris > > Ben Nadel wrote: >> For my 2 cent plug, I can tell you that the new jQuery library is only >> 20k compressed... So, even if you are not using it all, it's a really >> tight library with a simple API. >> ~| ColdFusion MX7 by Adobe® Dyncamically transform webcontent into Adobe PDF with new ColdFusion MX7. Free Trial. http://www.adobe.com/products/coldfusion?sdid=RVJV Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:283482 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Installing a JDBC driver for Firebird
Can anyone give me some pointers on how to do this? I have copied the following files into the \CFusionMX\wwwroot\WEB-INF\lib\ folder: jaybird-full-2.0.2.jar jaybird-pool-2.0.1.jar libjaybird2.so jaybird2.dll jaybird-2.0.1.jar jaybird-2.0.1.rar There is a directory in the distribution called lib should that go in lib too? I tried that but just got the following error: An exception occurred when executing method verifydatasource. The cause of this exception was that: coldfusion.sql.Executive$ConnectionVerificationFailedException: java.sql.SQLException: No suitable driver available for TallGirls, please check the driver setting in resources file, error: org/firebirdsql/jdbc/FBDriver;. The jdbc connection string is: jdbc:firebirdsql://localhost:3050/D:/FirebirdData/TallGirls.fdb Is that written correctly? This is on a windows XP machine. Kevin ~| ColdFusion 8 beta â Build next generation applications today. Free beta download on Labs http://www.adobe.com/cfusion/entitlement/index.cfm?e=labs_adobecf8_beta Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:283479 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: too many js libraries
Add another vote for jQuery from me. It really does encompass most of the functionality that I've needed for my apps. Rey Christopher Jordan wrote: > +1 for jQuery. Even though I've not seen your site, I'd almost be > willing to bet that it will do everything you want. > > Chris > > Ben Nadel wrote: >> For my 2 cent plug, I can tell you that the new jQuery library is only >> 20k compressed... So, even if you are not using it all, it's a really >> tight library with a simple API. >> >> >> .. >> Ben Nadel >> Certified Advanced ColdFusion MX7 Developer >> www.bennadel.com >> >> Need ColdFusion Help? >> www.bennadel.com/ask-ben/ >> >> -Original Message- >> From: Michael Traher [mailto:[EMAIL PROTECTED] >> Sent: Wednesday, July 11, 2007 11:26 AM >> To: CF-Talk >> Subject: too many js libraries >> >> Hi All, We have developed a large new website and used a number of >> javascript libraries along the way for some effects and some ajax stuff. >> >> I have a feeling that we are only using a tiny proportion of these >> libraries, but they are being downloaded in full. >> >> My question is how to find out what functions are in use across the >> entire code base? >> >> Anyone had to do this kind of optimisation process? >> >> Any tips or tools that might help? >> >> (I am already compressing the files in IIS6) >> >> Cheers >> >> -- >> Mike T >> Blog http://www.socialpoints.com/ >> >> > > ~| ColdFusion MX7 by Adobe® Dyncamically transform webcontent into Adobe PDF with new ColdFusion MX7. Free Trial. http://www.adobe.com/products/coldfusion?sdid=RVJV Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:283478 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Spry - File Upload - validate mime type
> No need to get defensive. People tend to get defensive whenever you post ill-informed comments about their work. It's kind of human nature. > The original poster's request was for mime type validation, not for > finding > image dimemsions and such. That's why I wrote "If you need to validate images this could work" > I was speaking specifically about how TMT > validates file types. And you clearly haven't look at the code between line 463 and line 510. Or didn't realize that certain features can't be just the results of checking for file extensions. > I didn't even look at how TMT deals with file sizes, > dimensions, etc... The way that TMT validates file types is by regexp on > file extension: > > tmt_globalPatterns.filepath_pdf = new > RegExp("[\\w_]*\\.([pP][dD][fF])$"); > tmt_globalPatterns.filepath_jpg_gif = new > RegExp("[\\w_]*\\.([gG][iI][fF])|([jJ][pP][eE]?[gG])$"); > tmt_globalPatterns.filepath_jpg = new > RegExp("[\\w_]*\\.([jJ][pP][eE]?[gG])$"); > tmt_globalPatterns.filepath_zip = new > RegExp("[\\w_]*\\.([zZ][iI][pP])$"); > tmt_globalPatterns.filepath = new RegExp("[\\w_]*\\.\\w{3}$"); What you are missing is the way it validates images. It's just 10 lines above. It creates a JavaScript image object and if that fails it returns an error. Since browsers creates image objects only out of gif, jpg, png or bmp, this is can work as mime-type validation too. It has limitations > Again... It's a nice validation library... But it's not really doing what > the poster was asking for. There is no client-side solution for what the poster ask. As far as I know the "accept" attribute is unfortunately not supported by IE and FF (don't know about Safari, sorry). But I would be more than glad to be proved wrong on this. See also comments on "accept" here: http://htmlhelp.com/reference/html40/forms/input.html Anyway, my previous post was about your [...] it's really just using a regexp or pattern to define file extensions... [...] not about the original post (I already answered that one to my best). Massimo Foti, web-programmer for hire Tools for ColdFusion and Dreamweaver developers: http://www.massimocorner.com ~| Macromedia ColdFusion MX7 Upgrade to MX7 & experience time-saving features, more productivity. http://www.adobe.com/products/coldfusion?sdid=RVJW Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:283480 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Developer Edition on Portable Hard Drive
Because installing vmware player is similar to installing flash player, while installing coldfusion requires a lot of configuration. Russ > -Original Message- > From: Tom Chiverton [mailto:[EMAIL PROTECTED] > Sent: Wednesday, July 11, 2007 11:49 AM > To: CF-Talk > Subject: Re: Developer Edition on Portable Hard Drive > > On Wednesday 11 Jul 2007, Dave Watts wrote: > > you'd have to install on each workstation is the VMware Player, > > If you have to install something, why not install ColdFusion :-) > > -- > Tom Chiverton > Helping to revolutionarily fashion guinine services > on: http://thefalken.livejournal.com > > > > This email is sent for and on behalf of Halliwells LLP. > > Halliwells LLP is a limited liability partnership registered in England > and Wales under registered number OC307980 whose registered office address > is at St James's Court Brown Street Manchester M2 2JF. A list of members > is available for inspection at the registered office. Any reference to a > partner in relation to Halliwells LLP means a member of Halliwells LLP. > Regulated by the Law Society. > > CONFIDENTIALITY > > This email is intended only for the use of the addressee named above and > may be confidential or legally privileged. If you are not the addressee > you must not read it and must not use any information contained in nor > copy it nor inform any person other than Halliwells LLP or the addressee > of its existence or contents. If you have received this email in error > please delete it and notify Halliwells LLP IT Department on 0870 365 8008. > > For more information about Halliwells LLP visit www.halliwells.com. > > > ~| ColdFusion 8 beta â Build next generation applications today. Free beta download on Labs http://www.adobe.com/cfusion/entitlement/index.cfm?e=labs_adobecf8_beta Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:283473 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: too many js libraries
> -Original Message- > From: Michael Traher [mailto:[EMAIL PROTECTED] > Sent: Wednesday, July 11, 2007 11:26 AM > To: CF-Talk > Subject: too many js libraries > > Hi All, We have developed a large new website and used a number of > javascript libraries along the way for some effects and some ajax > stuff. You might start by examining where you have overlap - most libraries do very similar things: see if you can cut a few of them out by consolidating features into fewer libraries. Even it a library doesn't have a feature many of them make adding features easy: it may be simple enough to add a feature to a library and eliminate the need for another. Jim Davis ~| Create Web Applications With ColdFusion MX7 & Flex 2. Build powerful, scalable RIAs. Free Trial http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJS Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:283474 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: too many js libraries
He's talking about downloading the code in production to the client computer. You're talking about a "build" for the developer Jim. -Original Message- From: Jim Rising [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 11, 2007 11:06 AM To: CF-Talk Subject: RE: too many js libraries I like mootools' approach... They have a downloader that allows you to download only what you need: http://www.mootools.net/download Jim Rising Sr. Cold Fusion Developer ICGLink Inc. www.icglink.com -Original Message- From: Michael Traher [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 11, 2007 10:26 AM To: CF-Talk Subject: too many js libraries Hi All, We have developed a large new website and used a number of javascript libraries along the way for some effects and some ajax stuff. I have a feeling that we are only using a tiny proportion of these libraries, but they are being downloaded in full. My question is how to find out what functions are in use across the entire code base? Anyone had to do this kind of optimisation process? Any tips or tools that might help? (I am already compressing the files in IIS6) Cheers -- Mike T Blog http://www.socialpoints.com/ ~| Macromedia ColdFusion MX7 Upgrade to MX7 & experience time-saving features, more productivity. http://www.adobe.com/products/coldfusion?sdid=RVJW Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:283477 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: too many js libraries
On 7/11/07, Robertson-Ravo, Neil (RX) <[EMAIL PROTECTED]> wrote: > > Surely if you are not using it all it would be 0k compressed or otherwise? Just waite till you use some of the cfajax tags in CF8... talk about js files!!! Casey ~| Macromedia ColdFusion MX7 Upgrade to MX7 & experience time-saving features, more productivity. http://www.adobe.com/products/coldfusion?sdid=RVJW Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:283476 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: Developer Edition on Portable Hard Drive
> > you'd have to install on each workstation is the VMware Player, > > If you have to install something, why not install ColdFusion :-) Because you can install everything you need in one or more VMs - ColdFusion, databases, web servers, even development tools - and only install one thing on each machine that needs to use those VMs. 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! This email has been processed by SmoothZap - www.smoothwall.net ~| Create Web Applications With ColdFusion MX7 & Flex 2. Build powerful, scalable RIAs. Free Trial http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJS Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:283475 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Developer Edition on Portable Hard Drive
You can try Railix (Live Version) http://railo.ch/en/index.cfm?treeID=186 -Original Message- From: Douglas Waite [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 11, 2007 11:08 AM To: CF-Talk Subject: Developer Edition on Portable Hard Drive I work at a university on a web development team that works a lot in Coldfusion. I'm still somewhat fresh to Coldfusion, and I want to learn more. I want to be able to experiment and work on things to teach myself colfusion, both at work and at home. I would like to be able to install the Developer Edition of coldfusion on a portable hard drive along with my files so that I can work on the same files with the same settings at both work and home. Is it even possible to make coldfusion portable in this manner? I know there are a handful of services that need to run, how would that work with a portable server? Any help would be appreciated. I realize I could probably just install the Developer Edition on both machines, and just port my files between computers. I could also possibly use subversion to sync up to the same files. But it seems like it should be possible to have the CF Server on a portable hard drive, and I really want to find out how to do it. Plus I want to better understand the server side of things. Thanks in advance for any advice. -Dubb ~| CF 8 â Scorpio beta now available, easily build great internet experiences â Try it now on Labs http://www.adobe.com/cfusion/entitlement/index.cfm?e=labs_adobecf8_beta Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:283471 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: too many js libraries
+1 for jQuery. Even though I've not seen your site, I'd almost be willing to bet that it will do everything you want. Chris Ben Nadel wrote: > For my 2 cent plug, I can tell you that the new jQuery library is only > 20k compressed... So, even if you are not using it all, it's a really > tight library with a simple API. > > > .. > Ben Nadel > Certified Advanced ColdFusion MX7 Developer > www.bennadel.com > > Need ColdFusion Help? > www.bennadel.com/ask-ben/ > > -Original Message- > From: Michael Traher [mailto:[EMAIL PROTECTED] > Sent: Wednesday, July 11, 2007 11:26 AM > To: CF-Talk > Subject: too many js libraries > > Hi All, We have developed a large new website and used a number of > javascript libraries along the way for some effects and some ajax stuff. > > I have a feeling that we are only using a tiny proportion of these > libraries, but they are being downloaded in full. > > My question is how to find out what functions are in use across the > entire code base? > > Anyone had to do this kind of optimisation process? > > Any tips or tools that might help? > > (I am already compressing the files in IIS6) > > Cheers > > -- > Mike T > Blog http://www.socialpoints.com/ > > ~| Create Web Applications With ColdFusion MX7 & Flex 2. Build powerful, scalable RIAs. Free Trial http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJS Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:283472 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: SURVEY RESULTS: Is ColdFusion OO?
On 7/10/07, Andrew Scott <[EMAIL PROTECTED]> wrote: > When learning design patterns in Java, the book Head First Design Patterns > gives a good example on the duck, with interfaces and implementation. Right, in *JAVA*. If you look at the classic Design Patterns book - the so-called "Gang of Four" book - you'll see they use Java and *Smalltalk* as their two languages for examples and of course Smalltalk does not have interfaces. Interfaces are required in Java because it is a statically typed language that does not implement multiple inheritance. That's the only reason interfaces exist in Java. > After reading this book, I see that when creating interfaces I can create an > object and know that these methods are going to exist for the object. In *JAVA*. You're thinking in Java so you're totally missing the whole dynamic typing issue. I'll say it again: Smalltalk and Ruby do not have interfaces - they are dynamically typed languages. ColdFusion - a dynamically typed language - does not need interfaces either. > So if we take the duck example in the book, how would you apply this in > Coldfusion without using interfaces? Since I don't know that book, it's hard to show how I would apply it in CF or Smalltalk or Ruby. Doing the search that Neil R-R suggested turned up Dave Shuck's blog post so now I see that we're talking about the Strategy design pattern and he provides a possible solution (I haven't looked at). There are two types of approach in a dynamically typed language: 1) use a base class that defines the necessary methods but have them throw exceptions (i.e., cause a runtime error if they are not overridden) 2) simply use type="any" and allow any strategy object to be pass in - if it doesn't implement the right methods, you'll get a runtime error In #1, you get a runtime error if you don't override a method - an application exception - but you are forced to have all your strategies extend a base strategy class. This is the closest to using an interface and is the pseudo-static approach. I don't like it. In #2, you get a runtime error if you don't provide a method - a ColdFusion exception - and you are no longer tied to a base class which means you can take pre-existing behaviors that know nothing about your specific context and reuse them as-is. In other words, through duck typing you get better reuse and no worse type security. With you'd have a solution that looked like #1 but gave a different runtime error - either your concrete strategy implements the strategy interface or it fails at create time; or of course you get the runtime error passing a "non-strategy" object into the context. #2 is more powerful (and is how you'd handle this idiomatically in Smalltalk and Ruby). Of course the duck example is a bit too simplistic to show how much more powerful the dynamic approach is but I will point out that it lends itself to mixins where you can construct the appropriate blend of strategy behaviors at runtime, perhaps based on information in a database, in a way that simply isn't possible in the constrained world of #1 (or interfaces). Hope that helps? -- Sean A Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ "If you're not annoying somebody, you're not really alive." -- Margaret Atwood ~| Macromedia ColdFusion MX7 Upgrade to MX7 & experience time-saving features, more productivity. http://www.adobe.com/products/coldfusion?sdid=RVJW Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:283470 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: too many js libraries
Surely if you are not using it all it would be 0k compressed or otherwise? "This e-mail is from Reed Exhibitions (Gateway House, 28 The Quadrant, Richmond, Surrey, TW9 1DN, United Kingdom), a division of Reed Business, Registered in England, Number 678540. It contains information which is confidential and may also be privileged. It is for the exclusive use of the intended recipient(s). If you are not the intended recipient(s) please note that any form of distribution, copying or use of this communication or the information in it is strictly prohibited and may be unlawful. If you have received this communication in error please return it to the sender or call our switchboard on +44 (0) 20 89107910. The opinions expressed within this communication are not necessarily those expressed by Reed Exhibitions." Visit our website at http://www.reedexpo.com -Original Message- From: Ben Nadel To: CF-Talk Sent: Wed Jul 11 16:40:58 2007 Subject: RE: too many js libraries For my 2 cent plug, I can tell you that the new jQuery library is only 20k compressed... So, even if you are not using it all, it's a really tight library with a simple API. ... Ben Nadel Certified Advanced ColdFusion MX7 Developer www.bennadel.com Need ColdFusion Help? www.bennadel.com/ask-ben/ -Original Message- From: Michael Traher [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 11, 2007 11:26 AM To: CF-Talk Subject: too many js libraries Hi All, We have developed a large new website and used a number of javascript libraries along the way for some effects and some ajax stuff. I have a feeling that we are only using a tiny proportion of these libraries, but they are being downloaded in full. My question is how to find out what functions are in use across the entire code base? Anyone had to do this kind of optimisation process? Any tips or tools that might help? (I am already compressing the files in IIS6) Cheers -- Mike T Blog http://www.socialpoints.com/ ~| Upgrade to Adobe ColdFusion MX7 The most significant release in over 10 years. Upgrade & see new features. http://www.adobe.com/products/coldfusion?sdid=RVJR Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:283468 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: too many js libraries
I like mootools' approach... They have a downloader that allows you to download only what you need: http://www.mootools.net/download Jim Rising Sr. Cold Fusion Developer ICGLink Inc. www.icglink.com -Original Message- From: Michael Traher [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 11, 2007 10:26 AM To: CF-Talk Subject: too many js libraries Hi All, We have developed a large new website and used a number of javascript libraries along the way for some effects and some ajax stuff. I have a feeling that we are only using a tiny proportion of these libraries, but they are being downloaded in full. My question is how to find out what functions are in use across the entire code base? Anyone had to do this kind of optimisation process? Any tips or tools that might help? (I am already compressing the files in IIS6) Cheers -- Mike T Blog http://www.socialpoints.com/ ~| ColdFusion MX7 and Flex 2 Build sales & marketing dashboard RIAâs for your business. Upgrade now http://www.adobe.com/products/coldfusion/flex2?sdid=RVJT Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:283469 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: Spry - File Upload - validate mime type
No need to get defensive. The original poster's request was for mime type validation, not for finding image dimemsions and such. I was speaking specifically about how TMT validates file types. I didn't even look at how TMT deals with file sizes, dimensions, etc... The way that TMT validates file types is by regexp on file extension: tmt_globalPatterns.filepath_pdf = new RegExp("[\\w_]*\\.([pP][dD][fF])$"); tmt_globalPatterns.filepath_jpg_gif = new RegExp("[\\w_]*\\.([gG][iI][fF])|([jJ][pP][eE]?[gG])$"); tmt_globalPatterns.filepath_jpg = new RegExp("[\\w_]*\\.([jJ][pP][eE]?[gG])$"); tmt_globalPatterns.filepath_zip = new RegExp("[\\w_]*\\.([zZ][iI][pP])$"); tmt_globalPatterns.filepath = new RegExp("[\\w_]*\\.\\w{3}$"); Again... It's a nice validation library... But it's not really doing what the poster was asking for. Jim Rising Sr. Cold Fusion Developer ICGLink Inc. www.icglink.com -Original Message- From: Massimo Foti [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 11, 2007 10:13 AM To: CF-Talk Subject: Re: Spry - File Upload - validate mime type > This is nice, but it's really just using a regexp or pattern to define > file extensions... That script does much more than just using a RegExp. Have you checked it? It detect file dimensions (kb) and image dimensions (px). Do you think it would be possible just using a RegExp? Again, it's limited to images (actually jpg, png, gif and .bmp) and doesn't work on FF (not anymore), but there is much more than just checking the file extension. Massimo Foti, web-programmer for hire Tools for ColdFusion and Dreamweaver developers: http://www.massimocorner.com ~| Create robust enterprise, web RIAs. Upgrade & integrate Adobe Coldfusion MX7 with Flex 2 http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:283466 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: too many js libraries
As long as you've got reasonable caching directives in place and you have a fair number of repeat visitors, I wouldn't worry about it much. Once the files are downloaded, they'll not be downloaded again, so their size is only relevant on the first access. What would probably be a better use of optimization time is to build a tool that will stitch all the JS files together into one big file. Individual HTTP transactions are expensive, and those still happen for up-to-date checks, even if the file isn't actually downloaded. cheers, barneyb On 7/11/07, Michael Traher <[EMAIL PROTECTED]> wrote: > Hi All, We have developed a large new website and used a number of > javascript libraries along the way for some effects and some ajax stuff. > > I have a feeling that we are only using a tiny proportion of these > libraries, but they are being downloaded in full. > > My question is how to find out what functions are in use across the entire > code base? > > Anyone had to do this kind of optimisation process? > > Any tips or tools that might help? > > (I am already compressing the files in IIS6) > > Cheers > > -- > Mike T > Blog http://www.socialpoints.com/ > > > ~| ColdFusion 8 beta â Build next generation applications today. Free beta download on Labs http://www.adobe.com/cfusion/entitlement/index.cfm?e=labs_adobecf8_beta Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:283465 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: too many js libraries
For my 2 cent plug, I can tell you that the new jQuery library is only 20k compressed... So, even if you are not using it all, it's a really tight library with a simple API. .. Ben Nadel Certified Advanced ColdFusion MX7 Developer www.bennadel.com Need ColdFusion Help? www.bennadel.com/ask-ben/ -Original Message- From: Michael Traher [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 11, 2007 11:26 AM To: CF-Talk Subject: too many js libraries Hi All, We have developed a large new website and used a number of javascript libraries along the way for some effects and some ajax stuff. I have a feeling that we are only using a tiny proportion of these libraries, but they are being downloaded in full. My question is how to find out what functions are in use across the entire code base? Anyone had to do this kind of optimisation process? Any tips or tools that might help? (I am already compressing the files in IIS6) Cheers -- Mike T Blog http://www.socialpoints.com/ ~| Macromedia ColdFusion MX7 Upgrade to MX7 & experience time-saving features, more productivity. http://www.adobe.com/products/coldfusion?sdid=RVJW Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:283464 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Developer Edition on Portable Hard Drive
On Wednesday 11 Jul 2007, Dave Watts wrote: > you'd have to install on each workstation is the VMware Player, If you have to install something, why not install ColdFusion :-) -- Tom Chiverton Helping to revolutionarily fashion guinine services on: http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. ~| ColdFusion MX7 by Adobe® Dyncamically transform webcontent into Adobe PDF with new ColdFusion MX7. Free Trial. http://www.adobe.com/products/coldfusion?sdid=RVJV Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:283467 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: Developer Edition on Portable Hard Drive
> I work at a university on a web development team that works a > lot in Coldfusion. I'm still somewhat fresh to Coldfusion, > and I want to learn more. I want to be able to experiment and > work on things to teach myself colfusion, both at work and at > home. I would like to be able to install the Developer > Edition of coldfusion on a portable hard drive along with my > files so that I can work on the same files with the same > settings at both work and home. Is it even possible to make > coldfusion portable in this manner? I know there are a > handful of services that need to run, how would that work > with a portable server? Any help would be appreciated. > > I realize I could probably just install the Developer Edition > on both machines, and just port my files between computers. I > could also possibly use subversion to sync up to the same > files. But it seems like it should be possible to have the CF > Server on a portable hard drive, and I really want to find > out how to do it. Plus I want to better understand the server > side of things. Thanks in advance for any advice. As Tom mentioned, CF needs to be installed to work properly. By "properly" I mean integrated with your web server, configured to talk to database servers, etc. You can get CF to run (in Windows at least) as an application without installing it, however, by switching to the appropriate directory and running the appropriate command, if you've originally installed it on JRun. A good solution for having a completely portable environment is VMware. You could create one or more virtual machines with everything you need, and all you'd have to install on each workstation is the VMware Player, which is free. If you purchase VMware Workstation 6, it's available with an option to create a self-contained "Pocket ACE" environment, which is explicitly intended for use in this way, although frankly it's not really necessary 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! This email has been processed by SmoothZap - www.smoothwall.net ~| Upgrade to Adobe ColdFusion MX7 The most significant release in over 10 years. Upgrade & see new features. http://www.adobe.com/products/coldfusion?sdid=RVJR Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:283463 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Developer Edition on Portable Hard Drive
Or VMWare? "This e-mail is from Reed Exhibitions (Gateway House, 28 The Quadrant, Richmond, Surrey, TW9 1DN, United Kingdom), a division of Reed Business, Registered in England, Number 678540. It contains information which is confidential and may also be privileged. It is for the exclusive use of the intended recipient(s). If you are not the intended recipient(s) please note that any form of distribution, copying or use of this communication or the information in it is strictly prohibited and may be unlawful. If you have received this communication in error please return it to the sender or call our switchboard on +44 (0) 20 89107910. The opinions expressed within this communication are not necessarily those expressed by Reed Exhibitions." Visit our website at http://www.reedexpo.com -Original Message- From: Peterson, Chris To: CF-Talk Sent: Wed Jul 11 16:14:49 2007 Subject: RE: Developer Edition on Portable Hard Drive Douglas, Check out Microsoft Virtual PC. If you have a few gig mem stick, put your entire virtual server right on there as an image file, then fire it up from wherever you want to use it. =) Chris Peterson Gainey IT Adobe Certified Advanced Coldfusion Developer -Original Message- From: Douglas Waite Sent: Wednesday, July 11, 2007 11:08 AM To: CF-Talk Subject: Developer Edition on Portable Hard Drive I work at a university on a web development team that works a lot in Coldfusion. I'm still somewhat fresh to Coldfusion, and I want to learn more. I want to be able to experiment and work on things to teach myself colfusion, both at work and at home. I would like to be able to install the Developer Edition of coldfusion on a portable hard drive along with my files so that I can work on the same files with the same settings at both work and home. Is it even possible to make coldfusion portable in this manner? I know there are a handful of services that need to run, how would that work with a portable server? Any help would be appreciated. I realize I could probably just install the Developer Edition on both machines, and just port my files between computers. I could also possibly use subversion to sync up to the same files. But it seems like it should be possible to have the CF Server on a portable hard drive, and I really want to find out how to do it. Plus I want to better understand the server side of things. Thanks in advance for any advice. -Dubb ~| Deploy Web Applications Quickly across the enterprise with ColdFusion MX7 & Flex 2 Free Trial http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:283460 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Developer Edition on Portable Hard Drive
I doubt it would be that easy to run the server off a removable drive. It runs as a service, and I don't think that it would be easy toset it all up properly on the second machine manually. I may be wrong about that, but it's not something I would tackle willingly. However, using the portable drive as the webroot should be possible. That way, you only need to have it plugged in to use it. You would still have to replicate datasources et. al. in the admin, but I think that would be simple enough. --Ben Doom Douglas Waite wrote: > I work at a university on a web development team that works a lot in > Coldfusion. I'm still somewhat fresh to Coldfusion, and I want to learn > more. I want to be able to experiment and work on things to teach myself > colfusion, both at work and at home. I would like to be able to install the > Developer Edition of coldfusion on a portable hard drive along with my files > so that I can work on the same files with the same settings at both work and > home. Is it even possible to make coldfusion portable in this manner? I know > there are a handful of services that need to run, how would that work with a > portable server? Any help would be appreciated. > > I realize I could probably just install the Developer Edition on both > machines, and just port my files between computers. I could also possibly > use subversion to sync up to the same files. But it seems like it should be > possible to have the CF Server on a portable hard drive, and I really want > to find out how to do it. Plus I want to better understand the server side > of things. Thanks in advance for any advice. > > -Dubb > > > ~| ColdFusion 8 beta â Build next generation applications today. Free beta download on Labs http://www.adobe.com/cfusion/entitlement/index.cfm?e=labs_adobecf8_beta Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:283462 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
too many js libraries
Hi All, We have developed a large new website and used a number of javascript libraries along the way for some effects and some ajax stuff. I have a feeling that we are only using a tiny proportion of these libraries, but they are being downloaded in full. My question is how to find out what functions are in use across the entire code base? Anyone had to do this kind of optimisation process? Any tips or tools that might help? (I am already compressing the files in IIS6) Cheers -- Mike T Blog http://www.socialpoints.com/ ~| Macromedia ColdFusion MX7 Upgrade to MX7 & experience time-saving features, more productivity. http://www.adobe.com/products/coldfusion?sdid=RVJW Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:283461 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Developer Edition on Portable Hard Drive
Douglas, Check out Microsoft Virtual PC. If you have a few gig mem stick, put your entire virtual server right on there as an image file, then fire it up from wherever you want to use it. =) Chris Peterson Gainey IT Adobe Certified Advanced Coldfusion Developer -Original Message- From: Douglas Waite Sent: Wednesday, July 11, 2007 11:08 AM To: CF-Talk Subject: Developer Edition on Portable Hard Drive I work at a university on a web development team that works a lot in Coldfusion. I'm still somewhat fresh to Coldfusion, and I want to learn more. I want to be able to experiment and work on things to teach myself colfusion, both at work and at home. I would like to be able to install the Developer Edition of coldfusion on a portable hard drive along with my files so that I can work on the same files with the same settings at both work and home. Is it even possible to make coldfusion portable in this manner? I know there are a handful of services that need to run, how would that work with a portable server? Any help would be appreciated. I realize I could probably just install the Developer Edition on both machines, and just port my files between computers. I could also possibly use subversion to sync up to the same files. But it seems like it should be possible to have the CF Server on a portable hard drive, and I really want to find out how to do it. Plus I want to better understand the server side of things. Thanks in advance for any advice. -Dubb ~| Deploy Web Applications Quickly across the enterprise with ColdFusion MX7 & Flex 2 Free Trial http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:283458 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Developer Edition on Portable Hard Drive
On Wednesday 11 Jul 2007, Douglas Waite wrote: > CF Server on a portable hard drive It's a server - it needs installing before it works. Therefore you're best just installing it at both sites and copying your files back and forth somehow. -- Tom Chiverton Helping to conveniently leverage distributed bandwidth on: http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. ~| Create robust enterprise, web RIAs. Upgrade & integrate Adobe Coldfusion MX7 with Flex 2 http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:283459 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Spry - File Upload - validate mime type
I found a great article that uses the cffile tag and checks the mime type on the server side but shows the error in a formatable way instead of the CFfile tag error message. http://tutorial260.easycfm.com/ >This is nice, but it's really just using a regexp or pattern to define file >extensions... Not detecting mime type within the browser client on upload. >People could just rename the file extension of the file that they are >uploading, and the validator would fail. I'm pretty sure that javascript >won't return mime types to you. The only way that I know to validate mime >types on a file upload is on the server side, and by then... The file is >already uploaded. You can, however use the 'accept=' attribute of the input >type="file" ... And refuse to allow upload of a comma delimited list of mime >types: > > > >I'm pretty sure that this occurs in the browser prior to upload. > >Jim Rising >Sr. Cold Fusion Developer >ICGLink Inc. >www.icglink.com > > >-Original Message- >From: Massimo Foti [mailto:[EMAIL PROTECTED] >Sent: Wednesday, July 11, 2007 9:42 AM >To: CF-Talk >Subject: Re: Spry - File Upload - validate mime type > >> Any one of a way to validate the mime type of a file before it's >> uploaded using Ajax or Spry? > >If you need to validate images this could work (fails silently on FF, see >the notes): >http://www.massimocorner.com/validator/samples/image_upload.htm > > >Massimo Foti, web-programmer for hire >Tools for ColdFusion and Dreamweaver developers: >http://www.massimocorner.com > ~| ColdFusion MX7 and Flex 2 Build sales & marketing dashboard RIAâs for your business. Upgrade now http://www.adobe.com/products/coldfusion/flex2?sdid=RVJT Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:283457 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Spry - File Upload - validate mime type
> This is nice, but it's really just using a regexp or pattern to define > file > extensions... That script does much more than just using a RegExp. Have you checked it? It detect file dimensions (kb) and image dimensions (px). Do you think it would be possible just using a RegExp? Again, it's limited to images (actually jpg, png, gif and .bmp) and doesn't work on FF (not anymore), but there is much more than just checking the file extension. Massimo Foti, web-programmer for hire Tools for ColdFusion and Dreamweaver developers: http://www.massimocorner.com ~| CF 8 â Scorpio beta now available, easily build great internet experiences â Try it now on Labs http://www.adobe.com/cfusion/entitlement/index.cfm?e=labs_adobecf8_beta Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:283456 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Could not generate stub objects for web service invocation
>Excellent! That exposed the true error, authentication denied. > >Now we can move forward, thanks for your help, Dave! Len, were you able to solve the problem? how?? Mike. ~| CF 8 â Scorpio beta now available, easily build great internet experiences â Try it now on Labs http://www.adobe.com/cfusion/entitlement/index.cfm?e=labs_adobecf8_beta Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:283455 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Developer Edition on Portable Hard Drive
I work at a university on a web development team that works a lot in Coldfusion. I'm still somewhat fresh to Coldfusion, and I want to learn more. I want to be able to experiment and work on things to teach myself colfusion, both at work and at home. I would like to be able to install the Developer Edition of coldfusion on a portable hard drive along with my files so that I can work on the same files with the same settings at both work and home. Is it even possible to make coldfusion portable in this manner? I know there are a handful of services that need to run, how would that work with a portable server? Any help would be appreciated. I realize I could probably just install the Developer Edition on both machines, and just port my files between computers. I could also possibly use subversion to sync up to the same files. But it seems like it should be possible to have the CF Server on a portable hard drive, and I really want to find out how to do it. Plus I want to better understand the server side of things. Thanks in advance for any advice. -Dubb ~| Create Web Applications With ColdFusion MX7 & Flex 2. Build powerful, scalable RIAs. Free Trial http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJS Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:283454 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: Spry - File Upload - validate mime type
This is nice, but it's really just using a regexp or pattern to define file extensions... Not detecting mime type within the browser client on upload. People could just rename the file extension of the file that they are uploading, and the validator would fail. I'm pretty sure that javascript won't return mime types to you. The only way that I know to validate mime types on a file upload is on the server side, and by then... The file is already uploaded. You can, however use the 'accept=' attribute of the input type="file" ... And refuse to allow upload of a comma delimited list of mime types: I'm pretty sure that this occurs in the browser prior to upload. Jim Rising Sr. Cold Fusion Developer ICGLink Inc. www.icglink.com -Original Message- From: Massimo Foti [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 11, 2007 9:42 AM To: CF-Talk Subject: Re: Spry - File Upload - validate mime type > Any one of a way to validate the mime type of a file before it's > uploaded using Ajax or Spry? If you need to validate images this could work (fails silently on FF, see the notes): http://www.massimocorner.com/validator/samples/image_upload.htm Massimo Foti, web-programmer for hire Tools for ColdFusion and Dreamweaver developers: http://www.massimocorner.com ~| Macromedia ColdFusion MX7 Upgrade to MX7 & experience time-saving features, more productivity. http://www.adobe.com/products/coldfusion?sdid=RVJW Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:283453 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Selecting top row in access db
Very interesting. I'm curious how maxrows="1" in the cfquery tag would have behaved. ~Brad -Original Message- From: Mike Little [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 10, 2007 6:52 PM To: CF-Talk Subject: Re: Selecting top row in access db how about that - adding an additional column to the order by clause fixed it! thanks heaps adrian. >Have a read of this: > >http://articles.techrepublic.com.com/5100-22-5035113.html > >Might explain things. > >Adrian > ~| Deploy Web Applications Quickly across the enterprise with ColdFusion MX7 & Flex 2 Free Trial http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:283452 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Spry - File Upload - validate mime type
> Any one of a way to validate the mime type of a file before it's uploaded > using Ajax or > Spry? If you need to validate images this could work (fails silently on FF, see the notes): http://www.massimocorner.com/validator/samples/image_upload.htm Massimo Foti, web-programmer for hire Tools for ColdFusion and Dreamweaver developers: http://www.massimocorner.com ~| ColdFusion 8 beta â Build next generation applications today. Free beta download on Labs http://www.adobe.com/cfusion/entitlement/index.cfm?e=labs_adobecf8_beta Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:283451 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: Spry - File Upload - validate mime type
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 11, 2007 9:06 AM To: CF-Talk Subject: Spry - File Upload - validate mime type All, Any one of a way to validate the mime type of a file before it's uploaded using Ajax or Spry? Thanks D ~| Macromedia ColdFusion MX7 Upgrade to MX7 & experience time-saving features, more productivity. http://www.adobe.com/products/coldfusion?sdid=RVJW Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:283450 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Can't see the trees for the forest here ...
Resolved .. I have seen the error of my way ... ;) found a single variable nested inside a collapsed if statement that was spelled differently. Bob ~| ColdFusion MX7 and Flex 2 Build sales & marketing dashboard RIAâs for your business. Upgrade now http://www.adobe.com/products/coldfusion/flex2?sdid=RVJT Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:283449 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Spry - File Upload - validate mime type
All, Any one of a way to validate the mime type of a file before it's uploaded using Ajax or Spry? Thanks D ~| Upgrade to Adobe ColdFusion MX7 The most significant release in over 10 years. Upgrade & see new features. http://www.adobe.com/products/coldfusion?sdid=RVJR Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:283448 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Looking for an xml-rpc client
Dave, Are you looking for weblog software that is xml-rpc compitable? If so BlogCFC is a great choice > www.blogcfc.com. If you are looking for clients to create posts in using xml-rpc I have some good examples on my website and can be found at the link below. http://www.danvega.org/blog/ On 7/11/07, Bosky, Dave <[EMAIL PROTECTED]> wrote: > > I was looking for a Cold Fusion based xml-rpc client. I'm currently > using a php version and would like to convert over to Cold Fusion. Any > recommendations for a xml-rpc client? > > Thanks, > > Dave Bosky | Information Services | HTC | direct: 843-369-8613 | fax: > 843-369-7178 | [EMAIL PROTECTED] > > ** > HTC Disclaimer: The information contained in this message may be > privileged and confidential and protected from disclosure. If the reader of > this message is not the intended recipient, or an employee or agent > responsible for delivering this message to the intended recipient, you are > hereby notified that any dissemination, distribution or copying of this > communication is strictly prohibited. If you have received this > communication in error, please notify us immediately by replying to the > message and deleting it from your computer. Thank you. > ** > > > ~| ColdFusion MX7 by Adobe® Dyncamically transform webcontent into Adobe PDF with new ColdFusion MX7. Free Trial. http://www.adobe.com/products/coldfusion?sdid=RVJV Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:283447 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Looking for an xml-rpc client
I was looking for a Cold Fusion based xml-rpc client. I'm currently using a php version and would like to convert over to Cold Fusion. Any recommendations for a xml-rpc client? Thanks, Dave Bosky | Information Services | HTC | direct: 843-369-8613 | fax: 843-369-7178 | [EMAIL PROTECTED] ** HTC Disclaimer: The information contained in this message may be privileged and confidential and protected from disclosure. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by replying to the message and deleting it from your computer. Thank you. ** ~| ColdFusion 8 beta â Build next generation applications today. Free beta download on Labs http://www.adobe.com/cfusion/entitlement/index.cfm?e=labs_adobecf8_beta Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:283446 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Mail error
I started having this problem as well recently. Is it a bug, and if so, has adobe addressed it? I'm running 7,0,2,142559 The "Update Level" in my cf admin is hf702-64335.jar http://kb.adobe.com/selfservice/viewContent.do?externalId=kb401239&sliceId=2 It seems in my case (from exception.log) that there were timeouts waiting on locks for folders. (This causes CFMAIL to throw an error) EX: "Error","jrpp-21270","07/09/07","22:17:56",,"An exception occurred when setting up mail server parameters. This exception was caused by: coldfusion.mail.MailSpooler$SpoolLockTimeoutException: A timeout occurred while waiting for the lock on the mail spool directory.." 2 coldfusion.mail.MailSessionException: An exception occurred when setting up mail server parameters. 3 at coldfusion.mail.MailSpooler.postSpoolMail(MailSpooler.java:1189) 4 at coldfusion.mail.MailSpooler.storeMail(MailSpooler.java:652) 5 at coldfusion.tagext.net.MailTag.doAfterBody(MailTag.java:619) Another example: (This is from the scheduler doing a normal flush of the mail spool) "Error","scheduler-0","07/09/07","22:17:56",,"A problem occurred when attempting to deliver mail. This exception was caused by: coldfusion.mail.MailSpooler$SpoolLockTimeoutException: A timeout occurred while waiting for the lock on the mail spool directory.." 47 coldfusion.mail.MailDeliveryException: A problem occurred when attempting to deliver mail. 48 at coldfusion.mail.MailSpooler.refreshSpoolFiles(MailSpooler.java:1560) 49 at coldfusion.mail.MailSpooler.run(MailSpooler.java:934) 50 at coldfusion.scheduling.ThreadPool.run(ThreadPool.java:201) 51 at coldfusion.scheduling.WorkerThread.run(WorkerThread.java:70) I upped my mail interval to 90 seconds (from 30) to see if that helps (since sending spooled mail would seem to compete with writing spool files). >Well so far all seems ok so for future reference for anyone this problem >happens to, removing update 2 seems to solve it. > >-Original Message- >From: James Smith [mailto:[EMAIL PROTECTED] >Sent: 02 July 2007 11:20 >To: CF-Talk >Subject: RE: Mail error > >In this case I had only just installed CF so there were no other fixes to >remove. > >I have removed the jar file from the updates folder and restarted CF, only >time will tell if this does indeed fix the problem. > >I will let you know if it is all still working in a week. > >-- >Jay > >-Original Message- >From: Andrew Scott [mailto:[EMAIL PROTECTED] >Sent: 02 July 2007 10:36 >To: CF-Talk >Subject: Re: Mail error > >*1. Remove older Hotfixes first >*I know, it is written in every Technote when there is a new Hotfix >available, but you know what they say about reading manuals. Anyhow, one >should really remove any Hotfixes before applying a new one. So go into your >"update" folder and remove them first. ColdFusion stores the Hotfixes within >C:\CFusionMX7\lib\updates (Windows) or /Applications/ColdFusion/lib/updates >(MacOS X) or similar paths on Linux. > > > > >On 7/2/07, Andrew Scott <[EMAIL PROTECTED]> wrote: ~| Create Web Applications With ColdFusion MX7 & Flex 2. Build powerful, scalable RIAs. Free Trial http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJS Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:283445 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Metadata for code documentation (was RE: SURVEY RESULTS: Is ColdFusion OO?)
> > For example, if converting code from typed to untyped for performance > reasons, Anyone know of an article that explains this (I'm blissfully unaware of this issue)... I like your thinking. I once wrote a CFC Documentor, for inhouse use, that documents the component in either HTML or Word XML so that we have static documentation to hand to the client. It used the metadata and I toyed with adding custom properties but thought it would only confuse things. A matter of getting a standard together I suppose... Dom On 11/07/07, Jaime Metcher <[EMAIL PROTECTED]> wrote: > > > -Original Message- > > From: Tom Chiverton [mailto:[EMAIL PROTECTED] > > Sent: Tuesday, 10 July 2007 7:16 PM > > To: CF-Talk > > Subject: Re: SURVEY RESULTS: Is ColdFusion OO? > > > > > > On Tuesday 10 Jul 2007, Sean Corfield wrote: > > > In ColdFusion, all type checking is done at run time. So if you use > > > interfaces, you will get a *runtime* check, just like all the other > > > checks. And if you screw up, you'll get a runtime error. If you use > > > interfaces, the error just has different text in it (OK, that's a > > > *slight* oversimplification :) > > > > I want Interfaces so I can aid other developers intergrating with > > my code- it > > explictly codes the contract. > > > > I love the idea of documenting the intention - something that can be very > obscure using mixins. However, as Sean and Ben Nadel have pointed out, > there is no enforceable contract, so cfinterface turns into an elaborate > commenting mechanism with a runtime performance penalty. That reminds me > of > another idea for documenting intention in a structured way that *doesn't* > have a performance penalty. > > I'm certainly not the first person to point this out, but you can add > arbitrary attributes to the cfcomponent, cffunction and cfargument tags > that > then appear in the metadata. I'd love to see the community generate some > momentum on a standard set of metadata to aid in code introspection. > > For example, if converting code from typed to untyped for performance > reasons, instead of removing "type" and "returntype" attributes, why not > change them to "_type" and "_returntype", thus documenting the original > intention?. If ducktyping, the _type attribute could read "any CFC that > implements getID()" for example. It would then be simple matter to adapt > CF's builtin CFC introspection to read these attributes. > > Similarly, if you have a function in a superclass like this: > > > > > > why not add an "abstract" attribute to document the intention. From there > it's not too hard to parse the metadata into XMI and produce a UML > diagram, > if that's what floats your boat. And I know there's somebody out there > (sorry -forgot who you are) who uses cfproperty tags to document > composition > relationships. > > This *is* just documentation, *not* an attempt to add Java-style > annotations, and isn't necessarily any more accurate than any other > documentation. The cool thing is the ability to import it into other > tools. > > Jaime Metcher > > > > ~| ColdFusion MX7 and Flex 2 Build sales & marketing dashboard RIAâs for your business. Upgrade now http://www.adobe.com/products/coldfusion/flex2?sdid=RVJT Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:283444 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Metadata for code documentation (was RE: SURVEY RESULTS: Is ColdFusion OO?)
On Wednesday 11 Jul 2007, Jaime Metcher wrote: > there is no enforceable contract, so cfinterface turns into an elaborate > commenting mechanism with a runtime performance penalty. Did you try the CF8 beta yet :-) ? -- Tom Chiverton Helping to synergistically accelerate sexy e-business on: http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. ~| Upgrade to Adobe ColdFusion MX7 Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJQ Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:283443 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: Mail error
Well so far all seems ok so for future reference for anyone this problem happens to, removing update 2 seems to solve it. -Original Message- From: James Smith [mailto:[EMAIL PROTECTED] Sent: 02 July 2007 11:20 To: CF-Talk Subject: RE: Mail error In this case I had only just installed CF so there were no other fixes to remove. I have removed the jar file from the updates folder and restarted CF, only time will tell if this does indeed fix the problem. I will let you know if it is all still working in a week. -- Jay -Original Message- From: Andrew Scott [mailto:[EMAIL PROTECTED] Sent: 02 July 2007 10:36 To: CF-Talk Subject: Re: Mail error *1. Remove older Hotfixes first *I know, it is written in every Technote when there is a new Hotfix available, but you know what they say about reading manuals. Anyhow, one should really remove any Hotfixes before applying a new one. So go into your "update" folder and remove them first. ColdFusion stores the Hotfixes within C:\CFusionMX7\lib\updates (Windows) or /Applications/ColdFusion/lib/updates (MacOS X) or similar paths on Linux. On 7/2/07, Andrew Scott <[EMAIL PROTECTED]> wrote: > > Not 100% sure, but I thin if you stop CF delete the file and restart it it > is removed. > > I am sure (not 100%) that I saw this on the adobe website somewhere. > > > On 7/2/07, James Smith <[EMAIL PROTECTED]> wrote: > > > > Does just deleting the jar file remove the update? > > > > -Original Message- > > From: Andrew Scott [mailto: [EMAIL PROTECTED] > > Sent: 02 July 2007 10:16 > > To: CF-Talk > > Subject: Re: Mail error > > > > I would assume you remove it from the directory you placed it. > > > > On 7/2/07, James Smith <[EMAIL PROTECTED]> wrote: > > > > > > Ok, just found someone else with the same problem who traced it to > > > Cumulative Hot Fix 2 saying it went away when he removed the > > update. How > > > do > > > I uninstall the cumulative Hot Fix? > > > > > > -- > > > Jay > > > > > > -Original Message- > > > From: James Smith [mailto:[EMAIL PROTECTED] ] > > > Sent: 28 June 2007 11:16 > > > To: CF-Talk > > > Subject: Mail error > > > > > > I have an error I have not seen before that has recently started > > cropping > > > up > > > (since Sunday). After the server has been running for a couple of days > > > > > attempts to send mail will throw the following error... > > > > > > An exception occurred when setting up mail server parameters. This > > > exception > > > was caused by: coldfusion.mail.MailSessionException : An exception > > occurred > > > when setting up mail server parameters. > > > > > > A service restart makes the error go away for another couple of days. > > > Several different pages all generate the same error and none of them > > have > > > been edited recently so it isn't a code problem. > > > > > > Does anyone know how to make this go away! > > > > > > -- > > > Jay > > > > > > > > > > > > > > > > > > > > > > > > > > ~| ColdFusion 8 beta â Build next generation applications today. Free beta download on Labs http://www.adobe.com/cfusion/entitlement/index.cfm?e=labs_adobecf8_beta Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:283442 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: SURVEY RESULTS: Is ColdFusion OO?
This has already been done, I think by Dave Shuck - Search Google for "SimUDuck + ColdFusion" - that should give you what you need. "This e-mail is from Reed Exhibitions (Gateway House, 28 The Quadrant, Richmond, Surrey, TW9 1DN, United Kingdom), a division of Reed Business, Registered in England, Number 678540. It contains information which is confidential and may also be privileged. It is for the exclusive use of the intended recipient(s). If you are not the intended recipient(s) please note that any form of distribution, copying or use of this communication or the information in it is strictly prohibited and may be unlawful. If you have received this communication in error please return it to the sender or call our switchboard on +44 (0) 20 89107910. The opinions expressed within this communication are not necessarily those expressed by Reed Exhibitions." Visit our website at http://www.reedexpo.com -Original Message- From: Andrew Scott To: CF-Talk Sent: Wed Jul 11 07:25:31 2007 Subject: RE: SURVEY RESULTS: Is ColdFusion OO? Sean, I am going to ask in a different way, and I would hope that you can provide a code example to explain you reasoning in more detail. When learning design patterns in Java, the book Head First Design Patterns gives a good example on the duck, with interfaces and implementation. I would like for someone like yourself help us understand this in CF better, because I am not getting it from the technical side that you mention, call me stupid but I don't get it. After reading this book, I see that when creating interfaces I can create an object and know that these methods are going to exist for the object. But to confuse the issue you say that CF doesn't need it, and I believe it provides a stronger mechanism for robust code. So if we take the duck example in the book, how would you apply this in Coldfusion without using interfaces? Andrew Scott Senior Coldfusion Developer Aegeon Pty. Ltd. www.aegeon.com.au Phone: +613 8676 4223 Mobile: 0404 998 273 -Original Message- From: Sean Corfield [mailto:[EMAIL PROTECTED] Sent: Tuesday, 10 July 2007 7:00 PM To: CF-Talk Subject: Re: SURVEY RESULTS: Is ColdFusion OO? On 7/10/07, Andrew Scott <[EMAIL PROTECTED]> wrote: > Sean why are you so against this? I welcome this with great open arms... Java needed interfaces because it is a statically typed language and had chosen not to support multiple inheritance. It had no choice. In ColdFusion, all type checking is done at run time. So if you use interfaces, you will get a *runtime* check, just like all the other checks. And if you screw up, you'll get a runtime error. If you use interfaces, the error just has different text in it (OK, that's a *slight* oversimplification :) Furthermore, since CF is a dynamic language, you can change methods on an object after constructing it, thus removing any guarantees that an interface would buy you. You remove a method or simply replace a method with a different signature. The interface no longer applies. Then there's the actual details of how cfinterface performs its type check. It requires that the function signatures match exactly, as do the return types. That's not how interfaces work in statically typed languages. An interface defines a constraining API, not an exact API: you can specify arguments (in an implementation class method) that are compatible with the interface method arguments (e.g., adding optional arguments or using more permissive types). You can also specify more constrained return types since those can't violate the interface (i.e., an implementation method can return a subtype of the interface method's return type). Finally (thank god you say!), other dynamic OO languages don't have interfaces - and don't need them. The only reason CF8 has interfaces is to satisfy the CF-should-be-more-like-Java crowd. And, yes, I admit I was the person who entered the original ER to add interfaces and, yes, I whipped up support from the community. I regret that. I should have left well alone. I've probably done more to cause the CF-should-be-more-like-Java argument than anyone and that was a big mistake on my part. I've seen the light now... I hope others do too... -- Sean A Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ "If you're not annoying somebody, you're not really alive." -- Margaret Atwood ~| ColdFusion MX7 by Adobe® Dyncamically transform webcontent into Adobe PDF with new ColdFusion MX7. Free Trial. http://www.adobe.com/products/coldfusion?sdid=RVJV Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:283441 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4