Re: Bind / CFC Question

2010-04-13 Thread Charlie Griefer

I haven't done much with binding, but can possibly offer some advice...

Presumably, you have an existing method that returns a query with all of the
columns from the table.

You can go one of two routes that I can think of...

1) create a new method that only queries the table for the single column
you're looking for.  You can even get creative and pass in the column name
as an argument so that you can return a specific column.

2) create a new remote method that calls your existing method (the one that
returns all columns), and within that new method, do a QoQ (or if the query
only returns a single record, you can do myQuery.columnName[1] and return
that.  The only drawback here is that you're still running a SELECT * when
all you really need is one specific column.  But if you're only returning a
single record, the overhead shouldn't be noticeable.

On Mon, Apr 12, 2010 at 11:13 AM, Chad Baloga cbal...@gmail.com wrote:


 I am fairly new to CFCs and binding and have only used query returns with 1
 column. I was wondering how to bind to a cfinput with a certain column when
 my query is selecting * from a table.

 Thanks

 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:332846
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Scrolling iFrame/News Ticker

2010-04-13 Thread Anthony Doherty

Hi I have created a home page with a small iFrame embedded - The iframe 
contains a simple page with a repeat region of news articles.
I want the home page to automatically scroll the iFrame from Top to bottom and 
to restart when it gets to the end - Ive seen it done before and cant for the 
life of me find it again on the net.

Hopefully someone will udnerstand what im after - Thanks 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:332847
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Scrolling iFrame/News Ticker

2010-04-13 Thread Casey Dougall

On Tue, Apr 13, 2010 at 6:38 AM, Anthony Doherty 
a.dohe...@advancesystems.co.uk wrote:


 Hi I have created a home page with a small iFrame embedded - The iframe
 contains a simple page with a repeat region of news articles.
 I want the home page to automatically scroll the iFrame from Top to bottom
 and to restart when it gets to the end - Ive seen it done before and cant
 for the life of me find it again on the net.

 Hopefully someone will udnerstand what im after - Thanks


google: javascript vertical news ticker

http://www.news-scroller.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:332848
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


AW: Scrolling iFrame/News Ticker

2010-04-13 Thread Thomas Stichnoth

Something like that?

http://www.dynamicdrive.com/dynamicindex2/iframe-scroller.htm



Viele Grüße
Thomas Stichnoth
-Ursprüngliche Nachricht-
Von: Anthony Doherty [mailto:a.dohe...@advancesystems.co.uk] 
Gesendet: Dienstag, 13. April 2010 12:39
An: cf-talk
Betreff: Scrolling iFrame/News Ticker


Hi I have created a home page with a small iFrame embedded - The iframe
contains a simple page with a repeat region of news articles.
I want the home page to automatically scroll the iFrame from Top to bottom
and to restart when it gets to the end - Ive seen it done before and cant
for the life of me find it again on the net.

Hopefully someone will udnerstand what im after - Thanks 



~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:332849
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


DateDiff() and Minutes Wierdness

2010-04-13 Thread Bradley Stone

All:

Feeding DateDiff() dates which are more than 24 hours apart yields minutes:

cfoutput
#DateDiff(n, 2010-04-08 19:41:36.0, 2010-04-12 19:10:34.0)#
/cfoutput

Result: 5728

However, feeding DateDiff() dates which are LESS than 24 hours apart yields 
nothing:

cfoutput
#DateDiff(n, 2010-04-08 19:34:47.0, 2010-04-08 19:35:35.0)#
/cfoutput

Result: 0

What am I missing?  Any help appreciated!
Brad Stone
Benchmark Technologies Inc.



~|
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:332850
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: DateDiff() and Minutes Wierdness

2010-04-13 Thread Raymond Camden

Um, aren't those times like 50 seconds or so apart? Isn't 50 seconds 
1 minute? Therefore 0 full minutes?

On Tue, Apr 13, 2010 at 7:32 AM, Bradley Stone b...@nb9m.com wrote:

 All:

 Feeding DateDiff() dates which are more than 24 hours apart yields minutes:

 cfoutput
 #DateDiff(n, 2010-04-08 19:41:36.0, 2010-04-12 19:10:34.0)#
 /cfoutput

 Result: 5728

 However, feeding DateDiff() dates which are LESS than 24 hours apart yields 
 nothing:

 cfoutput
 #DateDiff(n, 2010-04-08 19:34:47.0, 2010-04-08 19:35:35.0)#
 /cfoutput

 Result: 0

 What am I missing?  Any help appreciated!
 Brad Stone
 Benchmark Technologies Inc.



 

~|
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:332851
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


form testing

2010-04-13 Thread success

Heya! I'm testing an in house developed app and I'm wondering what the best wat 
to post data to a form is that gets around client side validation (including 
the maxlength property of a text field and select boxes having pre-defined 
data).

I basically want to ensure the server side validation is solid. I figured there 
would be a firefox extension for this but my google fu is weak today.

Thanks for the tips.
Ramon Ecung II, BS, ACHDS, MCP
Sent from my Mobile Device

~|
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:332852
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: DateDiff() and Minutes Wierdness

2010-04-13 Thread Brian Thornton

teah change your evaluator to seconds and do the multiplication.

On Tue, Apr 13, 2010 at 9:09 AM, Raymond Camden rcam...@gmail.com wrote:

 Um, aren't those times like 50 seconds or so apart? Isn't 50 seconds 
 1 minute? Therefore 0 full minutes?

 On Tue, Apr 13, 2010 at 7:32 AM, Bradley Stone b...@nb9m.com wrote:

 All:

 Feeding DateDiff() dates which are more than 24 hours apart yields minutes:

 cfoutput
 #DateDiff(n, 2010-04-08 19:41:36.0, 2010-04-12 19:10:34.0)#
 /cfoutput

 Result: 5728

 However, feeding DateDiff() dates which are LESS than 24 hours apart yields 
 nothing:

 cfoutput
 #DateDiff(n, 2010-04-08 19:34:47.0, 2010-04-08 19:35:35.0)#
 /cfoutput

 Result: 0

 What am I missing?  Any help appreciated!
 Brad Stone
 Benchmark Technologies Inc.





 

~|
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:332853
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


re: form testing

2010-04-13 Thread Jason Fisher

cfhttp method=POST url=yerForm.cfm
cfhttpparam type=FORMFIELD name=field1 value=val1 /
cfhttpparam type=FORMFIELD name=field2 value=val2 /
cfhttpparam type=FORMFIELD name=field3 value=val3 /
cfhttpparam type=FORMFIELD name=field4 value=val4 /
/cfhttp

Then you also have access to the result in the cfhttp struct that gets 
returned.



~|
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:332854
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: form testing

2010-04-13 Thread Casey Dougall

On Tue, Apr 13, 2010 at 9:34 AM, succ...@ramonecung.com wrote:


 Heya! I'm testing an in house developed app and I'm wondering what the best
 wat to post data to a form is that gets around client side validation
 (including the maxlength property of a text field and select boxes having
 pre-defined data).

 I basically want to ensure the server side validation is solid. I figured
 there would be a firefox extension for this but my google fu is weak today.


iMacros for Firefox 6.6.0.1
https://addons.mozilla.org/en-US/firefox/addon/3863

Automate Firefox. Record and replay repetitious work. If you love the
Firefox web browser, but are tired of repetitive tasks like visiting the
same sites every days, filling out forms, and remembering passwords, then
iMacros for Firefox is the solution you’ve been dreaming of! ***Whatever you
do with Firefox, iMacros can automate it.***

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:332855
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: form testing

2010-04-13 Thread Andy Matthews

Disable JavaScript would be an easy one.

You could also create your own form on a stand alone page, and just point
the action attribute of your new form to the action attribute of the form to
be tested. 

-Original Message-
From: succ...@ramonecung.com [mailto:succ...@ramonecung.com] 
Sent: Tuesday, April 13, 2010 8:34 AM
To: cf-talk
Subject: form testing


Heya! I'm testing an in house developed app and I'm wondering what the best
wat to post data to a form is that gets around client side validation
(including the maxlength property of a text field and select boxes having
pre-defined data).

I basically want to ensure the server side validation is solid. I figured
there would be a firefox extension for this but my google fu is weak today.

Thanks for the tips.
Ramon Ecung II, BS, ACHDS, MCP
Sent from my Mobile Device



~|
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:332856
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: DateDiff() and Minutes Wierdness

2010-04-13 Thread Rick Faircloth

Isn't that:

April  8th, 2010 / 19 hours 41 minutes 36 seconds
April 12th, 2010 / 19 hours 10 minutes 34 seconds

Around 3 days, 28 minutes, 58 seconds apart?
(No coffee yet, so results may be skewed!)

And what does the first decimal place in 36.0 represent, anyway?
A tenth of a second?  Never worked with time and decimal places.


-Original Message-
From: Raymond Camden [mailto:rcam...@gmail.com] 
Sent: Tuesday, April 13, 2010 9:09 AM
To: cf-talk
Subject: Re: DateDiff() and Minutes Wierdness


Um, aren't those times like 50 seconds or so apart? Isn't 50 seconds 
1 minute? Therefore 0 full minutes?

On Tue, Apr 13, 2010 at 7:32 AM, Bradley Stone b...@nb9m.com wrote:

 All:

 Feeding DateDiff() dates which are more than 24 hours apart yields
minutes:

 cfoutput
 #DateDiff(n, 2010-04-08 19:41:36.0, 2010-04-12 19:10:34.0)#
 /cfoutput

 Result: 5728

 However, feeding DateDiff() dates which are LESS than 24 hours apart
yields nothing:

 cfoutput
 #DateDiff(n, 2010-04-08 19:34:47.0, 2010-04-08 19:35:35.0)#
 /cfoutput

 Result: 0

 What am I missing?  Any help appreciated!
 Brad Stone
 Benchmark Technologies Inc.



 



~|
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:332857
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: DateDiff() and Minutes Wierdness

2010-04-13 Thread Jason Fisher

Yes, the long datetime in SQL Server tracks out to fractions of seconds.



~|
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:332858
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: CF9 + W2k8 Migration

2010-04-13 Thread Eric Hoffman

We did similar and the process was essentially painless.   The only gotchas
we had were a few setting mistakes.

64 Bit will be a nice bump for you.

-Original Message-
From: Paul Kukiel [mailto:pkuk...@gmail.com] 
Sent: Tuesday, April 13, 2010 12:51 AM
To: cf-talk
Subject: Re: CF9 + W2k8 Migration


I also just migrated a large eTraning app from CF8 32bit to CF9 64bit Win2k3
- Win 2k8.

It was painless. The CF9 installer works really well with IIS 7.0 and 7.5
now.  We only had a few issues where local.something was treated differently
under cf9 but that was fixed in about 2 mins.

Perfomance has been great.

Paul Kukiel
http://blog.kukiel.net

On Mon, Apr 12, 2010 at 11:01 PM, Cutter (ColdFusion) 
cold.fus...@cutterscrossing.com wrote:


 We are considering moving from CF8 on 32-bit Windows 2003 to 64-bit 
 CF9 on Windows 2008. Anyone who has experience with this, if you could 
 please give me your feedback on any issues you may have dealt with, 
 hurdles you crossed, and gotchas that slowed your progress.

 --
 Steve Cutter Blades
 Adobe Community Professional - ColdFusion Adobe Certified Professional 
 Advanced Macromedia ColdFusion MX 7 Developer

 Co-Author of Learning Ext JS
 http://www.packtpub.com/learning-ext-js/book
 _
 http://blog.cutterscrossing.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:332859
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: DateDiff() and Minutes Wierdness

2010-04-13 Thread Raymond Camden

That was his first example, which worked for him. His second example
was less then 60 seconds apart.


On Tue, Apr 13, 2010 at 9:37 AM, Rick Faircloth
r...@whitestonemedia.com wrote:

 Isn't that:

 April  8th, 2010 / 19 hours 41 minutes 36 seconds
 April 12th, 2010 / 19 hours 10 minutes 34 seconds

 Around 3 days, 28 minutes, 58 seconds apart?
 (No coffee yet, so results may be skewed!)

 And what does the first decimal place in 36.0 represent, anyway?
 A tenth of a second?  Never worked with time and decimal places.


 -Original Message-
 From: Raymond Camden [mailto:rcam...@gmail.com]
 Sent: Tuesday, April 13, 2010 9:09 AM
 To: cf-talk
 Subject: Re: DateDiff() and Minutes Wierdness


 Um, aren't those times like 50 seconds or so apart? Isn't 50 seconds 
 1 minute? Therefore 0 full minutes?

 On Tue, Apr 13, 2010 at 7:32 AM, Bradley Stone b...@nb9m.com wrote:

 All:

 Feeding DateDiff() dates which are more than 24 hours apart yields
 minutes:

 cfoutput
 #DateDiff(n, 2010-04-08 19:41:36.0, 2010-04-12 19:10:34.0)#
 /cfoutput

 Result: 5728

 However, feeding DateDiff() dates which are LESS than 24 hours apart
 yields nothing:

 cfoutput
 #DateDiff(n, 2010-04-08 19:34:47.0, 2010-04-08 19:35:35.0)#
 /cfoutput

 Result: 0

 What am I missing?  Any help appreciated!
 Brad Stone
 Benchmark Technologies Inc.







 

~|
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:332860
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: DateDiff() and Minutes Wierdness

2010-04-13 Thread Rick Faircloth

Gotcha...I was thinking his examples were reversed...

-Original Message-
From: Raymond Camden [mailto:rcam...@gmail.com] 
Sent: Tuesday, April 13, 2010 11:55 AM
To: cf-talk
Subject: Re: DateDiff() and Minutes Wierdness


That was his first example, which worked for him. His second example
was less then 60 seconds apart.


On Tue, Apr 13, 2010 at 9:37 AM, Rick Faircloth
r...@whitestonemedia.com wrote:

 Isn't that:

 April  8th, 2010 / 19 hours 41 minutes 36 seconds
 April 12th, 2010 / 19 hours 10 minutes 34 seconds

 Around 3 days, 28 minutes, 58 seconds apart?
 (No coffee yet, so results may be skewed!)

 And what does the first decimal place in 36.0 represent, anyway?
 A tenth of a second?  Never worked with time and decimal places.


 -Original Message-
 From: Raymond Camden [mailto:rcam...@gmail.com]
 Sent: Tuesday, April 13, 2010 9:09 AM
 To: cf-talk
 Subject: Re: DateDiff() and Minutes Wierdness


 Um, aren't those times like 50 seconds or so apart? Isn't 50 seconds 
 1 minute? Therefore 0 full minutes?

 On Tue, Apr 13, 2010 at 7:32 AM, Bradley Stone b...@nb9m.com wrote:

 All:

 Feeding DateDiff() dates which are more than 24 hours apart yields
 minutes:

 cfoutput
 #DateDiff(n, 2010-04-08 19:41:36.0, 2010-04-12 19:10:34.0)#
 /cfoutput

 Result: 5728

 However, feeding DateDiff() dates which are LESS than 24 hours apart
 yields nothing:

 cfoutput
 #DateDiff(n, 2010-04-08 19:34:47.0, 2010-04-08 19:35:35.0)#
 /cfoutput

 Result: 0

 What am I missing?  Any help appreciated!
 Brad Stone
 Benchmark Technologies Inc.







 



~|
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:332861
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: DateDiff() and Minutes Wierdness

2010-04-13 Thread Bradley Stone

Thanks guys. I think the problem is that that I was thinking that the function 
could function when the arguments are essentially the same day.  Here's what I 
did to solve the problem: when the function returns 0, do this:

cfoutput
cfset holdTotalHours = ABS(DatePart(h, arguments.HighDate) - DatePart(h, 
arguments.LowDate))

cfset holdTotalMinutes = ABS(DatePart(n, arguments.HighDate) - DatePart(n, 
arguments.LowDate))

Results in (HH:MM) Format: #holdTotalHours#:#holdTotalMinutes#
/cfoutput

Using DatePart here seems to work fine!



~|
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:332862
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Manage dynamic content in the db

2010-04-13 Thread Victor Moore

Hi,

I have inherited an old site that has extensive sales reporting. Some
reports are static some are dynamically created based on variable
criteria (eg: dates, user roles etc).
Each report has it's own file and they use more or less the same layout.
I would like to replace all of them with a single template and one
layout and the content to be dynamically injected based on the report
ID.
this will be a new table that will contain the reportID, header, footer etc

I have problems designing this back-end table that will support
capturing the report definition.

I'm think this is a  classic CMS feature and I was wondering how
people are tackling it.

regards
Victor

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:332863
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: DateDiff() and Minutes Wierdness

2010-04-13 Thread brad

 I was thinking that the function could function when the arguments are 
 essentially the same day.

I'm a little confused.  The dateDiff() function DOES work when the
arguments are the same day.  Have we led you to believe otherwise, or
are you talking about a different function functioning?

 Here's what I did to solve the problem: when the function returns 0, do this:

Exactly what combination of inputs to dateDiff() is returning zero? If
it is your second example in your original post, then it SHOULD return
zero because the two dates were less than one minute apart.  Your code
below is asking whether or not the two times are in the same hour and
minute which is a different question than asking how many full hours
and minutes exists between the times.  (It's also worth noting your code
below will ONLY work for times on the same day and with a 24 hour clock)

If your objective is to decide if the times are in the same minute
then you should probably always be using datePart() starting with the
largest unit (year) and working in and NOT using dateDiff() at all. 
Alternatively you could continue to use dateDiff() to the second level,
divide by 60, and ceiling() the result up to the next full minute
which is essentially what you are doing below.

Perhaps you can explain exactly what you were trying to do.

~Brad

cfoutput
cfset holdTotalHours = ABS(DatePart(h, arguments.HighDate) -
DatePart(h, arguments.LowDate))

cfset holdTotalMinutes = ABS(DatePart(n, arguments.HighDate) -
DatePart(n, arguments.LowDate))

Results in (HH:MM) Format: #holdTotalHours#:#holdTotalMinutes#
/cfoutput



~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:332864
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


CFEclipse and dynamic snippets

2010-04-13 Thread Michael Christensen

I love snippets in Eclipse and they save me a bunch of keystrokes every day...

But surely I can't be the only one longing for a bit more (dynamic) 
functionality in snippets? In good ol' HomeSite+ you could do snippet-like 
behavior which you coded in VBScript - that meant if/then, loops etc. which 
processed stuff before inserting into your code.

Anyone know if something like that can be accomplished in Eclipse? 

~|
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:332865
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CFEclipse and dynamic snippets

2010-04-13 Thread Barney Boisvert

Eclipse (via a plugin) supports JavaScript scripting of the IDE, so
you can get some of this behaviour.  It's not snippet-centric, which
makes snippets harder, but lets you do anything you want (e.g., bulk
edit files).

I can't remember the name of the plugin off hand, but Google should
turn it up.  It might even be part of the core by now.

cheers,
barneyb

On Tue, Apr 13, 2010 at 10:08 AM, Michael Christensen mich...@strib.dk wrote:

 I love snippets in Eclipse and they save me a bunch of keystrokes every day...

 But surely I can't be the only one longing for a bit more (dynamic) 
 functionality in snippets? In good ol' HomeSite+ you could do snippet-like 
 behavior which you coded in VBScript - that meant if/then, loops etc. which 
 processed stuff before inserting into your code.

 Anyone know if something like that can be accomplished in Eclipse?

 

~|
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:332866
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CFEclipse and dynamic snippets

2010-04-13 Thread Michael Christensen

That does sound promising - any more info you could give me? 

~|
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:332867
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CFEclipse and dynamic snippets

2010-04-13 Thread Barney Boisvert

Sorry, I don't know.  A quick Googling
(http://www.google.com/search?q=scripting+eclipse) turned up a pair of
projects:

Eclipse Monkey:
http://www.brain-bakery.com/projects/articles/eclipse-monkey-scripting/
Eclipse Shell: http://eclipse-shell.sourceforge.net/

The former is the one I was thinking of, I believe, and it looks like
it has made it's way into the main Eclipse ecosystem.

cheers,
barneyb

On Tue, Apr 13, 2010 at 10:15 AM, Michael Christensen mich...@strib.dk wrote:

 That does sound promising - any more info you could give me?

 

~|
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:332868
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CFEclipse and dynamic snippets

2010-04-13 Thread Judah McAuley

You might also take a look at Templates within CFEclipse:
http://blog.mxunit.org/2009/10/new-in-cfeclipse-templates.html

They are more interactive than snippets.

Judah

On Tue, Apr 13, 2010 at 10:33 AM, Barney Boisvert bboisv...@gmail.com wrote:

 Sorry, I don't know.  A quick Googling
 (http://www.google.com/search?q=scripting+eclipse) turned up a pair of
 projects:

 Eclipse Monkey:
 http://www.brain-bakery.com/projects/articles/eclipse-monkey-scripting/
 Eclipse Shell: http://eclipse-shell.sourceforge.net/

 The former is the one I was thinking of, I believe, and it looks like
 it has made it's way into the main Eclipse ecosystem.

 cheers,
 barneyb

 On Tue, Apr 13, 2010 at 10:15 AM, Michael Christensen mich...@strib.dk 
 wrote:

 That does sound promising - any more info you could give me?



 

~|
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:332869
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm