Re: Help with REFind and Insert()

2012-02-27 Thread Brian Bradley

When I put in the found.pos[1]-1 I get You have attempted to dereference a 
scalar variable of type class java.lang.Integer as a structure with members  
Whatever that is supposed to mean?  

 Looks like my last reply was truncated.  (Out of curiosity, I am 
 resending a cfscript version to see if the lack of tags makes a 
 difference.)

  cfscript
     startAt = 1;
     for (i = 1; i = ArrayLen(getMatches); i++) {
         found = REFind(url.terms, DocContents, startAt, true);
         // insert *before* the matching string 
         DocContents = Insert( i, DocContents, found.pos[1]-1);
         // shift starting position forward to ensure we find a *new* 
 occurrence 
         startAt = found.pos[1] + found.
len

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


Re: Help with REFind and Insert()

2012-02-27 Thread Brian Bradley

That did get rid of the error but now it isn't inserting anything.  It appears 
to be ignoring the statement altogether.  

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


Help with REFind and Insert()

2012-02-24 Thread Brian Bradley

I've been banging my head on this all day.  All I want to do is put a number to 
the left of each word that I find in my document so that I can eventually turn 
those into links to jump from one match to the next.  I have it partially 
working.  Here is my code:

cfset getMatches = REMatch('#url.terms#', '#DocContents#') /

cfloop index=i from=1 to=#ArrayLen(getMatches)#

cfset DocContents = Insert(#i#, DocContents, REFind(#url.terms#, 
DocContents, 0)) /
/cfloop

What happens is, I put in coldfusion as a search term and it inserts the number 
in the wrong spot.  So it would be c1oldfusion, c2oldfusion, c3oldfusion, etc.  
Anyone ever experience this before? 

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


Re: Help with REFind and Insert()

2012-02-24 Thread Brian Bradley

Thanks Carl,
Now it just ignores it altogether and doesn't put any number in at all.  

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


Re: Help with REFind and Insert()

2012-02-24 Thread Brian Bradley

So, any suggestions how to go about that?  I just want to highlight words in a 
searched document and allow the user to go to next and previous match in long 
documents.  I thought adding a a href=#uniqueNumber# would be a good way 
using an Insert function.  Now, I'm clueless on how to go about it.  

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


PDF in web.xml question

2011-09-30 Thread Brian Bradley

I use ColdFusion to run security for my site.  I put the html and htm in the 
web.xml file so that it runs through ColdFusion but when I added pdf files, it 
doesn't work.  The .cfm, .htm files in that directory get blocked by security 
but the .pdf came right up.  Anyone else ever run into this? 

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


IE timeout on large data sets

2010-04-29 Thread Brian Bradley

I have an application that is using a verity cfsearch tag and then doing a 
query of the query on the data to sort it.  The problem is large data sets are 
timing out in IE and FF before any results come up.  It seems there is a 
timeout function in IE that if it doesn't get a server response, it throws an 
error.  Anyone ever come up with a way to get large result sets to come out 
without the browser throwing a 'Page cannot be displayed' error. 

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


Re: IE timeout on large data sets

2010-04-29 Thread Brian Bradley

Yes, it doesn't seem to make any difference.  It tries for maybe 30 seconds and 
then just throws a 'Page cannot be displayed' error.  If I try the same query 
again, it instantly throws the error, if I use a different term with large 
results it tries again for 30 seconds and then throws the error.  

  did you try adding
 cfsetting requesttimeout=some-large-number-here
 at the top of the page?
 
 Azadi
 


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


Re: IE timeout on large data sets

2010-04-29 Thread Brian Bradley

Thanks for your help, it was a coding error.  We fixed it. 

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


Windows Security and html files

2010-04-19 Thread Brian Bradley

Running: MX 6.1
WINDOWS 2000 Server

I have configured to have ColdFusion process HTM and HTML pages and have 
pointed IIS to point .htm and .html files to the ColdFusion engine as well as 
updated the web.xml file.

The problem is, .html and .htm files won't bring up Windows security prompt to 
log in.  All of the .cfm do.  Any idea why this stop working?  Thanks. 

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


Easy application question

2010-04-12 Thread Brian Bradley

I think I misunderstand how to use application.cfm files.  I have a 
application.cfm file on the root and I set a group of session variables.  I 
have a folder off the root named products with an application.cfm file in it.  
It was my understanding that the root application.cfm would take precedence to 
the subfolder's application.cfm and could share variables to the 
application.cfm like it could any page in that folder.  But when I call a 
variable in the sub application.cfm file to the higher level application.cfm, I 
get variable is undefined error.  Is that just not possible to share variables 
among application.cfm files even if they are hierarchically below a higher 
application.cfm file or am I doing something else wrong?   

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


