RE: Fixing a small piece of code
What about a jQuery based gallery? This is nice: http://pupunzi.wordpress.com/2009/02/28/mbgallery/ Demopage: http://www.open-lab.com/mb.ideas/index.html#mbGallery Helge -Original Message- From: Toby King [mailto:ptansw...@gmail.com] Sent: 18. august 2009 07:41 To: cf-talk Subject: Re: Fixing a small piece of code The site www.yengtanfloraldesigner.com.au is starting to look better (well the galleries can now be selected. Just wondering how you would recommend improving the way the galleries are displayed - I'm thinking probably keep the drop down list available (somehow show the selection made - somehow highlight this selection) but have the drop down list still there so that a person can make another selection if required. I think it could be done not sure exactly how yet. What do you think? Any ideas on how this can be done would be very much appreciated. >You had no action or method on your form Try this: > > > > > > username="#request.db_login#" password="#request.db_pwd#"> > SELECT * > FROMgalleries > > id="photogallery"> > > Please >Select an Image Gallery > >value="#qGetGallery.GalleryID#">#qGetGallery.galleryname# > > > > > > > > >username="#request.db_login#" password="#request.db_pwd#"> > select * > from photoadmin > > where galleryid = #form.galleryid# and onweb = '1' > > where onweb = '1' > > > > > > >border="0" /> > > ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:325516 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Fixing a small piece of code
The site www.yengtanfloraldesigner.com.au is starting to look better (well the galleries can now be selected. Just wondering how you would recommend improving the way the galleries are displayed - I'm thinking probably keep the drop down list available (somehow show the selection made - somehow highlight this selection) but have the drop down list still there so that a person can make another selection if required. I think it could be done not sure exactly how yet. What do you think? Any ideas on how this can be done would be very much appreciated. >You had no action or method on your form Try this: > > > > > > username="#request.db_login#" password="#request.db_pwd#"> > SELECT * > FROMgalleries > > id="photogallery"> > > Please >Select an Image Gallery > >value="#qGetGallery.GalleryID#">#qGetGallery.galleryname# > > > > > > > > >username="#request.db_login#" password="#request.db_pwd#"> > select * > from photoadmin > > where galleryid = #form.galleryid# and onweb = '1' > > where onweb = '1' > > > > > > >border="0" /> > > ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:325515 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Fixing a small piece of code
The site www.yengtanfloraldesigner.com.au is starting to look better (well the galleries can now be selected. Just wondering how you would recommend improving the way the galleries are displayed - I'm thinking probably keep the drop down list available (somehow show the selection made - somehow highlight this selection) but have the drop down list still there so that a person can make another selection if required. I think it could be done not sure exactly how yet. What do you think? Any ideas on how this can be done would be very much appreciated. >You had no action or method on your form Try this: > > > > > > username="#request.db_login#" password="#request.db_pwd#"> > SELECT * > FROMgalleries > > id="photogallery"> > > Please >Select an Image Gallery > >value="#qGetGallery.GalleryID#">#qGetGallery.galleryname# > > > > > > > > >username="#request.db_login#" password="#request.db_pwd#"> > select * > from photoadmin > > where galleryid = #form.galleryid# and onweb = '1' > > where onweb = '1' > > > > > > >border="0" /> > > ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:325514 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Fixing a small piece of code
On Mon, Aug 17, 2009 at 7:18 PM, Toby King wrote: > > Hi there > > I have 2 small CF programs and cant understand why the code is not working. > > Basically what I am trying to do can be seen on the website: > > > This is the code from the first program gallery.cfm You had no action or method on your form Try this: SELECT * FROMgalleries Please Select an Image Gallery #qGetGallery.galleryname# select * from photoadmin where galleryid = #form.galleryid# and onweb = '1' where onweb = '1' ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:325513 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Fixing a small piece of code
Try adding an "action" to the form tag. mxAjax / CFAjax docs and other useful articles: http://www.bifrost.com.au/blog/ 2009/8/18 Toby King : > > Hi there > > I have 2 small CF programs and cant understand why the code is not working. > > > Please > Select an Image Gallery > > value="#qGetGallery.GalleryID#">#qGetGallery.galleryname# > > > > > http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:325512 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Fixing a small piece of code
Hello again Not sure if I explained myself properly. Basically I there are 3 photo galleries on the website. I want a website visitor to be able to select which gallery to view (or they can view all the photos). I have a drop down selection to let them select which gallery to view. Once they have selected a gallery and pressed view gallery the images should appear below. I am including the images through an include. The problem is at present that the images are not displaying. Any ideas as to why. Thanks in advance. > Hi there > > I have 2 small CF programs and cant understand why the code is not > working. > > Basically what I am trying to do can be seen on the website: > > > This is the code from the first program gallery.cfm > > > > > > > > username="#request.db_login#" password="#request.db_pwd#"> > SELECT* > FROM galleries > > > > Please Select > an Image Gallery > > #qGetGallery. > galleryname# > > > > > > > > > > > > > > The next piece of code is from the include program > > > > username="#request.db_login#" password="#request.db_pwd#"> > select * > from photoadmin > > where galleryid = '1' and onweb = '1' > > > where galleryid = '2' and onweb = '1' > > > where galleryid = '3' and onweb = '1' > > > where onweb = '1' > > > > href="data/images/#pic_large#" rel="lightbox[sample]" title="Yeng Tan > Floral design"> /> > > > > www.yengtanfloraldesigner.com.au/gallery.cfm > > > Thanks in advance for feedback - I expect its probably just something > dumb that I have forgotten as I havent been doing much coding lately. ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:325511 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Fixing a small piece of code
Hi there I have 2 small CF programs and cant understand why the code is not working. Basically what I am trying to do can be seen on the website: This is the code from the first program gallery.cfm SELECT * FROMgalleries Please Select an Image Gallery #qGetGallery.galleryname# The next piece of code is from the include program select * from photoadmin where galleryid = '1' and onweb = '1' where galleryid = '2' and onweb = '1' where galleryid = '3' and onweb = '1' where onweb = '1' www.yengtanfloraldesigner.com.au/gallery.cfm Thanks in advance for feedback - I expect its probably just something dumb that I have forgotten as I havent been doing much coding lately. ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:325510 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: CFAjax not playing well with javaScript.
On Mon, Aug 17, 2009 at 8:42 PM, Michael Grove wrote: > > I am still trying to figure out firebug. Spend more time learning firebug if you're gonig to do *ANY* ajax development. It's really quite simple. http://lmgtfy.com/?q=firebug+tutorial -- Rick Root New Brian Vander Ark Album, songs in the music player and cool behind the scenes video at www.myspace.com/brianvanderark ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:325509 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: CFAjax not playing well with javaScript.
Here is the code. I am still trying to figure out firebug. I added the ajaxonload - and now it will not load the first time but does on all clicks after that. Before it would load the first time but not afterwards. <--- a query is here for security check ---> init = function() { flashembed("videowindow", {src:'../flowplayer/FlowPlayerLight.swf',width: 512, height: 384}, {config: { streamingServerURL: 'rtmp://foo.com/simplevideostreaming', playList: [ { url: '#video# ', start:#start# , end:#end# } ], autoPlay: true, Loop: false, usePlayOverlay: false, initialScale: 'scale', protected: true, useNativeFullScreen: true, autoRewind: true, menuItems: [false, false, false, false, false, false], timeDisplayFontColor: 0xE56717, controlBarBackgroundColor: 0 }} ); } ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:325508 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: CFAjax not playing well with javaScript.
On 18/08/2009 00:20, Michael Grove wrote: > Any suggestions would be greatly appreciated. use Firefox+Firebug to see the real js error. post relevant code from the page you are loading inside cfdiv (the one that throws the error) if you have any js in that page, make sure your functions are declared as functionname = function(arguments) {} move all js functions into the main page. Azadi Saryev Sabai-dee.com http://www.sabai-dee.com/ ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:325507 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
CFAjax not playing well with javaScript.
I am not real good with JavaScript so that may be my problem, but I have written a page that has two separate cfdiv's with bind. One holds a video player and the other is the navigation. When you click through the navigation you have to go three levels before you select a video. When you select a video, it starts to play in the video cfdiv (the first time). The second time you press it you get a javascript error. It is like it cannot re-initialize the javascript. >From the main page I have this... When you drill through the MediCenterNav.cfm page you eventually get to a link that looks like this... The first time you click it the video starts playing in the other CFDIV as it should. But if you click on another video in the Nav panel you get a "Error processing JavaScript in markup for element MediaPlayer" Any suggestions would be greatly appreciated. ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:325506 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
cfajax with and javascript - not playing well together
I am not real good with JavaScript so that may be my problem, but I have written a page that has two seperate cfdiv's with bind. One holds a video player and the other is the navigation. When you click through the navigation you have to go three levels before you select a video. When you select a video, it starts to play in the video cfdiv (the first time). The second time you press it you get a javascript error. It is like it cannot re-initialize the javascript. >From the main page I have this... When you drill through the MediCenterNav.cfm page you eventually get to a link that looks like this... The first time you click it the video starts playing in the other CFDIV as it should. But if you click on another video in the Nav panel you get a "Error processing JavaScript in markup for element MediaPlayer" Any suggestions would be greatly appreciated. ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:325505 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: system security question
Unless people insist on using preserveSingleQuotes(), when they've built a SQL statement dynamically in a string which they then pass to the cfquery tag. mxAjax / CFAjax docs and other useful articles: http://www.bifrost.com.au/blog/ 2009/8/17 Rick Root : > > that actually wouldn't work because coldfusion automatically escapes > single quotes inside strings inside cfquery. > > But maybe this: > > > > > > UPDATE users > SET pass = '#NewPassord#' > WHERE userid = '#Userid#' > > > But... your point is well made :) > > On Mon, Aug 17, 2009 at 9:22 AM, Peter Boughton wrote: >> >> Not all injection tricks are based upon multi-statement SQL! >> >> Example bad code: >> >> >> >> >> >> UPDATE users >> SET pass = '#NewPassord#' >> WHERE user = '#Username#' >> >> >> >> Using cfqueryparam will avoid this problem. >> >> >> >> > > ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:325504 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: CFFM 1.21 Released
On Monday 17 Aug 2009, Rick Root wrote: > This means a couple of image manipulation features are gone since > CFIMAGE doesn't seem to have the ability to flip horizontal, flip > vertical, http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=functions_h-im_22.html :-) > or crop an image. http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=functions_h-im_10.html :-) -- Helping to synergistically foster B2B seamless leading-edge niches as part of the IT team of the year, '09 and '08 This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office together with a list of those non members who are referred to as partners. We use the word partner to refer to a member of the LLP, or an employee or consultant with equivalent standing and qualifications. Regulated by the Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.co ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:325503 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: system security question
Ooops, yes. Though you can possibly get around that with "bob\' OR 1=1 --" which gets escaped to "bob\'' OR 1=1 --" and so still has the problem (since the \' is treated as a single char). But yeah, with numeric values there's no quotes/escaping involved. ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:325502 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: system security question
that actually wouldn't work because coldfusion automatically escapes single quotes inside strings inside cfquery. But maybe this: UPDATE users SET pass = '#NewPassord#' WHERE userid = '#Userid#' But... your point is well made :) On Mon, Aug 17, 2009 at 9:22 AM, Peter Boughton wrote: > > Not all injection tricks are based upon multi-statement SQL! > > Example bad code: > > > > > > UPDATE users > SET pass = '#NewPassord#' > WHERE user = '#Username#' > > > > Using cfqueryparam will avoid this problem. > > > > ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:325501 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: system security question
Not all injection tricks are based upon multi-statement SQL! Example bad code: UPDATE users SET pass = '#NewPassord#' WHERE user = '#Username#' Using cfqueryparam will avoid this problem. ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:325500 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: CFDOCUMENT SRC="" and Dynamic HTML
Because of formatting bugs with cfdocument, we've had to switch to software called WebGrabber - unlike all the other HTML->PDF generation software I've tried, WebGrabber works in an interesting way: it renders the HTML page and prints it to PDF - so you get what the browser/engine saw. (And with the engine used being WebKit, you get decent CSS support too.) I've just done a quick test with WebGrabber 2009, and it *will* execute JavaScript. (I did a simple For loop, and the resulting PDF contained the 0123456789 output). Unfortunately, it is fairly expensive and Windows-only, but you can try the evaluation version and see if it will work for you. http://www.activepdf.com/products/serverproducts/webgrabber/ ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:325499 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: CFFM 1.21 Released
BTW, thanks to Sankaram Tata at Adobe for giving me the idea to use CFFM in the RAM drive. Very few changes were required to make it work. -- Rick Root New Brian Vander Ark Album, songs in the music player and cool behind the scenes video at www.myspace.com/brianvanderark ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:325498 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
CFFM 1.21 Released
You know, the problem with doing open source development is that I'm never sure when I'm going to get around to working on a project. So when I released CFFM 1.20 Friday night, it was missing a few important features but I wanted to get it out just in case I didn't actually get around to developing those features until 2010. Well, turns out I had some time last night and rolled those relatively minor features into CFFM 1.21: (1) CFFM now defaults to using CFIMAGE on Coldfusion 8 and above. This means a couple of image manipulation features are gone since CFIMAGE doesn't seem to have the ability to flip horizontal, flip vertical, or crop an image. Though I honestly didn't really dig that far into the cfscript options for CFIMAGE, I do know that such options were not available via the cfimage tag. If you want to use something else like ImageCR3, or Blue Dragon's CFIMAGE, you could write your own image object that wraps the component in question. For examples, see ImageObject_imagecfc.cfc and ImageObject_cfimage.cfc. (2) Because of the CFIMAGE integration, CFFM's image manipulation features are now enabled when using the RAM:// drive in Coldfusion 9. Translations - If you have done a translation for CFFM, please let me know, I'd like to include it with the distribution. Project Page for CFFM: http://www.opensourcecf.com/cffm SVN: http://svn.riaforge.org/cffm -- Rick Root ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:325497 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: .NET or JAVA? Which is a more natural step for a CF Developer
Another opportunity to expand your skill-set then. :) As long as you're willing to learn, the basics of Linux (etc) are not actually that hard. ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:325496 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Regex Help - Can this be simplified?
The easiest to read solution is one line: Of course, that function will then contain a nicely spaced easy-to-read piece of logic, which almost certainly wont be a horrible single line of nested replaces. ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:325495 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4