Pros and cons of deploying CF apps as EAR files?

2011-03-23 Thread Brian Swartzfager

Here at work we are beginning the transition from ColdFusion 7 to ColdFusion 9. 
 As part of the transition, we want to set up a ColdFusion 9 server cluster 
(using CF 9 Enterprise) to host those ColdFusion applications that need to have 
a high level of redundancy.  In order to reach this goal, the server admins 
want any apps hosted in this cluster to be deployed as EAR files.

From what I've read on the subject of EAR deployment, this is a sensible 
approach for a clustered environment, but it's unfamiliar territory for us.  
We're used to having direct access to the application files so we can make 
minor adjustments rather quickly and I'm worried that adding a packaging and 
deployment step (even with the use of automation tools like Ant) is really 
going to slow down our ability to push out changes.  I'm also concerned about 
the fact that some of the apps in question are not self-contained:  they are 
integrated into websites that our clients have the ability to edit.  Based on 
what I've read, it's sounds like that wouldn't be an issue as long as the 
files and folders within the EAR were deployed in the right place for the 
client files to access them, but in practice…

So basically, I'm looking for some advice and input from anyone who deploys 
their apps as EAR files (especially from folks who've made the transition from 
deploying via file upload to deploying via EAR), anything from how we should 
plan for this, best practices, things to look out for, etc.

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343230
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CF + Android + A-GPS Coordinates

2010-05-25 Thread Brian Swartzfager

Hey, Arsalan,

The web browser that comes with the Android OS is capable of accessing the GPS 
information from the phone via the Geolocation functions built into HTML 5, but 
that only sends that information to the browser page.  To get that GPS 
information back to your ColdFusion application to do any sort of server-side 
processing, you'd have to send it to your server via AJAX or a form submission.

--Brian 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:333971
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Google Map API

2009-05-15 Thread Brian Swartzfager

I don't see anything obviously wrong with it either (I don't know that the 
missing ; Paul pointed out would matter given that it's the last statement 
within a block, though I personally end every statement with a ; as a matter 
of habit).

I assume that something on the page is calling your load() function (it won't 
run by itself with just the code you shared with us).

Have you tried running this in Firefox with the Firebug plugin installed and 
set to monitor the scripting activities on the page?  That would tell you if 
there's any sort of error with the JavaScript, either in this snippet of code 
or perhaps in some earlier JavaScript function such that this Google Map 
JavaScript never gets run.

--
Brian Swartzfager
bcswa...@gmail.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:322567
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Javascript question

2009-02-13 Thread Brian Swartzfager

jquery doesn't work with this layout, that's the first place I went.

Not to keep beating the jQuery horse, but if jQuery is referencing the radio 
button by ID or some other non-positional selector, the layout shouldn't matter.

Just to be sure, I wrote up a quick little test with 2 sets of radio buttons.  
This works find in FireFox and IE7:

script type=text/javascript src=jquery-1.2.6.min.js/script
script type=text/javascript
$(document).ready(function() {

$(input[type='radio'][name='radio1']).click(function() {
var $clickedRadioButton= $(this);
if($clickedRadioButton.val()== Yes)
{
$(#radio2AA).attr(checked,true);
$(#radio2AA).attr(disabled,false);
$(#radio2BB).attr(disabled,true);
}
else
{
$(#radio2BB).attr(checked,true);
$(#radio2BB).attr(disabled,false);
$(#radio2AA).attr(disabled,true);
}
});

});

/script

form name=testForm method=post action=none
table id=table1 cellpadding=2 cellspacing=2 style=border:1px solid 
black;
tr
  td
table id=table2 cellpadding=2 cellspacing=2 
style=border:1px solid blue;
tr
  tdJust a random cell to be different./td
  td
   table id=table3 cellpadding=2 cellspacing=2 
style=border:1px solid red;
tr
 td
   Okay, in the next cell is our set of radio buttons.
 /td
td
  strongRadio #1/strongbr /
  input type=radio name=radio1 id=radio1AA 
value=Yes The answer is Yesbr /
  input type=radio name=radio1 id=radio1BB 
value=No The answer is Nobr /
hr /
strongRadio #2/strongbr /
input type=radio name=radio2 id=radio2AA 
value=Yep You just answered Yesbr /
input type=radio name=radio2 id=radio2BB 
value=Nope You just answered Nobr /
/td
/tr
/table
/td
/tr
  /table
  /td
  /tr
/table
/form

...the only reason I can think of for the layout to affect the script is if one 
or more HTML elements are not closed properly:  invalid HTML that perhaps the 
browser can compensate for and display correctly, but wrecks the DOM of the 
page.

Of course, if it's IE 6 you're talking about, all bets are off.  :)


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:319293
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Developing an order form for an application

2008-09-18 Thread Brian Swartzfager
Hi, Toby,

You could use a JavaScript framework like jQuery to do the calculations.

In fact, Ray Camden just recently had a blog post about how to use jQuery to 
solve a very similar problem:

http://www.coldfusionjedi.com/index.cfm/2008/9/10/Ask-a-Jedi-Dynamically-updating-line-items-on-a-form

--Brian



~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:312753
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Using Google Maps API

2008-09-16 Thread Brian Swartzfager
Hi, Lawrence,

Before you do anything else, I would suggest changing your cfdiv into a 
regular div (and launch the JavaScript function with a hyperlink or 
something) just to make sure that there isn't something about the way cfdivs 
are rendered that the Google API doesn't like.

If you get the same error when you use a regular div, then I'd suggest 
posting this question in the Google Group forum for the Google Map API 
(http://groups.google.je/group/Google-Maps-API).  I looked there briefly and 
saw a number of posts about that error:  one of them may be relevant to your 
situation.

--
Brian Swartzfager
[EMAIL PROTECTED]



~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:312568
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: A year as a ColdFusion developer... now what?

2008-08-23 Thread Brian Swartzfager
@Mike:  Did you read his blog post?  He said he quit his job because he felt he 
wasn't getting on-the-job opportunities to expand his CF skills and he wanted 
to get a job where he could learn from experienced CF developers.  He's not 
under the delusion that he knows all there is to know about CF; he wants an 
opportunity to learn more.

@Henry: I have to agree with some of the other folks who've responded that it 
may be difficult to find a new CF position with only 1-year of experience (even 
though it sounds like you've got at least a handle on MG, ColdSpring, and 
Transfer), but I do hope you can find a new CF job.
 

Do you honestly think that with a year developing coldfusion under
your belt, that you know all there is to know that's worth knowing?

If so, then it's time to find a new career or a new branch of this one.

However I suspect that in truth you've barely scratched the surface.
If you're only doing the same things day after day, you're probably
not gaining any experience.Perhaps you need some different
projects to work on.   Ask your boss to assign you something different
or something a bit more challenging.  IF that isnt a possibilty, then
perhaps you should look to work somewhere else.

But before you do anything drastic, i suggest you do this:Pull up
some code you worked on a year ago.   Have a look at the way you did
whatever it was..   would you do it the same way now if you were given
that job today?If so, you havent learned nary a thing in that
time.   If not, you can now see how far you've come. Those of us
who have been coding ColdFusion for a while (and for me it's more than
a decade) can still look back a year and see how we've changed our
methods in teh last year.

What i'm saying is,  apply this little test to yourself.   If you're
not growing in your development skills, it's no wonder you think you
have learned all you need to know, and you need to get out of your
comfort zone and expose yourself to new problems to solve.

I really find it hard to believe that after only a year, you're at the
limit of your skills, and there's nothing new you can learn


Cheers
Mike Kear
Windsor, NSW, Australia
Adobe Certified Advanced ColdFusion Developer
AFP Webworks
http://afpwebworks.com
ColdFusion, PHP, ASP, ASP.NET hosting from AUD$15/month 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:311466
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Portals/Portlets in ColdFusion?

2008-04-10 Thread Brian Swartzfager
 I noticed that Adobe Labs has a newish portal/portlet framework out 
 that sits atop WebSphere Portal. 

Where'd you see that?  I just poked around Adobe Labs (briefly, I'll grant you) 
and didn't see what you're describing:  what's it called?

--
Brian Swartzfager
[EMAIL PROTECTED]


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303125
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Fusebox 4.1 Conditionals

2008-03-14 Thread Brian Swartzfager
Hi, Chris,

I know for a fact that you could not nest if tags like that in Fusebox 4.0.  
I'm pretty sure that you have to use Fusebox 5 or later to do that.

--
Brian Swartzfager
[EMAIL PROTECTED]



~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:301328
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Best way to order appearance of database content...

2008-03-13 Thread Brian Swartzfager
Using arrows to swap items certainly works (I've used that technique myself), 
but it becomes a pain for the user when they want to move an item (an agent, in 
this case) several slots up or down.

I did a blog post on how to use jQuery to reorder a list using drag-and-drop:

http://www.swartzfager.org/blog/index.cfm/2007/11/11/UI-Tool--Rearranging-Items-in-a-List-jQuerystyle

the example page has a download link where you can download the code.

--
Brian Swartzfager
http://www.swartzfager.org/blog 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:301181
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: How to sort columns and Group them at the same time

2008-02-20 Thread Brian Swartzfager
Put the WaitDate before the userID in the Order By statement, or remove userID 
from the Order By statement completely:  you need userID in the data for your 
output, but I don't see why you need to sort by it. 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:299399
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: sending entire Form back on a url string

2008-02-08 Thread Brian Swartzfager
But isn't there a finite limit on how many characters you can put in a URL 
string? 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:298560
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Permutation problem

2007-09-26 Thread Brian Swartzfager
Hi, Ken,

I recently had to build a permutation generator to generate all the unique 
combinations of a set of 

data where (just as in your case) order was not a factor.  So given the data 
set A,B,C, I needed 

to get out:

A,B,C
A,B
B,C
A,C
A
B
C

I looked at my code and was able to modify it to (hopefully) suit your purpose. 
 It requires using recursion, so most of the work is done in a CFC function.

Here's the code for the CFC:

cfcomponent displayname=Permutations hint=I generate the permutations. 
 output=false

cffunction name=generatePermutations output=true 
returntype=string hint=I return a list of all possible combinations of a 
list of items where the order of the items is constant but one or more items 
can be missing
cfargument name=starting_list type=string required=yes hint=The 
starting list of items.  The list will grow smaller via recursion. /
cfargument name=permutation_list type=string required=yes 
hint=The current list of permutations, which will grow longer. /
cfargument name=start_delimiter type=string required=yes 
hint=The list delimiter. /
cfargument name=perm_delimiter type=string required=yes 
hint=The delimiter for the final list.  Should be different from 
start_delimiter /
cfset var temp= 
cfset var p_list= arguments.permutation_list

!---Determine if the full list of items is already in the permutations 
list.  If not, add it---
cfif Not 
ListFind(p_list,arguments.starting_list,arguments.perm_delimiter) AND 
ListLen(arguments.starting_list,,) EQ 6
cfset p_list= 
ListAppend(p_list,arguments.starting_list,arguments.perm_delimiter)
/cfif

!---If starting_list length is not 6, loop and call the function for 
each iteration of the loop---
cfif ListLen(arguments.starting_list,arguments.start_delimiter) GT 6
cfloop index=gone from=1 
to=#ListLen(arguments.starting_list,arguments.start_delimiter)#
cfset temp= 
ListDeleteAt(arguments.starting_list,gone,arguments.start_delimiter)
cfinvoke component=Permutations 
method=generatePermutations returnvariable=p_list starting_list=#temp# 
permutation_list=#p_list# start_delimiter=#arguments.start_delimiter# 
perm_delimiter=#arguments.perm_delimiter#/cfinvoke
/cfloop
/cfif

cfreturn p_list /

/cffunction

/cfcomponent


And here's the code for a page that you can use to test it:

cfsetting requesttimeout=600
cfoutput

cfset inputValues1= '1,2,3,4,5,6,7,'
cfset inputValues2= '1,2,3,4,5,6,7,8,9,10,11,12'

p
inputValues1 is:  #inputValues1#
/p

cfinvoke component=Permutations method=generatePermutations 
starting_list=#inputValues1# permutation_list= start_delimiter=, 
perm_delimiter=| returnvariable=fullPermutationList/cfinvoke

pList the permutations:/p
ul
  cfloop index=combo list=#fullPermutationList# delimiters=|
 li#combo#/li
  /cfloop
/ul

/cfoutput


It can render your 1,2,3,4,5,6,7 example pretty quickly, but it takes a 
pretty long time to do something larger like a 12-item set (hence the 
cfsetting tag to increase the timeout), and I didn't have the time to figure 
out how much time it would take to process a full 20-item list.

Maybe there's a better way to do it, but hopefully this at least provides a 
starting point.

--
Brian Swartzfager
[EMAIL PROTECTED]



~|
Enterprise web applications, build robust, secure 
scalable apps today - Try it now ColdFusion Today
ColdFusion 8 beta - Build next generation apps

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:289519
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: DB permissions error from CFC but not from CFM?

2007-07-26 Thread Brian Swartzfager
Hi,

How is the CFC getting the datasource name, username, and password to use for 
the query?  Are you passing them in as parameters to the function in some 
fashion, or is the cfquery getting the values from the session or application 
scope?

If the answer is the latter, try sending them in as parameters.  It's a better 
practice, anyway.


~|
Download the latest ColdFusion 8 utilities including Report Builder,
plug-ins for Eclipse and Dreamweaver updates.
http;//www.adobe.com/cfusion/entitlement/index.cfm?e=labs%5adobecf8%5Fbeta

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:284662
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Web Developers soon to be extinct?

2007-06-26 Thread Brian Swartzfager
 As long as people want customized applications with a web front end, 
 web development will never die it's up to us to keep up with 
 technology and not become obsolete.

Scott's right.  CMS may be taking away some of the market for the development 
of static web sites, but any web site that allows users to view and manipulate 
database data is still best left to web application developers.

The word customized is the key to what is both presently going on and to the 
future.  Almost every web app that I've ever built is built so that my 
customers can do their work in exactly the way they want to, instead of buying 
some off-the-shelf system that doesn't do everything they want or forces them 
to change their processes.  And by building my apps with ColdFusion, I can 
usually give them their app fairly quickly.

--Brian

~|
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:282167
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: long-polling, or comet

2007-06-08 Thread Brian Swartzfager
I once built a chat room tool using CF and AJAX so my wife (a high-school 
teacher) could use it to hold scheduled chat sessions with her students who had 
study/assignment questions.  I simply had the JavaScript on the client-side 
make a request to the server for any new messages every few seconds (each 
request would pass in the unique ID number of the last chat message displayed 
to the user, and the request would return any messages with a higher message ID 
number).

It seems to me it's a lot less work for the server if the client takes 
responsibility for looking for new content, but it may depend on the context of 
how the chat tool will be used:  single chat rooms with multiple participants, 
where the conversation is fast, or numerous one-on-one chats where there may be 
long pauses between new posts.

--Brian

~|
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:280450
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Help getting rid of Squares in DB

2007-06-06 Thread Brian Swartzfager
There are custom tags cleanMSText or demoronize that may aid you in
automating their removal. I have found cleanMSText works better than
demoronize, but I cant seem to find it right now.


I believe both of those work by using Replace to find and replace the 
problematic character codes with a character or characters that'll display 
normally.  A Google search for either name should bring those tools to light.

I too have a database with text content containing those pesky squares (Oracle, 
not MySQL).  I've tried to clean them up using similar replace statements, but 
no luck:  once those characters are saved to the database, then seem to be 
untouchable by those techniques.

But like I said, I'm using Oracle, and the data fields in question are CLOB 
data type fields, so maybe it'll be different with MySQL.

--Brian

~|
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:280286
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Concepts of Developing Locally with CFEclipse

2007-05-18 Thread Brian Swartzfager
Hey, Rick,

I was in the same situation until a few months ago:  developing code on 
numerous production sites.

I installed CF 7 and Apache on my local machine and set up virtual hosts for 
each of my production sites such that if I wanted to view the local version of 
the site, I would enter:

http://local.foo.com

and to view the production site, I would enter:

http://www.foo.com

I was able to access the production database server from my local CF server, so 
both the production version and development version of the application can 
access the same set of tables (easier than replicating the production database 
tables locally, but it does mean I have to be a little careful with my database 
transactions in development).

I'm just now fleshing out my technique for assigning template path/file 
location variables differently depending on whether the application is running 
locally or on the production server.  My current plan is to determine the 
application's location using cgi.cf_template_path during application start-up:  
in my case, if that variable starts with C:, I know I'm running locally.  
Once I know where the app is running, I can assign the location-sensitive 
variables appropriately.

I'm also using CFEclipse as my primary IDE.  The only problem is that we use 
WebDAV to access the production server filesystem, and for whatever reason the 
FTP/WebDAV plugin for Eclipse will not talk to our WebDAV server (actually, 
knowing our environment, it's probably the other way around).  So I still use 
Dreamweaver for pushing changes up to the server.

--Brian

~|
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:278582
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: ColdFusion SMS Text Messages to Cell?

2007-04-18 Thread Brian Swartzfager
Hi, James,

We're about to try the same thing at my university.  We're going to create a 
portlet (using ColdFusion) in our university portal where anyone at the 
university who wants to get emergency text messages can provide us with their 
cell phone number and the name of their cell service provider.  Most cell phone 
services allow you to send a text message to a phone via an e-mail address 
comprised of the user's phone number and the cell service's domain name, so 
it's simply a matter of sending them e-mail using cfmail. You can find a list 
of addresses at the following web pages:

http://en.wikipedia.org/wiki/SMS_gateways
http://www.livejournal.com/tools/textmessage.bml?mode=details

~|
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:275731
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: OT JS - Moving elements in page

2007-03-22 Thread Brian Swartzfager
Anyone have any pointers or examples of DHTML ordering? Will it be a case of
deleting and reinserting elements where needed?

I messed around with doing something similar a lot lately, and I came up with 
two different approaches:

If the elements you want to move only contain one or two simple elements 
(like text or hyperlinks), you can simply swap the text or values of those 
child elements instead of actually moving the position of the elements in the 
DOM hierarchy.  I actually just made a UI tool that does just that in the 
Downloads box on the right-hand side of my blog (there's a working example on 
that download page as well):

http://www.swartzfager.org/blog

the purpose of the tool is really to _record_ the rearrangement of the 
elements (usually the elements of a list or table), not just visually rearrange 
them, but the JS techniques are the same.  It works in all the major browsers 
(including Safari).

The other approach is more like what you did with your reorder.html:  I had to 
build a bookmark portlet for our portal system, and I wanted users to not only 
be able to nest bookmarks and folders, but to be able to reorder two folders at 
the same level in the hierarchy...which meant moving all of the bookmarks and 
folders contained in the folder.  I ended up writing some functions that would 
clone the elements, remove the original elements, and then place the clones in 
the proper position of the document by figuring out which page element the 
clone should appear before and then using the insertBefore method.

It works in Netscape, IE, FireFox, and Opera, but not in Safari:  one of the 
functions involves reassigning element ids and Safari doesn't seem to like that 
for whatever reason.

If you're interested in seeing the code for the second approach, I could 
probably clean it up for public consumption.

--
Brian Swartzfager
[EMAIL PROTECTED]
http://www.swartzfager.org/blog

~|
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:273404
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: OT JS - Moving elements in page

2007-03-22 Thread Brian Swartzfager
Anyone have any pointers or examples of DHTML ordering? Will it be a case of
deleting and reinserting elements where needed?

I messed around with doing something similar a lot lately, and I came up with 
two different approaches:

If the elements you want to move only contain one or two simple elements 
(like text or hyperlinks), you can simply swap the text or values of those 
child elements instead of actually moving the position of the elements in the 
DOM hierarchy.  I actually just made a UI tool that does just that in the 
Downloads box on the right-hand side of my blog (there's a working example on 
that download page as well):

http://www.swartzfager.org/blog

the purpose of the tool is really to _record_ the rearrangement of the 
elements (usually the elements of a list or table), not just visually rearrange 
them, but the JS techniques are the same.  It works in all the major browsers 
(including Safari).

The other approach is more like what you did with your reorder.html:  I had to 
build a bookmark portlet for our portal system, and I wanted users to not only 
be able to nest bookmarks and folders, but to be able to reorder two folders at 
the same level in the hierarchy...which meant moving all of the bookmarks and 
folders contained in the folder.  I ended up writing some functions that would 
clone the elements, remove the original elements, and then place the clones in 
the proper position of the document by figuring out which page element the 
clone should appear before and then using the insertBefore method.

It works in Netscape, IE, FireFox, and Opera, but not in Safari:  one of the 
functions involves reassigning element ids and Safari doesn't seem to like that 
for whatever reason.

If you're interested in seeing the code for the second approach, I could 
probably clean it up for public consumption.

--
Brian Swartzfager
[EMAIL PROTECTED]
http://www.swartzfager.org/blog

~|
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:273405
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Coldfusion RSS Aggregator

2007-01-23 Thread Brian Swartzfager
Hi, Tom,

I recently built an RSS/ATOM aggregator as a portlet for a portal system we're 
releasing this month.  I loop through each feed URL as well, but the output is 
stored in an array of structures (each feed has its own structure and the last 
component of each structure is an array of the news items in the feed).  I 
display a list of the feeds to the user, and use JavaScript to show or hide the 
news items in the feed whenever the user clicks on the feed title.  It handles 
RSS 1.0, RSS 2.0, and ATOM feeds.

I don't really do anything with the dates that come with the feeds (other than 
display them) and I've never looked at Ray's code:  what are you trying to do 
with the dates?

--Brian


~|
Upgrade to Adobe ColdFusion MX7 
Experience Flex 2  MX7 integration  create powerful cross-platform RIAs 
http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:267259
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Combo Box in CF

2007-01-04 Thread Brian Swartzfager
Varun,

Yes, I would like to see what you came up with.  If you want to e-mail the code 
to m e directly, you can send it to [EMAIL PROTECTED]  Thanks.

--Brian
 
 Thanks for your reply. I came up with a combobox too yesterday, and 
 its using javascript which as you said is indeed very reponsive. The 
 was I have it set up is a text box seating on top of Select inside a 
 DIV. Than, i got few javascript functions googling, and kinna of 
 created a hybrid which does what I have been looking for. Its close to 
 what you have on your page, I can send you the functions or put them 
 here. Let me know, how would you like to have it. If you do at all.

~|
Create robust enterprise, web RIAs.
Upgrade  integrate Adobe Coldfusion MX7 with Flex 2
http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:265609
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Combo Box in CF

2007-01-03 Thread Brian Swartzfager
Varun,

I came up with something that simulates a combo box, but I don't think it quite 
meets what you're looking for.  It gives the user a text box control and a 
select control.  At first, the select control contains all of the options in 
the list, but as the user types text in the text box, the options in the select 
box that don't match what's being typed are essentially removed, leaving only 
similar entries.  If the user clicks on an option in the select box, the value 
of that option is copied to the text box.

I've posted a page with this control up on my website at 
http://www.swartzfager.org/combo_box_demo.cfm.  You can see all of the code 
involved by viewing the page source.  It's JavaScript-powered but does not use 
Ajax, so it's very responsive.

Like I said, I don't think it's quite what you're looking for, but maybe the 
techniques/functions involved will be of some help.

--Brian

~|
Create robust enterprise, web RIAs.
Upgrade  integrate Adobe Coldfusion MX7 with Flex 2
http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:265519
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Combo Box in CF

2007-01-02 Thread Brian Swartzfager
Varun,

Can you be more specific by what you mean by a true combobox?

Do you mean you want a combo box control like the ones in MS Access, where the 
user can either:

--select a value from the provided drop-down list.
--type something that is in the list and have it try to autocomplete it.
--type something that is NOT in the list and submit that value.

Can't say that I've seen anything like that on a web form, but it would be nice 
if such a thing existed or could be done.
 

~|
Create robust enterprise, web RIAs.
Upgrade  integrate Adobe Coldfusion MX7 with Flex 2
http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:265484
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Combo Box in CF

2007-01-02 Thread Brian Swartzfager
Apologies for not being clear.

No apology necessary--just wanted to make sure I knew exactly what you're 
looking for.

Like I said, I don't know of anything out there that'll do that, but now I'm 
curious as to whether it can be done...I may give it a try myself.

If I do come up with something, I'll post it back to this thread.

--Brian

~|
Create robust enterprise, web RIAs.
Upgrade  integrate Adobe Coldfusion MX7 with Flex 2
http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:265494
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: WOOT! Beta

2006-12-11 Thread Brian Swartzfager
 Woot.com has no legal statement whatsoever, and woot was used in 
 Chaucer's time, so it's pretty old.  Gamers have been using Woot! 
 for a long time, too.  It's a common enough word that can mean 
 multiple things.  Also, WOOT! cannot be confused with what woot.com 
 does.
 
 I don't think they'll have a problem with it.

Even if that's the case, I think giving your professional application a name 
that is very similar to a well-know, somewhat anti-establishment with a very 
happy-go-lucky attitude sales web site is asking for an uphill marketing battle.

How certain are you that the target market for your application won't find the 
name choice a bit, well, goofy?  If WOOT! was a acronym for a longer name, that 
would probably fly, but otherwise it seems to merely be an attempt to be hip 
and clever which may be lost on your audience.


~|
Create robust enterprise, web RIAs.
Upgrade  integrate Adobe Coldfusion MX7 with Flex 2
http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:263610
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: WOOT! Beta

2006-12-11 Thread Brian Swartzfager
 Woot.com has no legal statement whatsoever, and woot was used in 
 Chaucer's time, so it's pretty old.  Gamers have been using Woot! 
 for a long time, too.  It's a common enough word that can mean 
 multiple things.  Also, WOOT! cannot be confused with what woot.com 
 does.
 
 I don't think they'll have a problem with it.

Even if that's the case, I think giving your professional application a name 
that is very similar to a well-know, somewhat anti-establishment with a very 
happy-go-lucky attitude sales web site is asking for an uphill marketing battle.

How certain are you that the target market for your application won't find the 
name choice a bit, well, goofy?  If WOOT! was a acronym for a longer name, that 
would probably fly, but otherwise it seems to merely be an attempt to be hip 
and clever which may be lost on your audience.

~|
Create robust enterprise, web RIAs.
Upgrade  integrate Adobe Coldfusion MX7 with Flex 2
http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:263612
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4