Strange things with MX 6.1

2010-03-04 Thread Brian Bradley

I am writing new security system for a site using MX 6.1.  I have it working 
fine.  User puts in their e-mail and password, the system looks up the user 
account, and redirects the user to the logged in site.  The problem is, the 
site is a frameset and in each frame at the top-left-corner is a  

I have seen this once in a great while but usually goes away when I leave and 
come back but this time it happens each time.  Anyone ever get this weird 
character that may know of a solution?  Thanks. 

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


Re: Strange things with MX 6.1

2010-03-04 Thread Brian Bradley

LOL!!! You are right.  Rookie mistake (ducks away in shame) - thanks. 

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


Variable scope

2009-10-19 Thread Brian Bradley

I am writing a security structure and have a session variable that is being set 
basically saying loggedIn=y at the root of the site.  In subfolders I have 
other application files looking for that variable but not able to find it.  I 
know that I can write a cookie but was wondering if anyone had any other ideas 
on how to get a variable that can be across applications without setting a 
cookie (afraid too many users don't allow for cookies)? 

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


Re: Variable scope

2009-10-19 Thread Brian Bradley

In the one off of the root - I name it login_app and it has a session variable 
named loggedIn.  In the contact folder (for example) the name of that 
application is contact_app and it is looking for the loggedIn variable.  If 
loggedIn exists, it lets the user access the pages in that directory, if it 
does not, it will redirect them to the logon page.  I am getting that loggedIn 
cannot be defined since it isn't technically part of the contact_app 
application.  I can still pull the value up in the contact folder from a file 
just not from the application file.  I thought that the directory structure 
plays a role and I can use variables as long as it goes from the root through 
the subdirectories, but I guess I am wrong.  I just am hoping to avoid cookies 
if possible.  Thanks. 

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


Re: Variable scope

2009-10-19 Thread Brian Bradley

The thing is, it is a HGE site - 30,000+ documents so some of it is secured 
and some of it isn't.  I figured it would be best at the directory (we are 
running Windows server) level to just decide which directories get application 
files that have security and which don't.  There are too many to map and I am 
afraid of server resources if I had to.  Also, we are in a position where we 
can't reorganize the ancient directory structure since we then would have to 
worry about 30,000+ documents with links breaking.  Glad this was put on me 
with a two month window.  ARGHH! 

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


Re: Variable scope

2009-10-19 Thread Brian Bradley

We have been using windows iis, etc. since 1999 and are trying to take more 
control since we now have so many bs membership types.  It is a crazy project 
that was just handed to me.  I think that I am just going to have to bite the 
bullet and use cookies to house the information and pass it on since there are 
going to be so many active applications.  Was hoping somehow there was 
something I was missing about the different variable scopes.


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


Cookie won't set

2009-06-19 Thread Brian Bradley

I am working with CFLOGIN and it is working the way I want it to but isn't 
setting the cookie.  Can anyone see why?

cfapplication name=Orders clientManagement=No sessionmanagement=Yes 
loginStorage=Session

cflogin
   cfif NOT IsDefined(cflogin)
  cfinclude template=dologin.cfm
  cfabort
   cfelse
  cfif cflogin.name IS  OR cflogin.password IS 
 cfoutput
H2You must enter text in both the User Name and Password 
fields/H2
 /cfoutput
 cfinclude template=dologin.cfm
 cfabort
  cfelse
  cfquery name=loginQuery dataSource=MySource
  SELECT *
  FROM loginTable
  INNER JOIN IndividualInformation on 
loginTable.counter=IndividualInformation.counter
  WHERE
 IndividualInformation.email = '#cflogin.name#'
 AND InternetPasswordHash = '#Hash(cflogin.password)#'
 /cfquery

 cfif loginQuery.Role NEQ 
cfloginuser name=#cflogin.name# Password = #cflogin.password#
   roles=#loginQuery.Role#
   cfcookie name=rememberMe value=test expires=never
 cfelse
cfoutput
   H2Your login information is not valid.br
   Please Try again/H2
/cfoutput
cfinclude template=dologin.cfm
cfabort
 /cfif
  /cfif
   /cfif
/cflogin 

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


Re: Cookie won't set

2009-06-19 Thread Brian Bradley

Tried putting setclientcookies=yes and loginStorage=cookie and that didn't 
work.  Also changed the language of cfif loginQuery.Role NEQ  to cfif 
loginQuery.Role is not 

None worked.  Still won't set the cookie.  Any other ideas? 

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


Re: Cookie won't set

2009-06-19 Thread Brian Bradley

MX 6.1

Brian,

What version of CF?

-Mark
 


Mark A. Kruger, CFG, MCSE
(402) 408-3733 ext 105
www.cfwebtools.com
www.coldfusionmuse.com
www.necfug.com

Tried putting setclientcookies=yes and loginStorage=cookie and that
didn't work.  Also changed the language of cfif loginQuery.Role NEQ  to
cfif loginQuery.Role is not 

None worked.  Still won't set the cookie.  Any other ideas? 

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


Re: Cookie won't set

2009-06-19 Thread Brian Bradley

Cookies are enabled.  I use them all over with our current site.  I am 
stumpted. 

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


Re: Cookie won't set

2009-06-19 Thread Brian Bradley

I don't define CFLOCATIOn but if I go to a page for the first time, lets say 
www.mysite.com/securedpage.cfm - it brings up the login page.  After I log in, 
it takes me to the securedpage.cfm without having to put a cflocation.  Here is 
my code again

cfapplication name=Orders clientManagement=No sessionmanagement=Yes 
loginStorage=Session

cflogin
   cfif NOT IsDefined(cflogin)
  cfinclude template=dologin.cfm
  cfabort
   cfelse
  cfif cflogin.name IS  OR cflogin.password IS 
 cfoutput
H2You must enter text in both the User Name and Password 
fields/H2
 /cfoutput
 cfinclude template=dologin.cfm
 cfabort
  cfelse
  cfquery name=loginQuery dataSource=MailSystem
  SELECT *
  FROM loginTable
  INNER JOIN IndividualInformation on 
loginTable.counter=IndividualInformation.counter
  WHERE
 IndividualInformation.email = '#cflogin.name#'
 AND InternetPasswordHash = '#Hash(cflogin.password)#'
 /cfquery

 cfif loginQuery.Role NEQ 
cfloginuser name=#cflogin.name# Password = #cflogin.password#
   roles=#loginQuery.Role#
   cfcookie name=rememberMe value=test expires=never
 cfelse
cfoutput
   H2Your login information is not valid.br
   Please Try again/H2
/cfoutput
cfinclude template=dologin.cfm
cfabort
 /cfif
  /cfif
   /cfif
/cflogin 

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


Re: Cookie won't set

2009-06-19 Thread Brian Bradley

that did set the a cookie but it didn't have much info in it:

CFID3828429www.mysite/153613099338243214406379731241530011654*CFTOKEN9991598www.mysite.cm/155125629308509198586*

Not the rememberMe with Test as a value.  Does that make sense to you? 

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


Re: Cookie won't set

2009-06-19 Thread Brian Bradley

When I do that, it just sets a cookie with cfid and cftoken but not the 
rememberMe cookie.  I stopped and started coldfusion and web services and 
completely logged out before trying. 

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


Re: Cookie won't set

2009-06-19 Thread Brian Bradley

Strangely, when I put the cfcookie tag outside the cflogin tags it sets it no 
problem so there isn't an issue with the application file not being able to set 
it.  Is setting a cfcookie inside cflogin tags allowed by cf? 

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


Re: Cookie won't set

2009-06-19 Thread Brian Bradley

I am able to get it to work when not in cflogin but that kind of defeats the 
purpose since I want to have a 'Remember me' function on the form when they log 
in.  

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


Re: IE Cflogin

2009-05-15 Thread Brian Bradley

To make sure that I have this down (I have to present this today).  Using 
cflogin, the idletimeout is 30 minutes so IE will keep the user logged in for 
the 30 minutes or whatever time I adjust it to.  I can set a cookie that will 
keep the user logged in indefinitely with if statements, etc.  

What are the advantages of using cflogin and cfloginuser as opposed to just 
doing a database query and setting a session variable just by using a form and 
cfset - it would seem to me that I would have more control over timeouts, etc. 
that way?  Is there increased security behind the cflogin tag? 

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


Re: IE Cflogin

2009-05-15 Thread Brian Bradley

To make sure that I have this down (I have to present this today).  Using 
cflogin, the idletimeout is 30 minutes so IE will keep the user logged in for 
the 30 minutes or whatever time I adjust it to.  I can set a cookie that will 
keep the user logged in indefinitely with if statements, etc.  

What are the advantages of using cflogin and cfloginuser as opposed to just 
doing a database query and setting a session variable just by using a form and 
cfset? 

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


IE Cflogin

2009-05-14 Thread Brian Bradley

I have an application file that requires users to login prior to accessing any 
of the pages in the directory.  The first time that a user uses IE, it works 
great and they have to log in.  However, it doesn't seem to log them out when 
they close the browser. The next time they open the browser, and go to that 
page, they do not need to log in again.  I figured that a session would end 
when the browser closes.  It works fine in FireFox and Chrome.  Do I need to 
program that somehow?  Thanks in advance.

CODE:
cfapplication name=Orders sessionmanagement=Yes loginStorage=Session


cflogin
   cfif NOT IsDefined(cflogin)
  cfinclude template=dologin.cfm
  cfabort
   cfelse
  cfif cflogin.name IS  OR cflogin.password IS 
 cfoutput
H2You must enter text in both the User Name and Password 
fields/H2
 /cfoutput
 cfinclude template=dologin.cfm
 cfabort
  cfelse
  cfquery name=loginQuery dataSource=MailSystem
  SELECT *
  FROM loginTable
  INNER JOIN IndividualInformation on 
loginTable.counter=IndividualInformation.counter
  WHERE
 IndividualInformation.email = '#cflogin.name#'
 AND InternetPasswordHash = '#Hash(cflogin.password)#'
 /cfquery

 cfif loginQuery.Role NEQ 
cfloginuser name=#cflogin.name# Password = #cflogin.password#
   roles=#loginQuery.Role#
 cfelse
cfoutput
   H2Your login information is not valid.br
   Please Try again/H2
/cfoutput
cfinclude template=dologin.cfm
cfabort
 /cfif
  /cfif
   /cfif
/cflogin



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


Re: IE Cflogin

2009-05-14 Thread Brian Bradley

I have Use J2EE Session Variables checked, as well as Enable Application 
Variables and Enable Session Variables.  I don't have any code dealing with 
cookies at this point.  Perhaps I have to manipulate the default and maximum 
timeout for the Application variables in the administrator?  BTW, I am running 
MX 6.1.  Thanks for your help. 

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


Re: IE Cflogin

2009-05-14 Thread Brian Bradley

IE7  IE8 are both doing it.  

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


Re: IE Cflogin

2009-05-14 Thread Brian Bradley

I am confused though.  Why is IE ignoring the isDefined?  I am saying 
isDefined(login) but if that variable hasn't been set why is it ignoring it.  I 
must be missing something... 

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


CFExecute question

2008-01-30 Thread Brian Bradley
I thought it would be nice to have a ColdFusion frontend for mame.  However, I 
cannot for the life of me get the cfexecute tag to work.  If I type in:
c:\inetpub\wwwroot\mame\mame game.zip in the command prompt through windows it 
launches perfectly well.  When I use 
cfexecute name =C:\Inetpub\wwwroot\mame\mame
arguments=C:\Inetpub\wwwroot\mame\roms\game.zip
/cfexecute

or

cfexecute name =C:\Inetpub\wwwroot\mame\mame
arguments=game.zip
/cfexecute

or

cfexecute name =C:\Inetpub\wwwroot\mame\mame.exe
arguments=game.zip
/cfexecute
It begins to load but then just closes.  Any ideas, I thought cfexecute was 
supposed to work the same way as the command prompt.  Thanks. 

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


Re: CFExecute question

2008-01-30 Thread Brian Bradley
I use the cfexecute tag to load the NES emulator and the Sega Genesis emulator 
in the exact same fashion, wouldn't that give me the same restrictions then?  
Thanks.

 Any ideas, I thought cfexecute was supposed to work the 
 same way as the command prompt.

It does, more or less. However, what you're trying to do simply won't work.
You're using one user account, and your CF server is running under another
user account. If I had an account on your computer, and I logged into it
using Remote Desktop and ran MAME, you wouldn't see it on your screen.



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


Re: CFExecute question

2008-01-30 Thread Brian Bradley
Actually I installed CF server as a localhost on an old machine and use it as a 
frontend for NES, genesis, TG16, gb, and now trying mame.  All the games are in 
a table that loads per system and when the game is clicked it launches the 
emulator on the local machine.  It isn't used over the web.  Since I like to 
use the web also through the same local page, I can play games, listen to 
music, and check my e-mail all from a single coldFusion page.  With a few 
tweaks to windows, it actually has the appearance that there isn't an operating 
system, just my IE page that has my five or six options.  

