Re: Regex Help - Can this be simplified?

2009-08-17 Thread Peter Boughton

The easiest to read solution is one line:

cfset finalDescription = fiddleWithParas(form.description) /


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


Re: .NET or JAVA? Which is a more natural step for a CF Developer

2009-08-17 Thread Peter Boughton

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


CFFM 1.21 Released

2009-08-17 Thread Rick Root

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: CFFM 1.21 Released

2009-08-17 Thread Rick Root

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


Re: CFDOCUMENT SRC= and Dynamic HTML

2009-08-17 Thread Peter Boughton

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: system security question

2009-08-17 Thread Peter Boughton

Not all injection tricks are based upon multi-statement SQL!

Example bad code:

cfset NewPassword = whatever /
cfset Username = bob' OR 1=1 -- /

cfquery ...
UPDATE users
SET pass = '#NewPassord#'
WHERE user = '#Username#'
/cfquery


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: system security question

2009-08-17 Thread Rick Root

that actually wouldn't work because coldfusion automatically escapes
single quotes inside strings inside cfquery.

But maybe this:

cfset NewPassword = whatever /
cfset userid = 1 OR 1=1 -- /

cfquery ...
   UPDATE users
   SET pass = '#NewPassord#'
   WHERE userid = '#Userid#'
/cfquery

But... your point is well made :)

On Mon, Aug 17, 2009 at 9:22 AM, Peter Boughtonbought...@gmail.com wrote:

 Not all injection tricks are based upon multi-statement SQL!

 Example bad code:

 cfset NewPassword = whatever /
 cfset Username = bob' OR 1=1 -- /

 cfquery ...
        UPDATE users
        SET pass = '#NewPassord#'
        WHERE user = '#Username#'
 /cfquery


 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

2009-08-17 Thread Peter Boughton

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: CFFM 1.21 Released

2009-08-17 Thread Tom Chiverton

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

2009-08-17 Thread James Holmes

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 rick.r...@webworksllc.com:

 that actually wouldn't work because coldfusion automatically escapes
 single quotes inside strings inside cfquery.

 But maybe this:

 cfset NewPassword = whatever /
 cfset userid = 1 OR 1=1 -- /

 cfquery ...
       UPDATE users
       SET pass = '#NewPassord#'
       WHERE userid = '#Userid#'
 /cfquery

 But... your point is well made :)

 On Mon, Aug 17, 2009 at 9:22 AM, Peter Boughtonbought...@gmail.com wrote:

 Not all injection tricks are based upon multi-statement SQL!

 Example bad code:

 cfset NewPassword = whatever /
 cfset Username = bob' OR 1=1 -- /

 cfquery ...
        UPDATE users
        SET pass = '#NewPassord#'
        WHERE user = '#Username#'
 /cfquery


 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


cfajax with and javascript - not playing well together

2009-08-17 Thread Michael Grove

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...
cfdiv bind=url:modules/MediaCenterPlayer.cfm id=MediaPlayer /
cfdiv bind=url:modules/MediaCenterNav.cfm id=MediaNav /


When you drill through the MediCenterNav.cfm page you eventually get to a link 
that looks like this...
a 
href=javaScript:ColdFusion.navigate('modules/MediaCenterNav.cfm?module=mediacentermediamode=drillssubcase=drillscoachid=#coachid#sportid=#sportid#','MediaNav');javaScript:ColdFusion.navigate('modules/MediaCenterPlayer.cfm?id=#drillid#','MediaPlayer');

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


CFAjax not playing well with javaScript.

2009-08-17 Thread Michael Grove

 
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...
cfdiv bind=url:modules/MediaCenterPlayer.cfm id=MediaPlayer /
cfdiv bind=url:modules/MediaCenterNav.cfm id=MediaNav /


When you drill through the MediCenterNav.cfm page you eventually get to a
link that looks like this...
a
href=javaScript:ColdFusion.navigate('modules/MediaCenterNav.cfm?module=medi
acentermediamode=drillssubcase=drillscoachid=#coachid#sportid=#sportid#'
,'MediaNav');javaScript:ColdFusion.navigate('modules/MediaCenterPlayer.cfm?i
d=#drillid#','MediaPlayer');

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


Re: CFAjax not playing well with javaScript.

2009-08-17 Thread Azadi Saryev

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


Re: CFAjax not playing well with javaScript.

2009-08-17 Thread Michael Grove

 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.

cfparam name=Preview default=1
cfparam name=url.id default=0

--- a query is here for security check ---

cfset video = '#mid(GetDrillInfo.path,15,len(GetDrillInfo.path)-18)#'
cfset start = #GetDrillInfo.previewstart#
cfset end = #GetDrillInfo.previewend# 

script type=text/javascript
init = function() {
flashembed(videowindow,
{src:'../flowplayer/FlowPlayerLight.swf',width: 512, height: 384},
{config: {  
streamingServerURL: 'rtmp://foo.com/simplevideostreaming',
playList: [ { url: 'cfoutput#video#/cfoutput', start: 
cfoutput#start#/cfoutput, end: cfoutput#end#/cfoutput} ],
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
}}
);
}
/script
/cfoutput

div id=videowindow/div
cfset AjaxOnLoad(init)


~|
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.

2009-08-17 Thread Rick Root

On Mon, Aug 17, 2009 at 8:42 PM, Michael Grovegro...@idzyns.com 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


Fixing a small piece of code

2009-08-17 Thread Toby King

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


CFIF IsDefined(form.submit)
cfinclude template=inc_photo_gallery.cfm
br /
br /
cfelse
  cfquery name=qGetGallery  datasource=#request.db_dsn# 
username=#request.db_login# password=#request.db_pwd# 
SELECT  *
FROMgalleries
/cfquery
form name=photogallery
  select name=GalleryID
option value=Please Select an Image Gallery selectedPlease 
Select an Image Gallery/option 
cfoutput query=qGetGallery
  option 
value=#qGetGallery.GalleryID##qGetGallery.galleryname#/option
  /cfoutput
  /select
  br /
  br /
  input type=submit name=Submit value=Display Gallery
/form
  br /
  br /
  br /
/p
/cfif


The next piece of code is from the include program

 

cfquery name=qgetpics datasource=#request.db_dsn# 
username=#request.db_login# password=#request.db_pwd#
select *
from photoadmin
cfif form.galleryid eq '1'
where galleryid = '1' and onweb = '1'
/cfif
cfif form.galleryid eq '2'
where galleryid = '2' and onweb = '1'
/cfif
cfif form.galleryid eq '3'
where galleryid = '3' and onweb = '1'
/cfif
cfif form.galleryid eq '4'
where onweb = '1'
/cfif
/cfquery

pdiv class=gallerycfoutput query=qgetpicsa 
href=data/images/#pic_large# rel=lightbox[sample] title=Yeng Tan Floral 
designimg src=data/thumbnails/#pic_thumbnail# border=0 
//a/cfoutput!--[if lte IE 6]script src=engine/js/pngfix_vlb.js 
type=text/javascript/script![endif]--
/div/p


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: Fixing a small piece of code

2009-08-17 Thread Toby King

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
 
 
 CFIF IsDefined(form.submit)
   cfinclude template=inc_photo_gallery.cfm

 br /

 br /
 cfelse
  
 cfquery name=qGetGallery  datasource=#request.db_dsn# 
 username=#request.db_login# password=#request.db_pwd# 

 SELECT*

 FROM  galleries

 /cfquery

 form name=photogallery
  
 select name=GalleryID

 option value=Please Select an Image Gallery selectedPlease Select 
 an Image Gallery/option 

 cfoutput query=qGetGallery
  
 option value=#qGetGallery.GalleryID##qGetGallery.
 galleryname#/option
 /cfoutput
  
 /select
  
 br /
  
 br /
  
 input type=submit name=Submit value=Display Gallery

 /form
  
 br /
  
 br /
  
 br /
 /p
 /cfif
 
 
 The next piece of code is from the include program
 
 
 
 
 cfquery name=qgetpics datasource=#request.db_dsn# 
 username=#request.db_login# password=#request.db_pwd#

 select *

 from photoadmin

 cfif form.galleryid eq '1'

   where galleryid = '1' and onweb = '1'

 /cfif

 cfif form.galleryid eq '2'

   where galleryid = '2' and onweb = '1'

 /cfif

 cfif form.galleryid eq '3'

   where galleryid = '3' and onweb = '1'

 /cfif

 cfif form.galleryid eq '4'

   where onweb = '1'

 /cfif
 /cfquery
 
 pdiv class=gallerycfoutput query=qgetpicsa 
 href=data/images/#pic_large# rel=lightbox[sample] title=Yeng Tan 
 Floral designimg src=data/thumbnails/#pic_thumbnail# border=0 
 //a/cfoutput!--[if lte IE 6]script src=engine/js/pngfix_vlb.
 js type=text/javascript/script![endif]--
   /div/p
 
 
 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


Re: Fixing a small piece of code

2009-08-17 Thread James Holmes

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 ptansw...@gmail.com:

 Hi there

 I have 2 small CF programs and cant understand why the code is not working.

        form name=photogallery
          select name=GalleryID
            option value=Please Select an Image Gallery selectedPlease 
 Select an Image Gallery/option
            cfoutput query=qGetGallery
              option 
 value=#qGetGallery.GalleryID##qGetGallery.galleryname#/option
                          /cfoutput
          /select
          br /
          br /
          input type=

~|
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: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

2009-08-17 Thread Maureen

On Mon, Aug 17, 2009 at 7:18 PM, Toby Kingptansw...@gmail.com 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:


CFIF IsDefined(form.submit)
  cfinclude template=inc_photo_gallery.cfm
  cfelse
  cfquery name=qGetGallery  datasource=#request.db_dsn#
username=#request.db_login# password=#request.db_pwd#
  SELECT  *
  FROMgalleries
  /cfquery
  form action=gallery.cfm method=post name=photogallery
id=photogallery
select name=GalleryID
  option value=Please Select an Image Gallery selectedPlease
Select an Image Gallery/option
  cfoutput query=qGetGallery
option
value=#qGetGallery.GalleryID##qGetGallery.galleryname#/option
  /cfoutput
/select
br /
br /
input type=submit name=submit value=Display Gallery
  /form
/cfif

cfquery name=qgetpics datasource=#request.db_dsn#
username=#request.db_login# password=#request.db_pwd#
   select *
   from photoadmin
   cfif isdefined(form.galleryid
   where galleryid = #form.galleryid# and onweb = '1'
   cfelse
   where onweb = '1'
   /cfif
/cfquery

p
div class=gallery
cfoutput query=qgetpics
a href=data/images/#pic_large# rel=lightbox[sample] title=Yeng
Tan Floral designimg src=data/thumbnails/#pic_thumbnail#
border=0 //a/cfoutput
!--[if lte IE 6]script src=engine/js/pngfix_vlb.js
type=text/javascript/script![endif]--
/div

~|
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

2009-08-17 Thread Toby King

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:


CFIF IsDefined(form.submit)
  cfinclude template=inc_photo_gallery.cfm
  cfelse
  cfquery name=qGetGallery  datasource=#request.db_dsn#
username=#request.db_login# password=#request.db_pwd#
  SELECT  *
  FROMgalleries
  /cfquery
  form action=gallery.cfm method=post name=photogallery
id=photogallery
select name=GalleryID
  option value=Please Select an Image Gallery selectedPlease
Select an Image Gallery/option
  cfoutput query=qGetGallery
option
value=#qGetGallery.GalleryID##qGetGallery.galleryname#/option
  /cfoutput
/select
br /
br /
input type=submit name=submit value=Display Gallery
  /form
/cfif

cfquery name=qgetpics datasource=#request.db_dsn#
username=#request.db_login# password=#request.db_pwd#
   select *
   from photoadmin
   cfif isdefined(form.galleryid
   where galleryid = #form.galleryid# and onweb = '1'
   cfelse
   where onweb = '1'
   /cfif
/cfquery

p
div class=gallery
cfoutput query=qgetpics
a href=data/images/#pic_large# rel=lightbox[sample] title=Yeng
Tan Floral designimg src=data/thumbnails/#pic_thumbnail#
border=0 //a/cfoutput
!--[if lte IE 6]script src=engine/js/pngfix_vlb.js
type=text/javascript/script![endif]--
/div 

~|
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

2009-08-17 Thread Toby King

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:


CFIF IsDefined(form.submit)
  cfinclude template=inc_photo_gallery.cfm
  cfelse
  cfquery name=qGetGallery  datasource=#request.db_dsn#
username=#request.db_login# password=#request.db_pwd#
  SELECT  *
  FROMgalleries
  /cfquery
  form action=gallery.cfm method=post name=photogallery
id=photogallery
select name=GalleryID
  option value=Please Select an Image Gallery selectedPlease
Select an Image Gallery/option
  cfoutput query=qGetGallery
option
value=#qGetGallery.GalleryID##qGetGallery.galleryname#/option
  /cfoutput
/select
br /
br /
input type=submit name=submit value=Display Gallery
  /form
/cfif

cfquery name=qgetpics datasource=#request.db_dsn#
username=#request.db_login# password=#request.db_pwd#
   select *
   from photoadmin
   cfif isdefined(form.galleryid
   where galleryid = #form.galleryid# and onweb = '1'
   cfelse
   where onweb = '1'
   /cfif
/cfquery

p
div class=gallery
cfoutput query=qgetpics
a href=data/images/#pic_large# rel=lightbox[sample] title=Yeng
Tan Floral designimg src=data/thumbnails/#pic_thumbnail#
border=0 //a/cfoutput
!--[if lte IE 6]script src=engine/js/pngfix_vlb.js
type=text/javascript/script![endif]--
/div 

~|
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