Re: Handling In-Field Commas in CSV import?

2010-06-03 Thread Paul Henderson

This solution worked for me:

http://www.bennadel.com/blog/1903-Parsing-CSV-Data-With-ColdFusion-s-CFHTTP-Tag.htm





On Thu, 03 Jun 2010 14:27:08 -0400, Paul Henderson

 wrote:

> Thanks for the replies, it seems like I'm taking the wrong approach.

> 

> Currently I am using a cfloop to loop over the file, then

> 

> #listgetat(FileLine,1)# to reference each field. 

> 

> 

> 

> 

> 

>  

> 

> 

> 

> 

> 

> It seemed like a pretty simple solution and was working fine until I

came

> 

> across fields with commas. As far as I can tell I can't use "'" as the

> 

> delimiter with listgetat. Does anyone have a better approach? Thanks

again.

> 

> 

> 

> 

> 

> On Thu, 3 Jun 2010 10:37:34 -0700, Judah McAuley 

> 

> wrote:

> 

>> Any delimited file that has delimiters contained within a field is

> 

>> supposed to use a text qualifier. For CSV, the most common qualifier

> 

>> is double quotes, so your file would look like:

> 

>> 

> 

>> "1234","field 1","my big field, that has a delimiter or two, but is

> 

>> qualified"

> 

>> 

> 

>> If there are not text qualifiers and a field includes a qualifier then

> 

>> it isn't a valid csv file. If it is qualified, you should break the

> 

>> line up using the compound string "," as what you are splitting on,

> 

>> then remove the first and last qualifiers.

> 

>> 

> 

>> Hope that helps,

> 

>> Judah

> 

>> 

> 

>> On Thu, Jun 3, 2010 at 10:32 AM,   wrote:

> 

>>>

> 

>>> I'm trying to import a comma delimited CSV file using  

>>>

> 

>>> file="filename.csv">, but some records contain commas and they are

> 

>>> throwing

> 

>>>

> 

>>> everything off. I can't seem to figure out how to replace the in-field

> 

>>>

> 

>>> commas without messing up the delimiter. Any ideas? Thanks in advance.

> 

>>>

> 

>>>

> 

>>>

> 

>>> -Paul

> 

>>>

> 

>>> 

> 

>> 

> 

>> 

> 

> 

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


Re: Handling In-Field Commas in CSV import?

2010-06-03 Thread Paul Henderson

Thanks for the replies, it seems like I'm taking the wrong approach.

Currently I am using a cfloop to loop over the file, then

#listgetat(FileLine,1)# to reference each field. 





 





It seemed like a pretty simple solution and was working fine until I came

across fields with commas. As far as I can tell I can't use "'" as the

delimiter with listgetat. Does anyone have a better approach? Thanks again.





On Thu, 3 Jun 2010 10:37:34 -0700, Judah McAuley 

wrote:

> Any delimited file that has delimiters contained within a field is

> supposed to use a text qualifier. For CSV, the most common qualifier

> is double quotes, so your file would look like:

> 

> "1234","field 1","my big field, that has a delimiter or two, but is

> qualified"

> 

> If there are not text qualifiers and a field includes a qualifier then

> it isn't a valid csv file. If it is qualified, you should break the

> line up using the compound string "," as what you are splitting on,

> then remove the first and last qualifiers.

> 

> Hope that helps,

> Judah

> 

> On Thu, Jun 3, 2010 at 10:32 AM,   wrote:

>>

>> I'm trying to import a comma delimited CSV file using >

>> file="filename.csv">, but some records contain commas and they are

>> throwing

>>

>> everything off. I can't seem to figure out how to replace the in-field

>>

>> commas without messing up the delimiter. Any ideas? Thanks in advance.

>>

>>

>>

>> -Paul

>>

>> 

> 

> 

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


RE: CF Based Calendar?

2009-08-12 Thread Paul Henderson

As far as I know the only calendar control CF8 has is cfcalendar which
allows you to select and input a date into a form. I'm looking to output a
calendar display. If there are other built-in calendar functions that I'm
unaware of, that would be great?!? Thanks for all the suggestions. 

what about the calendar control that's in CF, i.e., cfcalendar? I'm assuming
here that you're using CF8. 



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


CF Based Calendar?

2009-08-12 Thread Paul Henderson

I have a client requesting an online calendar and since the portal I'm
building them is entirely CF I'd like to provide a CF calendar as well (or
one that integrates well with CF). Does anyone have any suggestions? The
best one I've found so far is Ben Nadel's Kinky Calendar
http://www.bennadel.com/projects/kinky-calendar.htm

Thanks in advance,

-Paul

 

 

 



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


cflayout tab style controls?

2009-07-30 Thread Paul Henderson

The cflayout tab styling controls seem to be limited, for example does
anyone know how I can change the border color or background color of the tab
title area? I've looked through the Adobe Livedocs and can't seem to find
where these style controls are set.

 

Thanks in advance,

-Paul

 

 

 



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


RE: CF8 functions only working in webroot?

2009-07-22 Thread Paul Henderson

The virtual directory did the trick, thanks Adrian

-Original Message-
From: Adrian Lynch [mailto:cont...@adrianlynch.co.uk] 
Sent: Wednesday, July 22, 2009 5:07 PM
To: cf-talk
Subject: RE: CF8 functions only working in webroot?


All the AJAXy tags and function access files in domain.com/cfide/blaa/blaa.

Add CFIDE as a virtual directory in your new sites and see if that fixes it.

Adrian


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


CF8 functions only working in webroot?

2009-07-22 Thread Paul Henderson

I'm not sure why this is but I'm working on a new CF8 install using IIS and
for whatever reason the CF8 functions such as cflayout only seem to work in
the webroot and default site. All other CF functionality works on the sub
sites. Any ideas why I'm facing this issue?

 

Thanks in advance

-Paul

 

 

 



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


RE: CF based forums ap?

2009-07-15 Thread Paul Henderson

I did briefly look at Ray Camden's Galleon. It only requires CF MX 6.1 so I
thought it might be outdated but it looks like Ray stays on top of it
because the last update was from June 2009. So far it looks like Galleon is
my best bet. Thanks for the reply Nathan. 

-Original Message-
From: Nathan Strutz [mailto:str...@gmail.com] 
Sent: Wednesday, July 15, 2009 10:22 PM
To: cf-talk
Subject: Re: CF based forums ap?


Did you check out Ray Camden's Galleon forums app? I would bet it's on
riaforge.org. Pretty simple to figure out and modify.

On Wednesday, July 15, 2009, Paul Henderson  wrote:
>
> I'm trying to find a CF based forums ap, open source preferred but not
> required. The ones I've been able to find any postings about seem to be
out
> dated. Does anyone have any recommendations?
>
>
>
> Thanks in advance,
>
> -Paul
>
>
>
>
>
>
>
>
>
> 



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


CF based forums ap?

2009-07-15 Thread Paul Henderson

I'm trying to find a CF based forums ap, open source preferred but not
required. The ones I've been able to find any postings about seem to be out
dated. Does anyone have any recommendations? 

 

Thanks in advance,

-Paul

 

 

 



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


Cflayout CfMenu Problem

2009-06-03 Thread Paul Henderson

I'm experimenting with cflayout and cfmenus, following the CF8 WACK. I'm
using a border type cflayoutarea and I've place a horizontal cfmenu in the
top area. But the dropdown items in the menu are cut off, or layered behind
the cflayoutarea below it. I tried setting the overflow to visible but that
spits out an error. Any ideas? I'm guessing maybe some kind of css trick may
help?

 

Thanks

-Paul

 

 

 



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


RE: CSS Refresh Crash in Firefox??

2007-07-25 Thread Paul Henderson
Thanks for the tip Sandra. Like I said, I'm a rookie ;) But this thing
boggles my mind, since it normally loads fine. I was under the impression
code is code, if its not altered it should load the same every time.


-Original Message-
From: Sandra Clark [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 25, 2007 5:02 PM
To: CF-Talk
Subject: RE: CSS Refresh Crash in Firefox??

I don't know why its crashing, but simplify your life Paul.  Use inheritance
and the cascade to create a more efficient CSS.  That way when you start
trying to figure out where the problems are, it will be a heck of a lot
easier.

...chanpod :link,
...chanpod :visited{
display: block;
background-color: #454545;
width: 580px;
height: 121px;
font-size: 11px; 
font-family: Verdana,Lucida-Sans;
font-weight:normal; 
color:#FF;
padding:0px 0px 0px 0px;
margin-bottom: 5px;
text-decoration:none;
text-align:left;
}
...chanpod :link:hover,
...chanpod :visited:hover{
background-color: #989898;
}

Sandra Clark
=
http://www.shayna.com
Training and Consulting  in CSS and Accessibility
Team Fusebox

-Original Message-----
From: Paul Henderson [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 25, 2007 4:36 PM
To: CF-Talk
Subject: RE: CSS Refresh Crash in Firefox??

Its basically one div pod that is crashing, as in the txt style doesn't
apply and the div ends up appearing 3 times and one of the 3 is out of
place. I didn't post the code originally because I was hoping it was a
common bug, guess not.

Here is the css:

chanpod a
{
display: block;
background-color: #454545;
width: 580px;
height: 121px;
font-size: 11px; 
font-family: Verdana,Lucida-Sans;
font-weight:normal; 
color:#FF;
padding:0px 0px 0px 0px;
margin-bottom: 5px;
text-decoration:none;
text-align:left;
}

chanpod a:hover
{
display: block;
background-color: #989898;
width: 580px;
height: 121px;
font-size: 11px; 
font-family: Verdana,Lucida-Sans;
font-weight:normal; 
color:#FF;
padding:0px 0px 0px 0px;
margin-bottom: 5px;
text-decoration:none;
text-align:left;
}

And the actual HTML:



Header


I'm trying to pull off a basic roll over affect so if the user rolls over
the graphic or header the header (background-color) will change.

Thanks in advance for any input.


-Original Message-
From: Andy Matthews [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 25, 2007 4:22 PM
To: CF-Talk
Subject: RE: CSS Refresh Crash in Firefox??

Can you be a little more clear as to what you mean by "CSS crash"?

Are you saying that the CSS doesn't work? Doesn't load? Do you have a site
we could look at?


andy 

-----Original Message-
From: Paul Henderson [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 25, 2007 1:35 PM
To: CF-Talk
Subject: CSS Refresh Crash in Firefox??

This isn't exactly a cf issue but its happening on a .cfm page so plase bare
with me. For some reason my css seems to partially crash, randomly on SOME
refreshes in Firefox only.. On avg 8 out of 10 times the code will load
fine. Is this a known Firefox bug? I'm a bit of a css rookie but I've tried
about 5 different approaches to the code and the same random refresh crash
happens. Any ideas?

 

Thank you,

-Paul

 











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


RE: CSS Refresh Crash in Firefox??

2007-07-25 Thread Paul Henderson
Thanks Andy I will check it out yes I was only putting a single . before the
class, the cut and paste must of messed that up. If I shouldn't be nesting
things in the href that is probably the root of the problem. But, you'd
think it would load messed up on each request, not just some.


-Original Message-
From: Andy Matthews [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 25, 2007 5:23 PM
To: CF-Talk
Subject: RE: CSS Refresh Crash in Firefox??

Not sure if it's just the way it came through in email, but your classes are
setup incorrectly.

A class definition should only have one . Before the name:

...myClassName

Not

myClassName

Also, your HTML is invalid. The A tag should not have anything nested inside
it, especially block level elements like you're trying to use.

I'd recommend using a javascript function to change the color of the div on
mouseover. jQuery is great for this sort of thing. www.jquery.com.

$('.chanpod').hover(function(){
$(this).css('backgroundColor','#ccff00');
},function(){
$(this).css('backgroundColor','#ff');   });

That code will change the background color of a div, on mouse over, from
white to a lime green.


-Original Message-
From: Paul Henderson [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 25, 2007 3:36 PM
To: CF-Talk
Subject: RE: CSS Refresh Crash in Firefox??

Its basically one div pod that is crashing, as in the txt style doesn't
apply and the div ends up appearing 3 times and one of the 3 is out of
place. I didn't post the code originally because I was hoping it was a
common bug, guess not.

Here is the css:

chanpod a
{
display: block;
background-color: #454545;
width: 580px;
height: 121px;
font-size: 11px;
font-family: Verdana,Lucida-Sans;
font-weight:normal;
color:#FF;
padding:0px 0px 0px 0px;
margin-bottom: 5px;
text-decoration:none;
text-align:left;
}

chanpod a:hover
{
display: block;
background-color: #989898;
width: 580px;
height: 121px;
font-size: 11px;
font-family: Verdana,Lucida-Sans;
font-weight:normal;
color:#FF;
padding:0px 0px 0px 0px;
margin-bottom: 5px;
text-decoration:none;
text-align:left;
}

And the actual HTML:



Header


I'm trying to pull off a basic roll over affect so if the user rolls over
the graphic or header the header (background-color) will change.

Thanks in advance for any input.


-Original Message-
From: Andy Matthews [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 25, 2007 4:22 PM
To: CF-Talk
Subject: RE: CSS Refresh Crash in Firefox??

Can you be a little more clear as to what you mean by "CSS crash"?

Are you saying that the CSS doesn't work? Doesn't load? Do you have a site
we could look at?


andy 

-Original Message-
From: Paul Henderson [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 25, 2007 1:35 PM
To: CF-Talk
Subject: CSS Refresh Crash in Firefox??

This isn't exactly a cf issue but its happening on a .cfm page so plase bare
with me. For some reason my css seems to partially crash, randomly on SOME
refreshes in Firefox only.. On avg 8 out of 10 times the code will load
fine. Is this a known Firefox bug? I'm a bit of a css rookie but I've tried
about 5 different approaches to the code and the same random refresh crash
happens. Any ideas?

 

Thank you,

-Paul

 











~|
Get the answers you are looking for on the ColdFusion Labs
Forum direct from active programmers and developers.
http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid-72&catid=648

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


RE: CSS Refresh Crash in Firefox??

2007-07-25 Thread Paul Henderson
Its basically one div pod that is crashing, as in the txt style doesn't
apply and the div ends up appearing 3 times and one of the 3 is out of
place. I didn't post the code originally because I was hoping it was a
common bug, guess not.

Here is the css:

..chanpod a
{
display: block;
background-color: #454545;
width: 580px;
height: 121px;
font-size: 11px; 
font-family: Verdana,Lucida-Sans;
font-weight:normal; 
color:#FF;
padding:0px 0px 0px 0px;
margin-bottom: 5px;
text-decoration:none;
text-align:left;
}

..chanpod a:hover
{
display: block;
background-color: #989898;
width: 580px;
height: 121px;
font-size: 11px; 
font-family: Verdana,Lucida-Sans;
font-weight:normal; 
color:#FF;
padding:0px 0px 0px 0px;
margin-bottom: 5px;
text-decoration:none;
text-align:left;
}

And the actual HTML:



Header


I'm trying to pull off a basic roll over affect so if the user rolls over
the graphic or header the header (background-color) will change.

Thanks in advance for any input.


-Original Message-
From: Andy Matthews [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 25, 2007 4:22 PM
To: CF-Talk
Subject: RE: CSS Refresh Crash in Firefox??

Can you be a little more clear as to what you mean by "CSS crash"?

Are you saying that the CSS doesn't work? Doesn't load? Do you have a site
we could look at?


andy 

-----Original Message-
From: Paul Henderson [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 25, 2007 1:35 PM
To: CF-Talk
Subject: CSS Refresh Crash in Firefox??

This isn't exactly a cf issue but its happening on a .cfm page so plase bare
with me. For some reason my css seems to partially crash, randomly on SOME
refreshes in Firefox only.. On avg 8 out of 10 times the code will load
fine. Is this a known Firefox bug? I'm a bit of a css rookie but I've tried
about 5 different approaches to the code and the same random refresh crash
happens. Any ideas?

 

Thank you,

-Paul

 







~|
ColdFusion is delivering applications solutions at at top companies 
around the world in government.  Find out how and where now
http://www.adobe.com/cfusion/showcase/index.cfm?event=finder&productID=1522&loc=en_us

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


CSS Refresh Crash in Firefox??

2007-07-25 Thread Paul Henderson
This isn't exactly a cf issue but its happening on a .cfm page so plase bare
with me. For some reason my css seems to partially crash, randomly on SOME
refreshes in Firefox only.. On avg 8 out of 10 times the code will load
fine. Is this a known Firefox bug? I'm a bit of a css rookie but I've tried
about 5 different approaches to the code and the same random refresh crash
happens. Any ideas?

 

Thank you,

-Paul

 



~|
Get the answers you are looking for on the ColdFusion Labs
Forum direct from active programmers and developers.
http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid-72&catid=648

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:284555
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 Prevent Simultaneous Login / Session Management

2007-06-21 Thread Paul Henderson
Thanks for all the feedback guys, I think the bumping technique described by 
Jim and Josh will work best for me in this situation. Although it would be niec 
to have a bullet proof login where simultaneous logins are denied, sessions end 
on browser close or disconnect and users can log back in without waiting for a 
session to timeout...maybe in CF9.


-Original Message-
From: Jim Davis [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 21, 2007 2:38 PM
To: CF-Talk
Subject: Re: How to Prevent Simultaneous Login / Session Management

>I know I can prevent any simultaneous logins by simply flagging the account
>as "logged in" when a user logins. However, if the user closes the browser
>or is disconnected without properly logging out, how would I go about
>allowing them to log back in? Since as far as I know, the server and
>database would therefore have no way of knowing the user disconnected and
>would still see the user as logged in. I thought OnSessionEnd would do the
>trick, but as was pointed out to me on this list OnSessionEnd only runs when
>the session expires, not when the user disconnects. Any ideas are much
>appreciated, thanks.

Forgetting the actual coding involved there are at least two schools of thought 
on this.

+) Token-Based Refusal

In this style you'd store a token (as simple as an IP address but you might 
also include User Agent or anything else you can get your hands on or place a 
GUID in a cookie) along with the "logged in" status.  When another login is 
attempted using the same credentials you'd compare the information: if it's the 
same you'd allow the access.

If the user accidentally closes the browser they still have to log in, but if 
the info matches they get in immediately.

It isn't perfect (far from it) but it works well enough.  One issue is how to 
mange the information: you can't keep it forever (or else you'd be tying use of 
the application to a single computer).  Often you might manage this by having 
the information valid only as long as long as the session is (that way whether 
or not it's the same person logging in there's no conflict).  But you still 
might run into problems.

+) Bumping

This is the system adopted by many Instant Messaging systems: a new logon will 
kill a current log on.  The message "You have logged in on another computer" 
epitomizes it.  The session from the old computer is eliminated completely and 
the new session becomes the "real" one.

This honestly annoys me with IM but you'd have to review the idea with your 
audience in mind.

If there are actually two people trying to use the same account this can result 
in a tug-of-war with the credential rights, but that might be what you want.


Both methods assume that you a) know the details of your user's status (know 
whose logged in) and b) can affect that status in some way.  If the existence 
of a session implies a login then you've lost control for example.

This usually means implementation of some kind of "logged in queue" or the 
like.  Once you can interrogate whose logged in and modify that status either 
of these options become much simpler to implement.

Jim Davis



~|
ColdFusion 8 beta – Build next generation applications today.
Free beta download on Labs
http://www.adobe.com/cfusion/entitlement/index.cfm?e=labs_adobecf8_beta

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


How to Prevent Simultaneous Login / Session Management

2007-06-21 Thread Paul Henderson
I know I can prevent any simultaneous logins by simply flagging the account
as "logged in" when a user logins. However, if the user closes the browser
or is disconnected without properly logging out, how would I go about
allowing them to log back in? Since as far as I know, the server and
database would therefore have no way of knowing the user disconnected and
would still see the user as logged in. I thought OnSessionEnd would do the
trick, but as was pointed out to me on this list OnSessionEnd only runs when
the session expires, not when the user disconnects. Any ideas are much
appreciated, thanks.

 

 

 



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


Force OnSessionEnd on browser close?

2007-06-20 Thread Paul Henderson
>From what I understand if you set the cfadmin to use J2EE Session variables
sessions will expire when the browser is closed. However I've been testing
this out and the OnSessionEnd code I have in the application.cfc does not
run when the browser is closed it only seems to run when the session times
out. Is there a way to trigger the OnSessionEnd when a user closes the
browser? Thanks.

 



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


RE: output RSS feed CF 5

2007-06-01 Thread Paul Henderson
Thanks Charlie, I do have access to an mx server, maybe it would be worth
moving this particular site over if it's much easier to pull off in MX. Do
you know of a quick reference to an MX solution? Thanks again for your help.

-Original Message-
From: Charlie Griefer [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 01, 2007 6:22 PM
To: CF-Talk
Subject: Re: output RSS feed CF 5

pre-MX i think most people used a custom tag called soxml from site objects.

since MX has these capabilities built in, the tag is no longer
maintained.  you might be able to find a copy via google.  sorry... i
don't have the tag handy anymore myself.

On 6/1/07, Paul Henderson <[EMAIL PROTECTED]> wrote:
> This seems like a simple enough task but I've been searching google and
> haven't found anything that works yet. Can anyone point me to an example
of
> how to output a rss feed such as google news on a cfm page using cf 5.0?
>
>
>
> Thank you,
>
> -Paul
>
>
>
> 



~|
Upgrade to Adobe ColdFusion MX7
The most significant release in over 10 years. Upgrade & see new features.
http://www.adobe.com/products/coldfusion?sdid=RVJR

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


output RSS feed CF 5

2007-06-01 Thread Paul Henderson
This seems like a simple enough task but I've been searching google and
haven't found anything that works yet. Can anyone point me to an example of
how to output a rss feed such as google news on a cfm page using cf 5.0?

 

Thank you,

-Paul



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


RE: Error setting up FCKEditor

2007-05-18 Thread Paul Henderson
Thanks for your help Mike, I got it working but obviously I have something
wrong with my path values because the only way I got it to work was to have
a FCKEditor Dir in the webroot and in the /raindance directory? Thanks
again.

-Original Message-
From: Mike Kear [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 17, 2007 4:27 PM
To: CF-Talk
Subject: Re: Error setting up FCKEditor

Yes, Paul I know exactly what is causing that error.The "page not
found' is referring to the blank page that FCKEditor puts in the
editing area.   you need to make sure the reference to that page is
correct.

On my instances of FCKEditor, that line is the following:

fckEditor.basePath  = "/cfforms/scripts/fckeditor/";

or in some of my sites, i have the following:

fckEditor.basePath  = "#application.fckeditorbasepath#";

The problem you have is similar to the previous problem - you just
need to tinker around with the values in that line to make sure it's
pointing to the folder that contains the fckeditor.cfc.  (I"m assuming
you have kept all the files in teh same folder layout as the default
installation.   I wouldnt recommend you move anything about unless yoo
konw what all those files do and where the path references to them
are).

Here's a complete FCKEditor instance from one of my sites, that you can
follow:


fckeditor = createObject("component",
"cfforms.scripts.fckeditor.fckeditor");
fckEditor.instanceName  = "story";  //the field name in the
form scope
fckEditor.value = '#Content.getStory()#';
//the default value in
the editing window
fckEditor.basePath  =
"/cfforms/scripts/fckeditor/";
//fckEditor.toolbarset  = "default";
fckEditor.width = "80%";
fckEditor.height= 400;
fckEditor.create(); // create the editor.


Hope this gets you going - if not, feel free to ask more questions.

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



On 5/18/07, Paul Henderson <[EMAIL PROTECTED]> wrote:
> Thanks Mike,
>
> I seemed to make some progress setting the basepath to /fckeditor/ and
> manually setting the fckeditor ro fckeditor   = createObject("component",
> "fckeditor.fckeditor");
>
> But now, I get a page cannot be displayed error in the section the editor
> should load into. I'm not sure what I could be doing wrong, the
> documentation sure makes the process seem simple enough. Any other
thoughts?
> Thanks again.
>
>
>



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


RE: Error setting up FCKEditor

2007-05-17 Thread Paul Henderson
Thanks Mike,

I seemed to make some progress setting the basepath to /fckeditor/ and
manually setting the fckeditor ro fckeditor   = createObject("component",
"fckeditor.fckeditor");

But now, I get a page cannot be displayed error in the section the editor
should load into. I'm not sure what I could be doing wrong, the
documentation sure makes the process seem simple enough. Any other thoughts?
Thanks again.



-Original Message-
From: Mike Kear [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 17, 2007 3:20 AM
To: CF-Talk
Subject: Re: Error setting up FCKEditor

Your problem is as the error message says - its in line 71 where the
FCKEditor component is being instantiated.

I suspect it's to do with the path or a mapping.  Try changing your
current #basePath#fckeditor  to explicitly list it out and see if the
error is with #basePath#.   For example change that line to the
following and see if the problem goes away ...

fckEditor = createObject("component", "fckeditor.fckeditor");

That's for if you have installed FCKEditor directly under your web root.

Quite possibly you are going to have to change your original line to

fckEditor = createObject("component", "#basepath#.fckeditor.fckeditor");

Note that the CreateObject function is looking for a file called
fckeditor.cfc  so therefore the last fckeditor in the createobject is
the name of the component.  The previous 'fckeditor' is the name of
the folder it sits in.

If, like me, you have your fckeditor installed inside a folder called
cfforms, then the instantiation line will read as follows:

fckEditor = createObject("component", "cfforms.fckeditor.fckeditor");

Hth.

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






On 5/17/07, Paul Henderson <[EMAIL PROTECTED]> wrote:
> As simple as the initial setup appears to be I can't seem to get passed
this
> error:
>
>
>
> Could not find the ColdFusion Component /raindance/fckeditor/fckeditor.
>
> Please check that the given name is correct and that the component exists.
>
>
>
> "The error occurred in
>
> C:\**rootpath**\raindance\fckeditor\_samples\cfm\sample02_mx.cfm:
>
> line 71
>
>
>
> 69 :   basePath = Left(cgi.script_name, FindNoCase('_samples',
>
> cgi.script_name)-1);
>
> 70 :
>
> 71 :   fckEditor = createObject("component", "#basePath#fckeditor");
>
> 72 :   fckEditor.instanceName  = "myEditor";
>
> 73 :   fckEditor.value   = 'This is some
sample
> text. You are using 
> href="http://fckeditor.net/"; target="_blank">FCKeditor.'
>
>
>
> If I go ahead and try to rename the sample file and put it in the
> application root I get this error:
>
>
>
> Error Occurred While Processing Request
>
> Could not find the ColdFusion Component /raindance/FCKeditorfckeditor.
>
> Please check that the given name is correct and that the component exists.
>
>
>
> The error occurred in C:\**rootpath**\raindance\myeditor.cfm: line 71
>
>
>
> 69 :   basePath = "/raindance/FCKeditor";
>
> 70 :
>
> 71 :   fckEditor = createObject("component", "#basePath#fckeditor");
>
> 72 :   fckEditor.instanceName  = "myEditor";
>
> 73 :   fckEditor.value   = 'This is some
sample
> text. You are using 
> href="http://fckeditor.net/"; target="_blank">FCKeditor.';
>
>
>
> Any ideas?
>
> Thanks,
>
> -Paul
>



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


Error setting up FCKEditor

2007-05-16 Thread Paul Henderson
As simple as the initial setup appears to be I can't seem to get passed this
error:

 

Could not find the ColdFusion Component /raindance/fckeditor/fckeditor.

Please check that the given name is correct and that the component exists.

 

"The error occurred in

C:\**rootpath**\raindance\fckeditor\_samples\cfm\sample02_mx.cfm:

line 71

 

69 :   basePath = Left(cgi.script_name, FindNoCase('_samples',

cgi.script_name)-1);

70 :

71 :   fckEditor = createObject("component", "#basePath#fckeditor");

72 :   fckEditor.instanceName  = "myEditor";

73 :   fckEditor.value   = 'This is some sample
text. You are using http://fckeditor.net/"; target="_blank">FCKeditor.'

 

If I go ahead and try to rename the sample file and put it in the
application root I get this error:

 

Error Occurred While Processing Request

Could not find the ColdFusion Component /raindance/FCKeditorfckeditor.

Please check that the given name is correct and that the component exists.

 

The error occurred in C:\**rootpath**\raindance\myeditor.cfm: line 71

 

69 :   basePath = "/raindance/FCKeditor";

70 :

71 :   fckEditor = createObject("component", "#basePath#fckeditor");

72 :   fckEditor.instanceName  = "myEditor";

73 :   fckEditor.value   = 'This is some sample
text. You are using http://fckeditor.net/"; target="_blank">FCKeditor.';

 

Any ideas?

Thanks,

-Paul



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


RE: Auto Index Dbase datasource?

2007-04-16 Thread Paul Henderson
In 5 I was using the Merant dBase/FoxPro. I haven't been able to figure out
how to use the Merant driver in MX7, is this possible?

-Original Message-
From: Claude Schneegans [mailto:[EMAIL PROTECTED] 
Sent: Monday, April 16, 2007 1:38 PM
To: CF-Talk
Subject: Re: Auto Index Dbase datasource?

 >>its an old dbase 3 database

As far as you have an ODBC driver to support it and able to re-index 
tables, it should also take care of indexes
when updating.
I don't see your point.

-- 
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Thanks.




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


RE: Auto Index Dbase datasource?

2007-04-16 Thread Paul Henderson
You'd think so but its an old dbase 3 database, and I'm stuck with it since
the 3rd party software relies on it.

-Original Message-
From: Claude Schneegans [mailto:[EMAIL PROTECTED] 
Sent: Monday, April 16, 2007 1:20 PM
To: CF-Talk
Subject: Re: Auto Index Dbase datasource?

 >>In CF5 I was able to set the datasource
to automatically index files after writing new records.

What a weird decision. Isn't the datasource supposed to automatically 
update all indexes anyway?
Hope your database is just a very small one.

-- 
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Thanks.




~|
Upgrade to Adobe ColdFusion MX7
The most significant release in over 10 years. Upgrade & see new features.
http://www.adobe.com/products/coldfusion?sdid=RVJR

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


Auto Index Dbase datasource?

2007-04-16 Thread Paul Henderson
I'm attempting to use CFMX7 to update a networked dbase dbf datasource that
is being used by 3rd party software. In CF5 I was able to set the datasource
to automatically index files after writing new records. I can't recall if I
did this in the Windows ODBC Data source Administrator or the CF admin. The
only option I found in MX7 that would even connect to this networked dbf was
an ODBC datasocket. Does anyone have any ideas how this can be auto indexed?


 

Thanks

-Paul

 



~|
ColdFusion MX7 by Adobe®
Dyncamically transform webcontent into Adobe PDF with new ColdFusion MX7. 
Free Trial. http://www.adobe.com/products/coldfusion?sdid=RVJV

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


RE: dbase III datasource in MX7

2007-04-09 Thread Paul Henderson
Scrap this I figured it out. Thanks.

-Original Message-
From: Paul Henderson [mailto:[EMAIL PROTECTED] 
Sent: Monday, April 09, 2007 4:34 PM
To: CF-Talk
Subject: dbase III datasource in MX7

I recently upgraded one server from cf5 to mx7 but since doing so I can't
seem to figure out how to setup a dbase III datasource. I don't have the
option of migrating the data at all. Any suggestions?

 

Thanks





~|
Upgrade to Adobe ColdFusion MX7
The most significant release in over 10 years. Upgrade & see new features.
http://www.adobe.com/products/coldfusion?sdid=RVJR

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


dbase III datasource in MX7

2007-04-09 Thread Paul Henderson
I recently upgraded one server from cf5 to mx7 but since doing so I can't
seem to figure out how to setup a dbase III datasource. I don't have the
option of migrating the data at all. Any suggestions?

 

Thanks



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


Basic Level CMS Solution?

2007-01-05 Thread Paul Henderson
I'm trying to find a very basic level CMS solution for small businesses that
would allow the user to edit images and text on a page, any recommendations?
I've spent today figuring out Farcry and it seems to be a little more
complex of a solution than I need. Or maybe there is an easy way to apply
Farry to a CF site that is already built and I am missing it?

 

I also tried out activsoftware's ActiveEdit but I wasn't impressed.

 

Thanks in advance.

-Paul



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


Flash Form cfformgroup layout question

2006-12-22 Thread Paul Henderson
(Sorry for the repost originally sent with a blank subject in error)

 

I have a rookie level flash form question. 

 

When I create a horizontal cfformgroup it automatically inserts a left
margin of approx 40-50 pixels. Below is the code I'm using. The only
attributes that I think could control this extra margin or buffer is
margin-left, horizontalGap or labelwidth but I've set them all to 0. 

 

The text box Email which is outside of a horizontal group lines up perfectly
approx 5 pixels from the left but once I throw a txt box in a horizontal
group this huge indent is created.

 

Any ideas would be appreciated. Thanks in advance.

 

-Paul

 



 





 











   











 





 

 



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


RE: Can't Get Network Datasources working in CF 5

2006-04-17 Thread Paul Henderson
It is using the local system account (default) I found something on the
macromedia site that says I may need a "domain account" to access networked
datasource but I'm not setup in a domain environment. Any other work around
you guys know of? Or will I have to set up a domain to get mapped
datasources working?

I'm not using SQL, just one dbase datasource and a few Access datasources.

-Original Message-
From: Nick Tong - TalkWebSolutions.co.uk [mailto:[EMAIL PROTECTED]
Sent: Monday, April 17, 2006 1:24 PM
To: CF-Talk
Subject: Re: Can't Get Network Datasources working in CF 5


Hi, can you check the permissions of the user that you have set in CF admin
that runs the query?

On 17/04/06, Dave Francis <[EMAIL PROTECTED]> wrote:
>
> ODBC ot Native drivers?
>
> Assuming SQL, have you tried accessing/querying the db with Enterprise
> Manager?
>
>
>
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Monday, April 17, 2006 12:17 PM
> To: CF-Talk
> Subject: Can't Get Network Datasources working in CF 5
>
>
> I can't seem to get any networked datasources working in CF5, any ideas? I
> had these datasources working at one point but ended up having to format
> the CF5 server, so I'm assuming it's a simple config setting I'm missing?
> I have one networked dbase datasource that I am able to verify within the
> cfadmin but whenever I try to query it I get this error:
>
> unknown exception condition
>
> PCodeRuntimeContextImp::executeSQLTagCFQuery::endTag
>
> Any ideas?
>
> Thanks in advance.
>
>
>
>



~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:237929
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Javascript / Listbox Form Problem

2005-05-17 Thread Paul Henderson
Thanks for the info Byron, I'll look into it.

-Original Message-
From: Byron [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 17, 2005 2:51 PM
To: CF-Talk
Subject: Re: Javascript / Listbox Form Problem


Hi,

qForms has a very nice way to handle related select boxes called
Containers. It's very simple to use and if you call the compressed
versions of qForms as opposed to the other the JS has a minimal
footprint.

http://www.pengoworks.com/qforms/docs/examples/containers.htm

Byron


On May 17, 2005, at 2:26 PM, Paul Henderson wrote:

> As far as I know it is running, I do not receive any browser errors
> I'm not
> sure how else to tell if it is actually running or not.
>
> -Original Message-
> From: Adam Haskell [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, May 17, 2005 2:13 PM
> To: CF-Talk
> Subject: Re: Javascript / Listbox Form Problem
>
>
> Is this function executing without error. Javascript will fail
> silently and just allow the form to submit. Maybe its not running?
>
> Adam H
>
> On 5/17/05, Paul Henderson <[EMAIL PROTECTED]> wrote:
>> Thanks Adam and Rebecca for the response, Adam I do have the listbox
>> set
> up
>> to allow multiple selections:
>>
>> 
>>
>> But because the user is adding items from one listbox into another,
>> at the
>> time the form is submitted the items are not selected.
>>
>> Apparently this code I'm trying to work with has worked properly in
>> the
>> past, it sure won't work for me.
>>
>> // Get selected themes
>> for (i=1; i< document.frmImageAdm.lbxSelectedTheme.length;
>> i++) {
>> if (vThemes == "")  {
>> vThemes =
> document.frmImageAdm.lbxSelectedTheme.options[i].value
>> } else {
>> vThemes = vThemes + "," +
>> document.frmImageAdm.lbxSelectedTheme.options[i].value
>> }
>> }
>> document.frmImageAdm.hdnThemes.value = vThemes
>>
>> Despite this above code, hdnThemes is always NULL when I try to
>> reference
>> it, but maybe because OnSubmit hdnThemes is passed as NULL however,
>> this
>> function SHOULD update it's value.
>>
>> Thanks again for all the help, hopefully you can find your past code
>> Adam.
>>
>> -Paul
>>
>>
>> -Original Message-
>> From: Adam Haskell [mailto:[EMAIL PROTECTED]
>> Sent: Tuesday, May 17, 2005 1:28 PM
>> To: CF-Talk
>> Subject: Re: Javascript / Listbox Form Problem
>>
>> I'll search for my page that does that but the gist of it is move the
>> items over then select all items onSubmit. The key to getting this to
>> work is make sure the second select box has the ability to select
>> multiple items.
>>
>> Adam H
>>
>> On 5/17/05, Rebecca Wells <[EMAIL PROTECTED]> wrote:
>>> I don't think that's possible. I have built pages that have the
>>> multiple
>> select option. What you have to do is submit the selected items from
>> the
>> list1 to the action page (using an "Add" or "-->" button), which
>> inserts
>> eacho of the selected items to a db table, then return to the display
>> page
>> with the selected items added to, or subtracted from, the list2. The
>> user
>> can use a "Delete" or "<--" button to remove selected items from
>> list2,
> and
>> it works the same way as the add button. They make their choices from
> list2,
>> select the Delete button, which submits to the action page, detects
>> that
> the
>> Delete button was selected and loops over the list2 form members,
>> deleting
>> them from the db table, and returns to the display page showing those
> items
>> gone from list2. Yes, that may seem like a lot of work, but I haven't
>> figured out any simpler way to do this kind of user interface. I hope
>> that
>> makes sense.
>>>
>>>> It seems to only output the value if an item has been selected, but
>>>> my
>> goal
>>>> is to on one submit get the value of everything that's been added to
> the
>>>> list box?
>>>
>>>
>>
>>
>
>
>
>



~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:206918
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Javascript / Listbox Form Problem

2005-05-17 Thread Paul Henderson
Thanks for the code Adam, it works! I should be fine now,

Thanks again.
-Paul

-Original Message-
From: Adam Haskell [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 17, 2005 2:40 PM
To: CF-Talk
Subject: Re: Javascript / Listbox Form Problem


Put an Alert inside the for loop and alert vTheme.

Also use Mozilla's script debugger :)

I'd also do it like this:

// Get selected themes
   var vThemes = []; //note vThemes is now an array
   for (i=1; i< document.frmImageAdm.lbxSelectedTheme.length; i++) {
 vThemes.push(document.frmImageAdm.lbxSelectedTheme.options[i].v
alue);
 alert(vThemes);
   }
   document.frmImageAdm.hdnThemes.value = vThemes.join();


Adam H

On 5/17/05, Paul Henderson <[EMAIL PROTECTED]> wrote:
> As far as I know it is running, I do not receive any browser errors I'm
not
> sure how else to tell if it is actually running or not.
>
> -Original Message-
> From: Adam Haskell [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, May 17, 2005 2:13 PM
> To: CF-Talk
> Subject: Re: Javascript / Listbox Form Problem
>
> Is this function executing without error. Javascript will fail
> silently and just allow the form to submit. Maybe its not running?
>
> Adam H
>
> On 5/17/05, Paul Henderson <[EMAIL PROTECTED]> wrote:
> > Thanks Adam and Rebecca for the response, Adam I do have the listbox set
> up
> > to allow multiple selections:
> >
> > 
> >
> > But because the user is adding items from one listbox into another, at
the
> > time the form is submitted the items are not selected.
> >
> > Apparently this code I'm trying to work with has worked properly in the
> > past, it sure won't work for me.
> >
> > // Get selected themes
> > for (i=1; i< document.frmImageAdm.lbxSelectedTheme.length; i++)
{
> > if (vThemes == "")  {
> > vThemes =
> document.frmImageAdm.lbxSelectedTheme.options[i].value
> > } else {
> > vThemes = vThemes + "," +
> > document.frmImageAdm.lbxSelectedTheme.options[i].value
> > }
> > }
> > document.frmImageAdm.hdnThemes.value = vThemes
> >
> > Despite this above code, hdnThemes is always NULL when I try to
reference
> > it, but maybe because OnSubmit hdnThemes is passed as NULL however, this
> > function SHOULD update it's value.
> >
> > Thanks again for all the help, hopefully you can find your past code
Adam.
> >
> > -Paul
> >
> >
> > -Original Message-
> > From: Adam Haskell [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, May 17, 2005 1:28 PM
> > To: CF-Talk
> > Subject: Re: Javascript / Listbox Form Problem
> >
> > I'll search for my page that does that but the gist of it is move the
> > items over then select all items onSubmit. The key to getting this to
> > work is make sure the second select box has the ability to select
> > multiple items.
> >
> > Adam H
> >
> > On 5/17/05, Rebecca Wells <[EMAIL PROTECTED]> wrote:
> > > I don't think that's possible. I have built pages that have the
multiple
> > select option. What you have to do is submit the selected items from the
> > list1 to the action page (using an "Add" or "-->" button), which inserts
> > eacho of the selected items to a db table, then return to the display
page
> > with the selected items added to, or subtracted from, the list2. The
user
> > can use a "Delete" or "<--" button to remove selected items from list2,
> and
> > it works the same way as the add button. They make their choices from
> list2,
> > select the Delete button, which submits to the action page, detects that
> the
> > Delete button was selected and loops over the list2 form members,
deleting
> > them from the db table, and returns to the display page showing those
> items
> > gone from list2. Yes, that may seem like a lot of work, but I haven't
> > figured out any simpler way to do this kind of user interface. I hope
that
> > makes sense.
> > >
> > > >It seems to only output the value if an item has been selected, but
my
> > goal
> > > >is to on one submit get the value of everything that's been added to
> the
> > > >list box?
> > >
> > >
> >
> >
>
>



~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:206917
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Javascript / Listbox Form Problem

2005-05-17 Thread Paul Henderson
As far as I know it is running, I do not receive any browser errors I'm not
sure how else to tell if it is actually running or not.

-Original Message-
From: Adam Haskell [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 17, 2005 2:13 PM
To: CF-Talk
Subject: Re: Javascript / Listbox Form Problem


Is this function executing without error. Javascript will fail
silently and just allow the form to submit. Maybe its not running?

Adam H

On 5/17/05, Paul Henderson <[EMAIL PROTECTED]> wrote:
> Thanks Adam and Rebecca for the response, Adam I do have the listbox set
up
> to allow multiple selections:
>
> 
>
> But because the user is adding items from one listbox into another, at the
> time the form is submitted the items are not selected.
>
> Apparently this code I'm trying to work with has worked properly in the
> past, it sure won't work for me.
>
> // Get selected themes
> for (i=1; i< document.frmImageAdm.lbxSelectedTheme.length; i++) {
> if (vThemes == "")  {
> vThemes =
document.frmImageAdm.lbxSelectedTheme.options[i].value
> } else {
> vThemes = vThemes + "," +
> document.frmImageAdm.lbxSelectedTheme.options[i].value
> }
> }
> document.frmImageAdm.hdnThemes.value = vThemes
>
> Despite this above code, hdnThemes is always NULL when I try to reference
> it, but maybe because OnSubmit hdnThemes is passed as NULL however, this
> function SHOULD update it's value.
>
> Thanks again for all the help, hopefully you can find your past code Adam.
>
> -Paul
>
>
> -Original Message-
> From: Adam Haskell [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, May 17, 2005 1:28 PM
> To: CF-Talk
> Subject: Re: Javascript / Listbox Form Problem
>
> I'll search for my page that does that but the gist of it is move the
> items over then select all items onSubmit. The key to getting this to
> work is make sure the second select box has the ability to select
> multiple items.
>
> Adam H
>
> On 5/17/05, Rebecca Wells <[EMAIL PROTECTED]> wrote:
> > I don't think that's possible. I have built pages that have the multiple
> select option. What you have to do is submit the selected items from the
> list1 to the action page (using an "Add" or "-->" button), which inserts
> eacho of the selected items to a db table, then return to the display page
> with the selected items added to, or subtracted from, the list2. The user
> can use a "Delete" or "<--" button to remove selected items from list2,
and
> it works the same way as the add button. They make their choices from
list2,
> select the Delete button, which submits to the action page, detects that
the
> Delete button was selected and loops over the list2 form members, deleting
> them from the db table, and returns to the display page showing those
items
> gone from list2. Yes, that may seem like a lot of work, but I haven't
> figured out any simpler way to do this kind of user interface. I hope that
> makes sense.
> >
> > >It seems to only output the value if an item has been selected, but my
> goal
> > >is to on one submit get the value of everything that's been added to
the
> > >list box?
> >
> >
>
>



~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:206910
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Javascript / Listbox Form Problem

2005-05-17 Thread Paul Henderson
Thanks Adam and Rebecca for the response, Adam I do have the listbox set up
to allow multiple selections:



But because the user is adding items from one listbox into another, at the
time the form is submitted the items are not selected.

Apparently this code I'm trying to work with has worked properly in the
past, it sure won't work for me.

// Get selected themes
for (i=1; i< document.frmImageAdm.lbxSelectedTheme.length; i++) {
if (vThemes == "")  {
vThemes = 
document.frmImageAdm.lbxSelectedTheme.options[i].value
} else {
vThemes = vThemes + "," +
document.frmImageAdm.lbxSelectedTheme.options[i].value
}
}
document.frmImageAdm.hdnThemes.value = vThemes

Despite this above code, hdnThemes is always NULL when I try to reference
it, but maybe because OnSubmit hdnThemes is passed as NULL however, this
function SHOULD update it's value.

Thanks again for all the help, hopefully you can find your past code Adam.

-Paul




-Original Message-
From: Adam Haskell [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 17, 2005 1:28 PM
To: CF-Talk
Subject: Re: Javascript / Listbox Form Problem


I'll search for my page that does that but the gist of it is move the
items over then select all items onSubmit. The key to getting this to
work is make sure the second select box has the ability to select
multiple items.

Adam H

On 5/17/05, Rebecca Wells <[EMAIL PROTECTED]> wrote:
> I don't think that's possible. I have built pages that have the multiple
select option. What you have to do is submit the selected items from the
list1 to the action page (using an "Add" or "-->" button), which inserts
eacho of the selected items to a db table, then return to the display page
with the selected items added to, or subtracted from, the list2. The user
can use a "Delete" or "<--" button to remove selected items from list2, and
it works the same way as the add button. They make their choices from list2,
select the Delete button, which submits to the action page, detects that the
Delete button was selected and loops over the list2 form members, deleting
them from the db table, and returns to the display page showing those items
gone from list2. Yes, that may seem like a lot of work, but I haven't
figured out any simpler way to do this kind of user interface. I hope that
makes sense.
>
> >It seems to only output the value if an item has been selected, but my
goal
> >is to on one submit get the value of everything that's been added to the
> >list box?
>
>



~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:206900
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Javascript / Listbox Form Problem

2005-05-16 Thread Paul Henderson
It seems to only output the value if an item has been selected, but my goal
is to on one submit get the value of everything that's been added to the
list box?

Thanks again Charlie.

-Original Message-
From: Charlie Griefer [mailto:[EMAIL PROTECTED]
Sent: Monday, May 16, 2005 6:32 PM
To: CF-Talk
Subject: Re: Javascript / Listbox Form Problem


can you post the URL to your form page?

what do you get on the action page if you do a ?

On 5/16/05, Paul Henderson <[EMAIL PROTECTED]> wrote:
> Thanks Charlie, I still can't seem to accomplish my goal of just being
able
> to have all the contents of the 2nd listbox in  one variable that I can
> call. Even [EMAIL PROTECTED] didn't work for me for some reason?
>

>



~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:206813
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Javascript / Listbox Form Problem

2005-05-16 Thread Paul Henderson
Thanks Charlie, I still can't seem to accomplish my goal of just being able
to have all the contents of the 2nd listbox in  one variable that I can
call. Even [EMAIL PROTECTED] didn't work for me for some reason?

-Original Message-
From: Charlie Griefer [mailto:[EMAIL PROTECTED]
Sent: Monday, May 16, 2005 4:25 PM
To: CF-Talk
Subject: Re: Javascript / Listbox Form Problem


Paul:

see http://charlie.griefer.com/page1.cfm

it's straight JS, so you can easily view the source.  I have the
onsubmit function returning false just so you can see all of the
options in the 2nd  box being selected.

on page2, it's just form.box2 (which will give you a comma delimited
list of all of the options in the ).

let me know if you have questions.

On 5/16/05, Paul Henderson <[EMAIL PROTECTED]> wrote:
> Thanks Charlie...
>
> I would reference the 2nd listbox it's self if I knew how? I'm not sure
how
> I can reference the elements of the 2nd list box without them actualy
being
> highlighted or selected when the form is submitted? Please let me know if
> you know how to do this, if not I'll try and figure out how to fix that
> javascript loop.
>
> Thanks again.
>
>
> -Original Message-
> From: Charlie Griefer [mailto:[EMAIL PROTECTED]
> Sent: Monday, May 16, 2005 3:58 PM
> To: CF-Talk
> Subject: Re: Javascript / Listbox Form Problem
>
> just out of curiousity...why not reference the 2nd list box directly
> rather than try and manipulate a hidden form field?
>
> On 5/16/05, Paul Henderson <[EMAIL PROTECTED]> wrote:
> > I'm trying to allow a user to select items from one listbox and add them
> to
> > a second list box, once the form is submitted the Javascript should set
> the
> > value of hdnThemes to all the items entered into the second list box
> > (lbxSelectedTheme), but of course that is not happening. Any ideas whats
> > wrong with the below code or do I need a new approach? Unfortunately
since
> > taking over this project I have no way of reaching the orginal
programmer
> > and my javascript skills need some major improvement!
> >
> >  > ENCTYPE="multipart/form-data" action="addimge.cfm?Upload=Yes"
> > onSubmit="return VerifyData();">
> >
> > 
> >
> > 
> > OptionA
> > OptionB
> > OptionC
> > OptionD
> > OptionE
> > /select>
> >
> >   > onClick="AddTheme();>
> > (The addTheme function is working fine, so I ommitted it to mimimize
your
> > reading)
> >
> > 
> > 
> > 
> >
> >  
> > // Get selected themes
> > for (i=1; i< document.frmImageAdm.lbxSelectedTheme.length; i++) {
> > if (vThemes == "")  {
> > vThemes = document.frmImageAdm.lbxSelectedTheme.options[i].value
> > } else {
> > vThemes = vThemes + "," +
> > document.frmImageAdm.lbxSelectedTheme.options[i].value
> > }
> > }
> > document.frmImageAdm.hdnThemes.value = vThemes
> >
> > Looks like it should be fine, but when I reference Form.hdnThemes it is
> > still NULL?
> >
> > Thanks!
> > -Paul
> >
> >
>
>



~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:206809
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Javascript / Listbox Form Problem

2005-05-16 Thread Paul Henderson
Thanks Charlie...

I would reference the 2nd listbox it's self if I knew how? I'm not sure how
I can reference the elements of the 2nd list box without them actualy being
highlighted or selected when the form is submitted? Please let me know if
you know how to do this, if not I'll try and figure out how to fix that
javascript loop.

Thanks again.


-Original Message-
From: Charlie Griefer [mailto:[EMAIL PROTECTED]
Sent: Monday, May 16, 2005 3:58 PM
To: CF-Talk
Subject: Re: Javascript / Listbox Form Problem


just out of curiousity...why not reference the 2nd list box directly
rather than try and manipulate a hidden form field?

On 5/16/05, Paul Henderson <[EMAIL PROTECTED]> wrote:
> I'm trying to allow a user to select items from one listbox and add them
to
> a second list box, once the form is submitted the Javascript should set
the
> value of hdnThemes to all the items entered into the second list box
> (lbxSelectedTheme), but of course that is not happening. Any ideas whats
> wrong with the below code or do I need a new approach? Unfortunately since
> taking over this project I have no way of reaching the orginal programmer
> and my javascript skills need some major improvement!
>
>  ENCTYPE="multipart/form-data" action="addimge.cfm?Upload=Yes"
> onSubmit="return VerifyData();">
>
> 
>
> 
> OptionA
> OptionB
> OptionC
> OptionD
> OptionE
> /select>
>
>   onClick="AddTheme();>
> (The addTheme function is working fine, so I ommitted it to mimimize your
> reading)
>
> 
> 
> 
>
>  
> // Get selected themes
> for (i=1; i< document.frmImageAdm.lbxSelectedTheme.length; i++) {
> if (vThemes == "")  {
> vThemes = document.frmImageAdm.lbxSelectedTheme.options[i].value
> } else {
> vThemes = vThemes + "," +
> document.frmImageAdm.lbxSelectedTheme.options[i].value
> }
> }
> document.frmImageAdm.hdnThemes.value = vThemes
>
> Looks like it should be fine, but when I reference Form.hdnThemes it is
> still NULL?
>
> Thanks!
> -Paul
>
>



~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:206792
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Javascript / Listbox Form Problem

2005-05-16 Thread Paul Henderson
I'm trying to allow a user to select items from one listbox and add them to
a second list box, once the form is submitted the Javascript should set the
value of hdnThemes to all the items entered into the second list box
(lbxSelectedTheme), but of course that is not happening. Any ideas whats
wrong with the below code or do I need a new approach? Unfortunately since
taking over this project I have no way of reaching the orginal programmer
and my javascript skills need some major improvement!






OptionA
OptionB
OptionC
OptionD
OptionE
/select>

 



 
// Get selected themes
for (i=1; i< document.frmImageAdm.lbxSelectedTheme.length; i++) {
if (vThemes == "")  {
vThemes = document.frmImageAdm.lbxSelectedTheme.options[i].value
} else {
vThemes = vThemes + "," +
document.frmImageAdm.lbxSelectedTheme.options[i].value
}
}
document.frmImageAdm.hdnThemes.value = vThemes

Looks like it should be fine, but when I reference Form.hdnThemes it is
still NULL?

Thanks!
-Paul








~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:206787
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Looped cfform unique variable names?

2005-04-13 Thread Paul Henderson
Thanks guys, now I can stop banging my head against the wall.

-Original Message-
From: Dave Watts [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 13, 2005 1:22 PM
To: CF-Talk
Subject: RE: Looped cfform unique variable names?


> Maybe I'm going about this the wrong way but, I'm building a
> shopping cart and for the checkout page I've looped a cfform
> because for each item the user has to specify the same 3
> values, for example Resolution.
>
> Note the textbox includes the looped ItemNum in the name to
> make it's name unique.
>
> 
>
> My problem is on the submit page, how do I reference
> Form.Resolution001 (which is really
> #Form.ResolutionGetItems.ItemNum#),  and so on without
> getting a syntax error? Can I use something other than #s
> around the inside variable?
>
> I basically need to know the syntax to reference a variable
> that has another variable built into the name, if that makes
> any sense?

In your action page, you can reference this:

Form["Resolution" & GetItems.ItemNum]

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!




~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:202614
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Looped cfform unique variable names?

2005-04-13 Thread Paul Henderson
Maybe I'm going about this the wrong way but, I'm building a shopping cart
and for the checkout page I've looped a cfform because for each item the
user has to specify the same 3 values, for example Resolution.

Note the textbox includes the looped ItemNum in the name to make it's name
unique.



My problem is on the submit page, how do I reference Form.Resolution001
(which is really #Form.ResolutionGetItems.ItemNum#),  and so on without
getting a syntax error? Can I use something other than #s around the inside
variable?

I basically need to know the syntax to reference a variable that has another
variable built into the name, if that makes any sense?

Any ideas?

Thanks
-Paul


~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:202601
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Session Var Causing Paging Cannot be Displayed?

2005-03-31 Thread Paul Henderson
Even tried it without the Session Variables, same problem...I'm guessing its
a damn IE issue but, I've noticed in on some PCs running ie6.0, but not
othersweird!!




-Original Message-----
From: Paul Henderson [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 31, 2005 5:48 PM
To: CF-Talk
Subject: Session Var Causing Paging Cannot be Displayed?


I've designed a simple image search engine but when a user views the details
page and clicks back to see the results again they will sometimes receive a
"Page cannot be displayed error" but if they refresh the page it displays
fine.

The results page does you session variables to specify the startrow/endrow
of the returns...this problem doesn't happen on all browsers or all the
time, I've changed around the browser settings (security/privacy) but the
problem still seems to come and go?? Any  ideas? Maybe I should avoid using
Session variables in this case?

Thanks
-Paul




~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:201098
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Session Var Causing Paging Cannot be Displayed?

2005-03-31 Thread Paul Henderson
I've designed a simple image search engine but when a user views the details
page and clicks back to see the results again they will sometimes receive a
"Page cannot be displayed error" but if they refresh the page it displays
fine.

The results page does you session variables to specify the startrow/endrow
of the returns...this problem doesn't happen on all browsers or all the
time, I've changed around the browser settings (security/privacy) but the
problem still seems to come and go?? Any  ideas? Maybe I should avoid using
Session variables in this case?

Thanks
-Paul


~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:201094
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Get jpg pixel dimensions?

2005-03-31 Thread Paul Henderson
Thanks for getting rid of my headache Bryan!

-Paul

-Original Message-
From: Bryan Stevenson [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 31, 2005 4:51 PM
To: CF-Talk
Subject: Re: Get jpg pixel dimensions?


Ask and ye shall receive ;-)  Hope it does the trick!

  
  













  

Bryan Stevenson B.Comm.
VP & Director of E-Commerce Development
Electric Edge Systems Group Inc.
phone: 250.480.0642
fax: 250.480.1264
cell: 250.920.8830
e-mail: [EMAIL PROTECTED]
web: www.electricedgesystems.com




~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:201079
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Get jpg pixel dimensions?

2005-03-31 Thread Paul Henderson
Bryan...I can't seem to find your posted code, would it be easy for you to
post again, or any other ideas as to how I can find it in the archvies?

Thanks for the help.
-Paul

-Original Message-
From: Bryan Stevenson [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 31, 2005 3:09 PM
To: CF-Talk
Subject: Re: Get jpg pixel dimensions?


search the archives for my name and ImageSize...or cffunction (hope those
terms will work..I've posted the code at least twice)..you'll find my
function(s) for geting image dimensions & thumbnailing

HTH

Cheers

Bryan Stevenson B.Comm.
VP & Director of E-Commerce Development
Electric Edge Systems Group Inc.
phone: 250.480.0642
fax: 250.480.1264
cell: 250.920.8830
e-mail: [EMAIL PROTECTED]
web: www.electricedgesystems.com
- Original Message -
From: "Paul Henderson" <[EMAIL PROTECTED]>
To: "CF-Talk" 
Sent: Thursday, March 31, 2005 12:08 PM
Subject: Get jpg pixel dimensions?


> I'm working with a database of images that are all sorts of different
> sizes,
> does anyone know of a cf command or anyway to retrieve the actual width
> and
> height of a specified jpg?
>
> Thanks!
> -Paul
>
>
>



~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:201075
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Get jpg pixel dimensions?

2005-03-31 Thread Paul Henderson
I'm working with a database of images that are all sorts of different sizes,
does anyone know of a cf command or anyway to retrieve the actual width and
height of a specified jpg?

Thanks!
-Paul


~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:201042
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Trigger query without a page Reload?

2005-03-30 Thread Paul Henderson
Not sure if this is possible or not...

Can I trigger a query or add to a List without having to reload the entire
..cfm page on the client's end? Maybe with a cfform?

The user will be looking at a list of items, I'd like them to be able to add
an item to a cart, either with a query or List,  without having to actually
reload the entire page.

Any ideas?

Thanks
-Paul



~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:200777
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: How to Check if 1st character is a quote?

2005-03-28 Thread Paul Henderson
Yup, that works thanks!

-Original Message-
From: Dave Carabetta [mailto:[EMAIL PROTECTED]
Sent: Monday, March 28, 2005 2:13 PM
To: CF-Talk
Subject: Re: How to Check if 1st character is a quote?


On Mon, 28 Mar 2005 14:09:55 -0500, Paul Henderson <[EMAIL PROTECTED]>
wrote:
> I want to run a simple check to see if a string's 1st character is an open
> quote ("), usually I would try something like:
>
> 
>
> but if x = " (quote) I will get a syntax error, how can I get around this?
>

Couldn't you just do:



(The double quote is surrounding by single quotes rather than another
set of double quotes).

Regards,
Dave.



~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:200254
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


How to Check if 1st character is a quote?

2005-03-28 Thread Paul Henderson
I want to run a simple check to see if a string's 1st character is an open
quote ("), usually I would try something like:



but if x = " (quote) I will get a syntax error, how can I get around this?

Thanks for the help.
-Paul


~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:200247
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Seperate a Form Text Variable into Multiple Variables?

2005-03-22 Thread Paul Henderson
This should be fairly simple but I'm drawing a blank. How do I divide a form
variable into multiple variables based on spacing?

For example, say a submitted text form variable's value is "blue sky" what
would be the easiest way to seperate this into two variables named Word1 and
Word2 with Word1's value set to "blue" and Word2's value set to "sky"?

Any ideas are appreciated.

Thanks
-Paul


~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:199708
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54