Great for parties BTW.  Just can't figure out why mame won't load.  I have 
given CF server admin priviledges across the board.

Brian,

Dave's right but I'm curious.  What is it that you are trying to do here?
Run mame on the web server?  How would that work exactly? A guy goes to your
web site and then clicks on a link that launches mame on the web server
Ok ... Now what?  How does he interact with it? If you are trying to embed
the game into a browser window then I don't think you can do that... There
is no mame object plugin (like flash or the jvm) ... Is there?

-Mark

Mark A. Kruger, CFG, MCSE
(402) 408-3733 ext 105
www.cfwebtools.com
www.coldfusionmuse.com
www.necfug.com




 Any ideas, I thought cfexecute was supposed to work the same way as 
 the command prompt.

It does, more or less. However, what you're trying to do simply won't work.
You're using one user account, and your CF server is running under another
user account. If I had an account on your computer, and I logged into it
using Remote Desktop and ran MAME, you wouldn't see it on your screen.

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! 

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


Joystick/controller

2007-11-12 Thread Brian Bradley
I was wondering if anyone has any idea how to go about writing a program in 
ColdFusion that will enable a user to use a joystick to control an object on 
screen (for example pushing up on the joystick would move up an item in a 
list).  I don't know if it is possible with ColdFusion (I think you can do it 
in .net).  Thanks. 

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


Need some help putting multiple strings in a db

2007-08-13 Thread Brian Bradley
I am converting our content management system (that we bought years ago) into 
coldfusion using verity and sql.  There are about 25,000 files that need to be 
converted.  What I would need to do is create a tool that will go through the 
files and put the following:

spansubject: some text/span

into a sql table.  I started with a loop over all the files in the directory 
and can use rereplace to remove the span tags.  Just not sure how I can go 
about getting the data (written as some text above) out of each file and 
putting in the database - some of these individual files are 60-100 pages long. 
 Anyone have any suggestions?  Thanks. 

~|
Create robust enterprise, web RIAs.
Upgrade to ColdFusion 8 and integrate with Adobe Flex
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:286088
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 with CFLDAP

2005-09-02 Thread Brian Bradley
Sorry, I am totally new to this tag and this function (had a tag that worked 
perfectly well in CF 5 but freezes each time in MX6.1).

According to your thinking, do I need to query Active Directory in order to get 
the group's and then add?  Do I need to add code to the dn and attributes 
sections of the tag?  Thanks for your help.  

cfldap action=add
dn=cn=TestAP2,cn=Users,dc=domain,dc=org
attributes=objectClass=top,person,organizationalPerson,user;cn=Test
AP2;
sn=TestAP2;givenName=TestAP2;sAMAccountName=TestAP2
delimiter=;
separator=,
server=localhost
port=389
username=me
password=you

You need to add the user's DN to the group's members attribute.  From
what I remember, you have to get the current group's members, append the
new user's DN, then set all of them back to the group's member
attribute.

In other words (pseudo-code):

Cfset currentMembers = group.members;
Cfset newMembers = currentMembers + newUser.DN;

Then, cfldap modify; set group's member attribute = newMembers.

If you are on a Windows platform, you could use a VB COM object.  Or, if
you are saavy on Java, you might be able to do this with Java's objects.

M!ke

-Original Message-
From: Brian Bradley [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 01, 2005 12:51 PM
To: CF-Talk
Subject: Help with CFLDAP

I have been fighting with this for a few days and I can get a user added
to Active Directory but I cannot get their group (Member of) to be
added.  Can someone help?
 
cfldap action=add
dn=cn=TestAP2,cn=Users,dc=domain,dc=org
attributes=objectClass=top,person,organizationalPerson,user;cn=Test
AP2;
sn=TestAP2;givenName=TestAP2;sAMAccountName=TestAP2;group=ma
in
members
delimiter=;
separator=,
server=localhost
port=389
username=me
password=you

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


Help with CFLDAP

2005-09-01 Thread Brian Bradley
I have been fighting with this for a few days and I can get a user added
to Active Directory but I cannot get their group (Member of) to be
added.  Can someone help?
 
cfldap action=add
dn=cn=TestAP2,cn=Users,dc=domain,dc=org
attributes=objectClass=top,person,organizationalPerson,user;cn=TestAP2;
sn=TestAP2;givenName=TestAP2;sAMAccountName=TestAP2;group=main
members
delimiter=;
separator=,
server=localhost
port=389
username=me
password=you





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