Re: Report Building? Any Options or Solutions

2007-04-13 Thread Andrew Scott
Hmm, that sounds complicated. When you say RB, do you mean CFRB or something
else?

And what are the sub reports for, in other words do they run concurently or
do they take certain reality space? If they take reality space then you
would need to look into a grow option, but my experience with sub reports is
that the sub report defines the space required.

It sounds like that the Report is not designed in the most efficent manner
for what you are trying to achieve.



On 4/13/07, Graham Pearson [EMAIL PROTECTED] wrote:

 I am working with RB and have ran into a problem which I am unable to
 solve. My Report has 6 SubReports which I would like displayed one right
 under the other however I as a developer do not know how much space to
 give each subreport and this report will be used as documentation within
 the educational market. At the present time I have text within various
 subreports overlapping and would like to know if this can be solved if
 it can not be solved, is their anything in existence that can create
 semi-complex reports which will be displayed via the web. The
 educational agency that this application is for can not afford Crystal
 Reports so moving to that is out of the question.

 What are people doing to create professional semi-complex reports for
 their applications.


 --
 This message has been scanned for viruses and
 dangerous content by our email content filter.


 

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


Re: cf_htmlemail

2007-04-13 Thread Richard Cooper
Thanks, thought webmail might be an issue.

Richard

~|
Deploy Web Applications Quickly across the enterprise with ColdFusion MX7  
Flex 2
Free Trial 
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJU

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


Re: Report Building? Any Options or Solutions

2007-04-13 Thread Graham Pearson
The RB is CFRB. The Report I am trying to generate is one where a
principal in a school will select a date range and a listing of teachers
along with a list of objectives that they would like to run this summary
report on. I then create the necessary queries to pull in all audits
that fall within the date range, and have been performed on the list of
teachers. I then perform another query on the previous query to create a
query of only the audits which the principal would like to see
objectives on. So right before the report is displayed on the screen I
have a query which has the School Public Data, 3 Form Variables which
are the Selected Teachers, Start Date Range, End Date Range and a Query
which lists all objectives with one objective per row that has an ID
number, Category Name like Students Participation, Score0 through
Score5, Total and Average. Now this list can be 1 Row or 100 Rows as it
all depends on the principal and what they have selected.

In my previous attempt at this report through CFRB Each of my subreports
were one objective which I passed into the primary report as a param.
This did work however if one Objective had 15 records the objective
which was next would overlap on some of this one objectives. In the CFRB
I tried all of the options to find a way that if I made each of the
subreports 1.000in and had 8 subreports included on this main report for
each of the objective areas, and one of the objective areas had 25
records to display, it would be nice for that subreport to display fully
then the next subreport would start at the end of the previous subreport
instead of starting at the inch location in the properties of that
subreport.

This report might not be designed in an efficient manner as this is the
first time in history that I have needed to generate what I would call a
professional type report.

 Hmm, that sounds complicated. When you say RB, do you mean CFRB or something
 else?

 And what are the sub reports for, in other words do they run concurently or
 do they take certain reality space? If they take reality space then you
 would need to look into a grow option, but my experience with sub reports is
 that the sub report defines the space required.

 It sounds like that the Report is not designed in the most efficent manner
 for what you are trying to achieve.



 On 4/13/07, Graham Pearson [EMAIL PROTECTED] wrote:
   
 I am working with RB and have ran into a problem which I am unable to
 solve. My Report has 6 SubReports which I would like displayed one right
 under the other however I as a developer do not know how much space to
 give each subreport and this report will be used as documentation within
 the educational market. At the present time I have text within various
 subreports overlapping and would like to know if this can be solved if
 it can not be solved, is their anything in existence that can create
 semi-complex reports which will be displayed via the web. The
 educational agency that this application is for can not afford Crystal
 Reports so moving to that is out of the question.

 What are people doing to create professional semi-complex reports for
 their applications.


 --
 This message has been scanned for viruses and
 dangerous content by our email content filter.



 

 

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


WebService Issue w/Special Characters being sent to XMLParse

2007-04-13 Thread James Blaha
All,

I have an issue using a web service that passes back XML and parsing its data 
because an element could have a special character in it i.e. “”. How do I 
clean the XML before passing it to the XMLParse function?

Regards,
Jim Blaha

XML Being Passed back example: stock.xml

?xml version=1.0 encoding=utf-8 ? 
string xmlns=http://www.webserviceX.NET/;
StockQuotes
Stock
NameATT INC./Name
/Stock
/StockQuotes
/string

CF Code to Read File:

CFFILE ACTION=READ FILE=c:\stock.xml VARIABLE=GotTheStockInfo

cfset parsedStockInfo = XMLParse(GotTheStockInfo)

cfdump expand=yes var=#parsedStockInfo# label=MyStockInfohr

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


Calling a Coldfusion Variable From a .js File

2007-04-13 Thread Byte Me
Does anyone know how to call a Coldfusion variable from a .js file, without 
converting the variable in a .cfm file?

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


Re: WebService Issue w/Special Characters being sent to XMLParse

2007-04-13 Thread Robertson-Ravo, Neil (RX)
Wrap the value within XMLFormat()








This e-mail is from Reed Exhibitions (Gateway House, 28 The Quadrant,
Richmond, Surrey, TW9 1DN, United Kingdom), a division of Reed Business,
Registered in England, Number 678540.  It contains information which is
confidential and may also be privileged.  It is for the exclusive use of the
intended recipient(s).  If you are not the intended recipient(s) please note
that any form of distribution, copying or use of this communication or the
information in it is strictly prohibited and may be unlawful.  If you have
received this communication in error please return it to the sender or call
our switchboard on +44 (0) 20 89107910.  The opinions expressed within this
communication are not necessarily those expressed by Reed Exhibitions. 
Visit our website at http://www.reedexpo.com

-Original Message-
From: James Blaha
To: CF-Talk
Sent: Fri Apr 13 11:35:54 2007
Subject: WebService Issue w/Special Characters being sent to XMLParse

All,

I have an issue using a web service that passes back XML and parsing its
data because an element could have a special character in it i.e.
âEURoeâEUR. How do I clean the XML before passing it to the XMLParse
function?

Regards,
Jim Blaha

XML Being Passed back example: stock.xml

?xml version=1.0 encoding=utf-8 ? 
string xmlns=http://www.webserviceX.NET/;
StockQuotes
Stock
NameATT INC./Name
/Stock
/StockQuotes
/string

CF Code to Read File:

CFFILE ACTION=READ FILE=c:\stock.xml VARIABLE=GotTheStockInfo

cfset parsedStockInfo = XMLParse(GotTheStockInfo)

cfdump expand=yes var=#parsedStockInfo# label=MyStockInfohr



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


Re: Report Building? Any Options or Solutions

2007-04-13 Thread Andrew Scott
Ok the only solution as I stated would be to ue the option after importing
the sub report, would be to set it to can grow, that is what it is in CR but
not sure about CFRB as it crashes under Vista.

If all else fails you could look at iReport, aka Jasper Reports (free and
open source) and is what is embeded into CF MX. However you will have the
same problem, I would imagine.

The reason I asked about the design and whether it ran consecitvely or not
is that you could use a page break between each sub report.



On 4/13/07, Graham Pearson [EMAIL PROTECTED] wrote:

 The RB is CFRB. The Report I am trying to generate is one where a
 principal in a school will select a date range and a listing of teachers
 along with a list of objectives that they would like to run this summary
 report on. I then create the necessary queries to pull in all audits
 that fall within the date range, and have been performed on the list of
 teachers. I then perform another query on the previous query to create a
 query of only the audits which the principal would like to see
 objectives on. So right before the report is displayed on the screen I
 have a query which has the School Public Data, 3 Form Variables which
 are the Selected Teachers, Start Date Range, End Date Range and a Query
 which lists all objectives with one objective per row that has an ID
 number, Category Name like Students Participation, Score0 through
 Score5, Total and Average. Now this list can be 1 Row or 100 Rows as it
 all depends on the principal and what they have selected.

 In my previous attempt at this report through CFRB Each of my subreports
 were one objective which I passed into the primary report as a param.
 This did work however if one Objective had 15 records the objective
 which was next would overlap on some of this one objectives. In the CFRB
 I tried all of the options to find a way that if I made each of the
 subreports 1.000in and had 8 subreports included on this main report for
 each of the objective areas, and one of the objective areas had 25
 records to display, it would be nice for that subreport to display fully
 then the next subreport would start at the end of the previous subreport
 instead of starting at the inch location in the properties of that
 subreport.

 This report might not be designed in an efficient manner as this is the
 first time in history that I have needed to generate what I would call a
 professional type report.

  Hmm, that sounds complicated. When you say RB, do you mean CFRB or
 something
  else?
 
  And what are the sub reports for, in other words do they run concurently
 or
  do they take certain reality space? If they take reality space then you
  would need to look into a grow option, but my experience with sub
 reports is
  that the sub report defines the space required.
 
  It sounds like that the Report is not designed in the most efficent
 manner
  for what you are trying to achieve.
 
 
 
  On 4/13/07, Graham Pearson [EMAIL PROTECTED] wrote:
 
  I am working with RB and have ran into a problem which I am unable to
  solve. My Report has 6 SubReports which I would like displayed one
 right
  under the other however I as a developer do not know how much space to
  give each subreport and this report will be used as documentation
 within
  the educational market. At the present time I have text within various
  subreports overlapping and would like to know if this can be solved if
  it can not be solved, is their anything in existence that can create
  semi-complex reports which will be displayed via the web. The
  educational agency that this application is for can not afford Crystal
  Reports so moving to that is out of the question.
 
  What are people doing to create professional semi-complex reports for
  their applications.
 
 
  --
  This message has been scanned for viruses and
  dangerous content by our email content filter.
 
 
 
 
 
 

 

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


Re: Is there anything inherently wrong with this Application.cfm file?

2007-04-13 Thread Tom Chiverton
On Thursday 12 Apr 2007, Che Vilnonis wrote:
 !--- determine the domain name. ---
 cfset strSiteUrl = LCase(Replace(cgi.server_name, www., , ALL)) /

You can save doing this work each and every call by giving move than one item 
in each case.

 cfif not isDefined(application.settings) or isDefined(url.reinit)

You might want to check 'reinit' has some special secret value here.
Also, start a lock.

   cfset application.init = true

And end the lock.

Nothing too bad.

-- 
Tom Chiverton
Helping to administratively cluster seamless architectures
on: http://thefalken.livejournal.com



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 8008.

For more information about Halliwells LLP visit www.halliwells.com.


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


Re: WebService Issue w/Special Characters being sent to XMLParse

2007-04-13 Thread James Blaha
Thanks for the post!

It still doesnt work with:

cfset parsedStockInfo = XMLParse(XMLFORMAT(GotTheStockInfo))

Any ideas?

~|
Deploy Web Applications Quickly across the enterprise with ColdFusion MX7  
Flex 2
Free Trial 
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJU

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


Re: Is there anything inherently wrong with this Application.cfm file?

2007-04-13 Thread Andrew Scott
I did something similar for a client. But I did it differently.

First port of call is identify the doman, then call the database (in my
case site settings are part of the CMS system we designed) then that would
return a struct for the site.

So the code looked something like this in the Application.cfm /
Application.cfc

cfset appSettings = CreateObject('component','com.aegeon.websiteManager')
/
cfapplication name=#appSettings# ... /




On 4/13/07, Che Vilnonis [EMAIL PROTECTED] wrote:

 Is there anything inherently wrong with this Application.cfm file? Its for
 a
 shared CF hosting account w/ multiple domains (around 10 or so). Could it
 be
 improved? FWIW, it does work. :)

 My goal is to write my code so that I can host many related domains with
 one
 set of core code. Only ini files, stylesheets, images and site
 navigation
 includes will change from site to site. These site aren't very
 complicated,
 so there is no great need for a MVC type app. And yes, much of the code
 below was modified from Ray Camden's original work. :)

 Thanks for any input... Che

 cfsilent

 !--- determine the domain name. ---
 cfset strSiteUrl = LCase(Replace(cgi.server_name, www., , ALL)) /

 cfswitch expression=#strSiteUrl#
cfcase value=buickpartspage.com
cfapplication
name=BuickPartsPage
applicationtimeout=#CreateTimeSpan( 1, 0, 0, 0 )#
sessionmanagement=false
setclientcookies=true/
/cfcase

cfcase value=pontiacpartspage.com
cfapplication
name=PontiacPartsPage
applicationtimeout=#CreateTimeSpan( 1, 0, 0, 0 )#
sessionmanagement=false
setclientcookies=true/
/cfcase

cfdefaultcase
cfapplication
name=ThePartsPages
applicationtimeout=#CreateTimeSpan( 1, 0, 0, 0 )#
sessionmanagement=false
setclientcookies=true/
/cfdefaultcase
 /cfswitch

 cfif not isDefined(application.settings) or isDefined(url.reinit)

!--- Clear the existing Application to make sure we don't have any
 old data. ---
cfset StructClear(application)

cfswitch expression=#strSiteUrl#
cfcase value=buickpartspage.com
cfset iniFile = expandPath(./ini/buick.ini.cfm)
 /
/cfcase
cfdefaultcase
cfset iniFile = expandPath(./ini/tpp.ini.cfm) /
/cfdefaultcase
/cfswitch

cfset sections = getProfileSections(iniFile)
cfset data = structNew()
cfif structKeyExists(sections, default)
cfloop index=key list=#sections.default#
cfset data[key] = getProfileString(iniFile,
 default, key)
/cfloop
cfset application.settings = data
cfelse
cfthrow message=Ini file has a missing default section!
/cfif

!--- load and init rss feed. other than writing results to a file,
 not sure how to cache results. ---
cfset application.settings.rssFeed = createObject(component,
 com.rss).getEntries(xmlData=application.settings.rssFeedURL)

!--- load and init flickr feed. let's grab only the latest 8
 photos. ---
cfset flickr = createobject(component, CFlickr.Flickr)
cfset flickr.init(application.settings.apikey,
 application.settings.secret)
cfset pi = flickr.getPhotosInterface()
cfset photoSearch = pi.search(text=classic buick,
 tag_mode=all,
 sort=date-posted-desc, per_page=12)
cfset application.settings.arrayPhotos = photoSearch.getPhotos()

!--- We are initialized :) ---
cfset application.init = true

 /cfif

 !--- cfsetting showdebugoutput=false ---

 /cfsilent


 

~|
Deploy Web Applications Quickly across the enterprise with ColdFusion MX7  
Flex 2
Free Trial 
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJU

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


RE: Is there anything inherently wrong with this Application.cfm file?

2007-04-13 Thread Peterson, Chris
I did something like this:

I have each site in a folder with its own application.cfc.  Each
individual site has:

cfcomponent extends=baseComponent

/cfcomponent

Anything custom I will stick as a method in the site's individual
application.cfc, otherwise they all extend a base .cfc and inherit its
methods.  I really love it for hit tracking and security layers, makes
it a cinch to apply styles or  google analytics to them all, and
centralized error handling is great =)

Just an idea!

Chris Peterson


On 4/13/07, Che Vilnonis [EMAIL PROTECTED] wrote:

 Is there anything inherently wrong with this Application.cfm file? Its

 for a shared CF hosting account w/ multiple domains (around 10 or so).

 Could it be improved? FWIW, it does work. :)

 My goal is to write my code so that I can host many related domains 
 with one set of core code. Only ini files, stylesheets, images and 
 site navigation includes will change from site to site. These site 
 aren't very complicated, so there is no great need for a MVC type app.

 And yes, much of the code below was modified from Ray Camden's 
 original work. :)

 Thanks for any input... Che

 cfsilent

 !--- determine the domain name. ---
 cfset strSiteUrl = LCase(Replace(cgi.server_name, www., , ALL))

 /

 cfswitch expression=#strSiteUrl#
cfcase value=buickpartspage.com
cfapplication
name=BuickPartsPage
applicationtimeout=#CreateTimeSpan( 1, 0, 0, 0
)#
sessionmanagement=false
setclientcookies=true/
/cfcase

cfcase value=pontiacpartspage.com
cfapplication
name=PontiacPartsPage
applicationtimeout=#CreateTimeSpan( 1, 0, 0, 0
)#
sessionmanagement=false
setclientcookies=true/
/cfcase

cfdefaultcase
cfapplication
name=ThePartsPages
applicationtimeout=#CreateTimeSpan( 1, 0, 0, 0
)#
sessionmanagement=false
setclientcookies=true/
/cfdefaultcase
 /cfswitch

 cfif not isDefined(application.settings) or 
 isDefined(url.reinit)

!--- Clear the existing Application to make sure we don't have

 any old data. ---
cfset StructClear(application)

cfswitch expression=#strSiteUrl#
cfcase value=buickpartspage.com
cfset iniFile = 
 expandPath(./ini/buick.ini.cfm) /
/cfcase
cfdefaultcase
cfset iniFile =
expandPath(./ini/tpp.ini.cfm) /
/cfdefaultcase
/cfswitch

cfset sections = getProfileSections(iniFile)
cfset data = structNew()
cfif structKeyExists(sections, default)
cfloop index=key list=#sections.default#
cfset data[key] = getProfileString(iniFile, 
 default, key)
/cfloop
cfset application.settings = data
cfelse
cfthrow message=Ini file has a missing default
section!
/cfif

!--- load and init rss feed. other than writing results to a 
 file, not sure how to cache results. ---
cfset application.settings.rssFeed = createObject(component,

 com.rss).getEntries(xmlData=application.settings.rssFeedURL)

!--- load and init flickr feed. let's grab only the latest 8 
 photos. ---
cfset flickr = createobject(component, CFlickr.Flickr)
cfset flickr.init(application.settings.apikey,
 application.settings.secret)
cfset pi = flickr.getPhotosInterface()
cfset photoSearch = pi.search(text=classic buick, 
 tag_mode=all, sort=date-posted-desc, per_page=12)
cfset application.settings.arrayPhotos = 
 photoSearch.getPhotos()

!--- We are initialized :) ---
cfset application.init = true

 /cfif

 !--- cfsetting showdebugoutput=false ---

 /cfsilent


 



~|
ColdFusion MX7 and Flex 2 
Build sales  marketing dashboard RIA’s for your business. Upgrade now
http://www.adobe.com/products/coldfusion/flex2?sdid=RVJT

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


Re: Calling a Coldfusion Variable From a .js File

2007-04-13 Thread James Holmes
If you don't want to write out the variable into JS from within the
..cfm template, you'll need to use AJAX to get the value instead.

On 4/13/07, Byte Me [EMAIL PROTECTED] wrote:
 Does anyone know how to call a Coldfusion variable from a .js file, without 
 converting the variable in a .cfm file?


-- 
mxAjax / CFAjax docs and other useful articles:
http://www.bifrost.com.au/blog/

~|
ColdFusion MX7 and Flex 2 
Build sales  marketing dashboard RIA’s for your business. Upgrade now
http://www.adobe.com/products/coldfusion/flex2?sdid=RVJT

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


Re: Is there anything inherently wrong with this Application.cfm file?

2007-04-13 Thread Andrew Scott
I guess it also depends on the requirements too.

With my solution, all the client needed to do was to register the domain and
setup the settings in the CMS system and no extra code from us. kind of
makes me redundant, but the client was charged heavily for that feature.



On 4/13/07, Peterson, Chris [EMAIL PROTECTED] wrote:

 I did something like this:

 I have each site in a folder with its own application.cfc.  Each
 individual site has:

 cfcomponent extends=baseComponent

 /cfcomponent

 Anything custom I will stick as a method in the site's individual
 application.cfc, otherwise they all extend a base .cfc and inherit its
 methods.  I really love it for hit tracking and security layers, makes
 it a cinch to apply styles or  google analytics to them all, and
 centralized error handling is great =)

 Just an idea!

 Chris Peterson


 On 4/13/07, Che Vilnonis [EMAIL PROTECTED] wrote:
 
  Is there anything inherently wrong with this Application.cfm file? Its

  for a shared CF hosting account w/ multiple domains (around 10 or so).

  Could it be improved? FWIW, it does work. :)
 
  My goal is to write my code so that I can host many related domains
  with one set of core code. Only ini files, stylesheets, images and
  site navigation includes will change from site to site. These site
  aren't very complicated, so there is no great need for a MVC type app.

  And yes, much of the code below was modified from Ray Camden's
  original work. :)
 
  Thanks for any input... Che
 
  cfsilent
 
  !--- determine the domain name. ---
  cfset strSiteUrl = LCase(Replace(cgi.server_name, www., , ALL))

  /
 
  cfswitch expression=#strSiteUrl#
 cfcase value=buickpartspage.com
 cfapplication
 name=BuickPartsPage
 applicationtimeout=#CreateTimeSpan( 1, 0, 0, 0
 )#
 sessionmanagement=false
 setclientcookies=true/
 /cfcase
 
 cfcase value=pontiacpartspage.com
 cfapplication
 name=PontiacPartsPage
 applicationtimeout=#CreateTimeSpan( 1, 0, 0, 0
 )#
 sessionmanagement=false
 setclientcookies=true/
 /cfcase
 
 cfdefaultcase
 cfapplication
 name=ThePartsPages
 applicationtimeout=#CreateTimeSpan( 1, 0, 0, 0
 )#
 sessionmanagement=false
 setclientcookies=true/
 /cfdefaultcase
  /cfswitch
 
  cfif not isDefined(application.settings) or
  isDefined(url.reinit)
 
 !--- Clear the existing Application to make sure we don't have

  any old data. ---
 cfset StructClear(application)
 
 cfswitch expression=#strSiteUrl#
 cfcase value=buickpartspage.com
 cfset iniFile =
  expandPath(./ini/buick.ini.cfm) /
 /cfcase
 cfdefaultcase
 cfset iniFile =
 expandPath(./ini/tpp.ini.cfm) /
 /cfdefaultcase
 /cfswitch
 
 cfset sections = getProfileSections(iniFile)
 cfset data = structNew()
 cfif structKeyExists(sections, default)
 cfloop index=key list=#sections.default#
 cfset data[key] = getProfileString(iniFile,
  default, key)
 /cfloop
 cfset application.settings = data
 cfelse
 cfthrow message=Ini file has a missing default
 section!
 /cfif
 
 !--- load and init rss feed. other than writing results to a
  file, not sure how to cache results. ---
 cfset application.settings.rssFeed = createObject(component,

  com.rss).getEntries(xmlData=application.settings.rssFeedURL)
 
 !--- load and init flickr feed. let's grab only the latest 8
  photos. ---
 cfset flickr = createobject(component, CFlickr.Flickr)
 cfset flickr.init(application.settings.apikey,
  application.settings.secret)
 cfset pi = flickr.getPhotosInterface()
 cfset photoSearch = pi.search(text=classic buick,
  tag_mode=all, sort=date-posted-desc, per_page=12)
 cfset application.settings.arrayPhotos =
  photoSearch.getPhotos()
 
 !--- We are initialized :) ---
 cfset application.init = true
 
  /cfif
 
  !--- cfsetting showdebugoutput=false ---
 
  /cfsilent
 
 
 



 

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


Re: Calling a Coldfusion Variable From a .js File

2007-04-13 Thread Andrew Scott
You will need to explain more on waht you want to do, if you processing the
page at runtime the #variable# will still work. However if it is already
processed and sitting on the client you will need to let us know what you
want to do, programs like DWR, ajaxCFC and CFJsonService all allow for
information to be returned back to the client to then do what you want to
do.

but your question is not specific enough to help you.



On 4/13/07, Byte Me [EMAIL PROTECTED] wrote:

 Does anyone know how to call a Coldfusion variable from a .js file,
 without converting the variable in a .cfm file?

 

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


Re: WebService Issue w/Special Characters being sent to XMLParse

2007-04-13 Thread Tom Chiverton
On Friday 13 Apr 2007, James Blaha wrote:
 I have an issue using a web service that passes back XML and parsing its
 data because an element could have a special character in it i.e. “”.
 How do I clean the XML before passing it to the XMLParse function?

Rereplace followed by XmlFormat() ?

-- 
Tom Chiverton
Helping to economically mesh third-generation IPOs
on: http://thefalken.livejournal.com



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 8008.

For more information about Halliwells LLP visit www.halliwells.com.


~|
Deploy Web Applications Quickly across the enterprise with ColdFusion MX7  
Flex 2
Free Trial 
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJU

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


RE: Is there anything inherently wrong with this Application.cfm file?

2007-04-13 Thread Che Vilnonis
Tom... I'm not following you... Please explain how I don't have to evaluate
the domain on each page?



-Original Message-
From: Tom Chiverton [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 13, 2007 6:58 AM
To: CF-Talk
Subject: Re: Is there anything inherently wrong with this Application.cfm
file?


On Thursday 12 Apr 2007, Che Vilnonis wrote:
 !--- determine the domain name. ---
 cfset strSiteUrl = LCase(Replace(cgi.server_name, www., , ALL)) 
 /

You can save doing this work each and every call by giving move than one
item 
in each case.


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


Re: Is there anything inherently wrong with this Application.cfm file?

2007-04-13 Thread Tom Chiverton
On Friday 13 Apr 2007, Che Vilnonis wrote:
 Tom... I'm not following you... Please explain how I don't have to evaluate
 the domain on each page?
  !--- determine the domain name. ---
  cfset strSiteUrl = LCase(Replace(cgi.server_name, www., , ALL))
  /

Your doing a replace to remove the 'www' ?
Why not just write
cfcase value=buickpartspage.com,www.buickpartspage.com
?

You are also lower casing it. AFAIK all web servers will present 
CGI.SERVER_NAME in a consistant case not matter what the user types in.

-- 
Tom Chiverton
Helping to economically establish back-end solutions
on: http://thefalken.livejournal.com



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 8008.

For more information about Halliwells LLP visit www.halliwells.com.


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


Re: WebService Issue w/Special Characters being sent to XMLParse

2007-04-13 Thread James Blaha
Tom,

Good idea, still not working.

CF Error: Reference is not allowed in prolog. 

I Tried:

CFFILE ACTION=READ FILE=c:\stock.xml VARIABLE=GotTheStockInfo
cfset parsedStockInfo = XMLFormat(GotTheStockInfo)
cfset parsedStockInfo = XMLParse(parsedStockInfo)

-Jim

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


RE: Is there anything inherently wrong with this Application.cfm file?

2007-04-13 Thread Che Vilnonis
Gotcha. Thanks.

-Original Message-
From: Tom Chiverton [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 13, 2007 8:39 AM
To: CF-Talk
Subject: Re: Is there anything inherently wrong with this Application.cfm
file?


On Friday 13 Apr 2007, Che Vilnonis wrote:
 Tom... I'm not following you... Please explain how I don't have to 
 evaluate the domain on each page?
  !--- determine the domain name. ---
  cfset strSiteUrl = LCase(Replace(cgi.server_name, www., , 
  ALL)) /

Your doing a replace to remove the 'www' ?
Why not just write
cfcase value=buickpartspage.com,www.buickpartspage.com
?

You are also lower casing it. AFAIK all web servers will present
CGI.SERVER_NAME in a consistant case not matter what the user types in.


~|
Deploy Web Applications Quickly across the enterprise with ColdFusion MX7  
Flex 2
Free Trial 
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJU

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


Re: WebService Issue w/Special Characters being sent to XMLParse

2007-04-13 Thread Tom Chiverton
On Friday 13 Apr 2007, James Blaha wrote:
 Reference is not allowed in prolog.

There must be junk before the start of the text.

-- 
Tom Chiverton
Helping to competently harvest synergistic mindshares
on: http://thefalken.livejournal.com



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 8008.

For more information about Halliwells LLP visit www.halliwells.com.


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


Re: WebService Issue w/Special Characters being sent to XMLParse

2007-04-13 Thread James Blaha
Hi Tom,

It’s the “” in the “NameATT INC./Name” element that’s causing 
my issue.

I just need to figure out how to read the XML in and change it so I can load 
the data somehow.

-Jim

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


Re: Using CFCs in session scope - need cflock help

2007-04-13 Thread Jason Dunaway
I've been out of the office for 4 days so I'm just now responding.

Thanks to all who offered valuable feedback and input.  

I am a huge fan of OO programing.  I graduated college in December 2002 from 
Miami U. of Ohio.  The program I studied there really focused on OO design and 
use.  So I've been somewhat brainwashed, but I really believe in it despite 
this.  

So when I took on the current project my employer wanted the site cleaned up.  
It was a mess prior to the redesign.  I chose to use components rather then 
using cookies or individual session variables because I love the structure and 
organization that a nice, neat wrapped up component providesand I love 
reusing code instead of having copies of it everywhere.  Everything is much 
more consistent and logical.  Instantiating them in session was a natural 
choice since, in theory, the data should be maintained for the user's session 
across all pages.  The main user component only contains DATA relevant to the 
user and methods that deal with this data.  I honestly don't see a huge problem 
with this because it's not a huge amount of code.  RAM is not really a concern 
to us, the machine is adequately equipped.  

So now we're having issues with the site timing out users prematurely and 
randomly.  We have verified that what is causing this is that the user is 
getting a NEW jsessionid from the server.  What we don't know is WHY this is 
happening.  Responses from another post I made where that there are a number of 
causes, many which are unrelated to actual code.  

What I really need to determine is if the lack of cflock in appropriate 
places is the culprit.  I see that there are pros/cons to using cfcs in 
session, as have been noted in most of the responses here, but I need to pin 
down what is causing it.  If anyone has any helpful advice please send it my 
way.  If you want to scorn me for using CFCs in session scope, please keep your 
comments to yourself unless you truely feel it is relevant to my problem.  

Thanks in advance!

  

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


Re: Tons of records - archive, or what?

2007-04-13 Thread Dana Kowalski
How many indexes do you have setup on the table? I had a table with about 6 
million records that I inherited and it only had an index setup on the primary 
key. It caused about 300-3000ms overhead on any page that accessed it. It took 
me a couple days but once I found it and added the indexes that were most 
commonly used (in this case only 1 that had 2 conditions), it reduced that 
300-3000 to about 3ms. Just some food for thought.

the post on the phpbb pages from the go gaia developer is here:
http://www.phpbb.com/community/viewtopic.php?f=18t=135383

Sorry, some of it is phpbb specific but there are a lot of good posts in the 
topic about indexing and some other types of performancing tweaking. I found it 
really interesting anyhow :)

~|
Deploy Web Applications Quickly across the enterprise with ColdFusion MX7  
Flex 2
Free Trial 
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJU

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


What conditions would cause a new jsessionid to be assigned to a user session?

2007-04-13 Thread Jason Dunaway
I know this may be a rather rookie question, but I want as much input as 
possible on this so I'm asking it anyways.  

We're having problems with users being timed out prematurely, before the 2hr 
time limit our client has decided upon.  Everything has been setup in 
CFadministrator correctly, as 95% of the users are able to stay logged in for 
the 2hr time frame and have no problems.  With the small percentage of users 
that are not being able to stay logged, the timeout is random and the server 
assigns a NEW jsessionid to them.  Of course, when this happens all of the user 
info that is stored in session is lost, therefore they are gracefully kicked 
out of the site and asked to log in again.

Anyone have any input as to what can be causing this?  Thanks!

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


RE: What conditions would cause a new jsessionid to be assigned to a user session?

2007-04-13 Thread Everett, Al \(NIH/NIGMS\) [C]
Something monkeying with the jsession cookie, I imagine. A
poorly-conceived spyware blocker, perhaps, or a poorly configured proxy
server.

Can you find any commonality among the users this is happening to?
Browser version? Company or IP address?

-Original Message-
I know this may be a rather rookie question, but I want as much input as
possible on this so I'm asking it anyways.  

We're having problems with users being timed out prematurely, before the
2hr time limit our client has decided upon.  Everything has been setup
in CFadministrator correctly, as 95% of the users are able to stay
logged in for the 2hr time frame and have no problems.  With the small
percentage of users that are not being able to stay logged, the timeout
is random and the server assigns a NEW jsessionid to them.  Of course,
when this happens all of the user info that is stored in session is
lost, therefore they are gracefully kicked out of the site and asked to
log in again.

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


Re: Hostmysite down...

2007-04-13 Thread Mary Jo Sminkey
 Im not sure what the issue is, I get the errors emailed to me and 
 bring up the site and its all working, just not the cart and the cart 
 has its own db (mysql not access)
 

Keep in mind that if you are sharing the database (as most people typically 
are) you're going to have issues if other sites are screwing up MySQL by going 
over their quotas (causing multiple connections to be opened as MySQL will 
continue trying to connect), running long queries, etc. So it's definitely not 
Access only that will cause timeouts.  I do run on MySQL myself though and very 
rarely see timeout errors anymore (maybe 1 a week at most). So there's a good 
chance you might even be able to correct it just by asking HMS to move you to a 
different server. 

--- Mary Jo

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


Re: Hostmysite down...

2007-04-13 Thread Jim Wright
Mary Jo Sminkey wrote:
So there's a
 good chance you might even be able to correct it just by asking HMS
 to move you to a different server.
 

They do run multiple datacenters, so I would check with them to make 
sure your shared web server and mysql server are in the same datacenter.

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


Re: Tons of records - archive, or what?

2007-04-13 Thread Dana Kowalski
ok now that I'm a bit more coherent.


if you go to gaiaionline.com/forum you can see the msg board counts etc without 
needing to register.

- Gaia has 998,523,683 articles posted with 6,899,737 registered users. 
- Most users ever online was 86,738 on Thu Jan 04, 2007 3:00 pm 
- There are currently 22,875 users online

Topics (articles) have as many as 78,000 replies. If you're not familiar with 
phpbb a topic has its own table and its post information has its own table 
along with users in their own table. Theres some joins etc that happen 
similarly to what you were referring to.

Its always been my opinion we as developers get pushed into being DBAs on 
smaller projects far too often and we're usually not fully competent to handle 
it on some level. Its not a knock on you or I etc, but imho most application 
slow downs relate to database bottlenecks and thats why prime time DBAs can get 
paid a lot more than I do :)


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


Re: What conditions would cause a new jsessionid to be assigned to a user session?

2007-04-13 Thread Jason Dunaway
Of the 360 timeouts that have happened during the last few weeks there are 99 
ip addresses.  A few of them have this happen moreso than others.  

Browser is IE most of the time, version 6 I believe.  

I never thought of the spyware blocker suggestion, might be a possibility...

We've discussed proxy server stuff with a few of our clients, but even making a 
few tweaks on their end we still have it happen.

I will keep looking at the data to see what I can get from it.

thanks for your input!

Something monkeying with the jsession cookie, I imagine. A
poorly-conceived spyware blocker, perhaps, or a poorly configured proxy
server.

Can you find any commonality among the users this is happening to?
Browser version? Company or IP address?

-Original Message-
I know this may be a rather rookie question, but I want as much input as
possible on this so I'm asking it anyways.  

We're having problems with users being timed out prematurely, before the
2hr time limit our client has decided upon.  Everything has been setup
in CFadministrator correctly, as 95% of the users are able to stay
logged in for the 2hr time frame and have no problems.  With the small
percentage of users that are not being able to stay logged, the timeout
is random and the server assigns a NEW jsessionid to them.  Of course,
when this happens all of the user info that is stored in session is
lost, therefore they are gracefully kicked out of the site and asked to
log in again.

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


Re: WebService Issue w/Special Characters being sent to XMLParse

2007-04-13 Thread James Blaha
All,

Does anyone know how to clean a XML string with illegal special characters 
before you parse it with XMLParse?

This is my XML string:

?xml version=1.0 encoding=utf-8 ? string 
xmlns=http://www.webserviceX.NET/; StockQuotes Stock SymbolT/Symbol 
Last38.66/Last Date4/12/2007/Date Time4:00pm/Time 
Change0.00/Change OpenN/A/Open HighN/A/High LowN/A/Low 
Volume0/Volume MktCap241.4B/MktCap PreviousClose38.66/PreviousClose 
PercentageChange0.00%/PercentageChange AnnRange24.72 - 39.90/AnnRange 
Earns1.887/Earns P-E20.49/P-E NameATT INC./Name /Stock 
/StockQuotes /string

I need to replace the  in the Name element.

-Jim

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


Re: WebService Issue w/Special Characters being sent to XMLParse

2007-04-13 Thread Cathy Shapiro
Jim,

This is probably a cheat because I'm not suggested you solve it with 
coldfusion. I had the same problem yesterday and after hours and hours of no 
luck trying it with coldfusion, I went another route. I passed the feed through 
feedburner, and viola! no problems. 

I'm not sure what feedburner does but it cleaned up the xml for me.

CS

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


OT: css menu troubles

2007-04-13 Thread Jake Churchill
Sorry for this being off topic but I know there are people on this list
whose CSS knowledge exceeds my own.

 

I have a problem that I've run into before and my company had to outsource
it to a CSS Guru (Sandra Clark).  While I truly appreciated her help the
last time, I want to work through this myself.  

 

I have a page with a navigation menu across the top with a single level
dropdown and a sub-nav menu on the left sidebar.  My problem (IE only) is
that the dropdown from the main navigation menu appears under the side
navigation menu.  In firefox it works correctly.  This project is very
time-sensitive so I'm trying to work through this as quickly as possible.

The page url is
http://cfas2.cfwebtools.com/index.cfm?objectid=E6D20202-9027-F64A-799622C32F
C8C158.  

 

I'm fairly decent with CSS but when it comes to more advanced issues like
this I'm still a noob.  Can anyone help me out?

 

Thanks!

 

PS.  I didn't post any code because there's a lot of it.  If you need any of
it, please let me know and I'll supply it.

 

 

_

 

Jake Churchill

CF Webtools

11204 Davenport, Ste. 200b

Omaha, NE  68154

http://www.cfwebtools.com

402-408-3733 x103

 




~|
ColdFusion MX7 and Flex 2 
Build sales  marketing dashboard RIA’s for your business. Upgrade now
http://www.adobe.com/products/coldfusion/flex2?sdid=RVJT

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


Re: What conditions would cause a new jsessionid to be assigned to a user session?

2007-04-13 Thread Dana Kowalski
still having the problem eh? You're not alone :)

Here are most good topics on it:

Sun Developer Network - Tomcat workarounds to holding IE sessions::
http://forum.java.sun.com/thread.jspa?threadID=702395messageID=4073475

post on using apache as proxy vs using Tomcat directly and session dropping 
results:
http://mail-archives.apache.org/mod_mbox/httpd-users/200310.mbox/[EMAIL 
PROTECTED]

While not CF specific they relate more to jsessionid in general :)

MS KB - IE 5.5+ losing session bug with new window (I'll save the suspense - 
its because the users home page was set to a local root file not a web page :o )
http://support.microsoft.com/kb/300895

MSDN Forums - Internet Explorer Web Development (search in here for session and 
be overwhelmed =\ )
http://forums.microsoft.com/MSDN/ShowForum.aspx?ForumID=923SiteID=1





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


Re: WebService Issue w/Special Characters being sent to XMLParse

2007-04-13 Thread James Blaha
Cathy,

Whats the link to feedburner? Thanks for the post!

I just got it to work but I dont think its a good solution. I just did a 
replace all on the special character that was causing the issue then passed the 
result to XMLParse.

-Jim

CFFILE ACTION=READ FILE=c:\stock.xml VARIABLE=GotTheStockInfo

cfset newXML = Replace(GotTheStockInfo, chr(38), amp;, ALL)
cfdump var=#newXML# label=MyStockInfo

cfset parsedStockInfo = XMLParse(newXML)
cfdump var=#parsedStockInfo# label=MyStockInfo

~|
Deploy Web Applications Quickly across the enterprise with ColdFusion MX7  
Flex 2
Free Trial 
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJU

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


Re: What conditions would cause a new jsessionid to be assigned to a user session?

2007-04-13 Thread Jason Dunaway
Thanks again for the help Dana!  

 still having the problem eh? You're not alone :)
 
 Here are most good topics on it:
 
 Sun Developer Network - Tomcat workarounds to holding IE sessions::
 http://forum.java.sun.com/thread.
 jspa?threadID=702395messageID=4073475
 
 post on using apache as proxy vs using Tomcat directly and session 
 dropping results:
 http://mail-archives.apache.org/mod_mbox/httpd-users/200310.
 mbox/[EMAIL PROTECTED]
 
 While not CF specific they relate more to jsessionid in general :)
 
 MS KB - IE 5.5+ losing session bug with new window (I'll save the 
 suspense - its because the users home page was set to a local root 
 file not a web page :o )
 http://support.microsoft.com/kb/300895
 
 MSDN Forums - Internet Explorer Web Development (search in here for 
 session and be overwhelmed =\ )
 http://forums.microsoft.com/MSDN/ShowForum.aspx?ForumID=923SiteID=1
 
 
 

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


Re: changing directory

2007-04-13 Thread Sam Farmer
Daniel,

You can do this with CF:

Copy the folder to the new folder.

Do a cfdirectory call to get all files in the new (or old) folder.

Loop over and write a file to the old folder that has something like:
   cflocation url=../newfolder/#file#

Test!

You may also want to look at using cfheader and a status code of 302
(I think) as that will tell browsers and search engines that the page
has moved permanently.  See Google for more.

Cheers,

Sam Farmer
http://samfarmer.instantspot.com/blog/

On 4/12/07, daniel kessler [EMAIL PROTECTED] wrote:
 I'm in a shared hosting environment, so I don't have access to the servers at 
 all.  That's why I'm trying to do this through cold fusion coding.

 thank you anyhoo.

 daniel

 In IIS look at the properties for that folder and do the following.
 
 Redirect to: http://localhost/NewFolderName$S$Q
 
 Check Box for exact URL entered above
 
 Check Box for permanent redirection for this resource.
 
 --
 
 Casey

 

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


Re: Tons of records - archive, or what?

2007-04-13 Thread Will Tomlinson
 How many indexes do you have setup on the table? I had a table with 
 about 6 million records that I inherited and it only had an index 


It has all the pertinent fields included in indexes. I believe about 8-10 
fields in the one main output table. All tables have all the indexes that are 
needed I believe. 

It just hit me this morning, I may be creating a bunch of data to query that'll 
never exist anyway. It's trying to count up 200,000 + records for one 
instructor. That'll never happen anyway! 

I think I need to load more real-world data into my tables and try it then. 
Maybe I'm asking something of it that nothing can handle, and we don't need 
that type of report anyway. make sense??

Thanks for your help!

Will

~|
Deploy Web Applications Quickly across the enterprise with ColdFusion MX7  
Flex 2
Free Trial 
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJU

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


FIXED: menu troubles

2007-04-13 Thread Jake Churchill
I believe I have this fixed.  I received a reference to
http://www.aplus.co.yu/lab/z-pos/.  I relatively positioned the #header and
provided a z-index and it seems to work now.

 

 

_

 

Jake Churchill

CF Webtools

11204 Davenport, Ste. 200b

Omaha, NE  68154

http://www.cfwebtools.com

402-408-3733 x103

 




~|
ColdFusion MX7 and Flex 2 
Build sales  marketing dashboard RIA’s for your business. Upgrade now
http://www.adobe.com/products/coldfusion/flex2?sdid=RVJT

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


CF and Java

2007-04-13 Thread Andrew Whone
I have some java code which I want to kick in from a coldfusion page

e.g. cfobject type=Java class=IRMark name=myObj
  cfset ret=myObj.init(input.xml)

It ought to be simple enough, pass the file name to the class and get the 
base64 number back.
The Coldfusion documentation states: 
Note: The init method is not a method of the object, but a ColdFusion 
identifier that calls the new function on the class constructor. So, if a Java 
object has an init method, a name conflict exists and you cannot call the 
object’s init method.
and I suspect this is where my problem lies but my java is still basic. I would 
be very grateful if anyone could at least give me a few pointers to solve this 
problem. I have tried lots of things without any success.

The Java Code:

import java.io.*;
import javax.xml.parsers.*;
import java.security.*;

import org.w3c.dom.*;

import org.apache.xml.security.signature.*;
import org.apache.xml.security.transforms.*;
import org.apache.xml.security.Init;

import org.bouncycastle.util.encoders.Base64;


/**
 * This code generates an IRmark value for an input document.
 * The value is a base64 encoded SHA1 digest of a signature
 * transform over a certain style of document. The value has
 * to be placed inside documents to be signed by the XPE when
 * used in a EDS/IR deployment.
 *
 * The code has a number of jar dependencies:-
 *  xmlsec.jar - The Apache XML Security Library
 *  log4j-1.2.5.jar - The Apache Log utility
 *  xalan.jar - Apache XSLT/XPath processor
 *  xercesImpl.jar - Apache XML processor
 *  bc-jce-jdk13-114.jar - Bouncy Castle JCE library
 *
 *  The Bouncy Castle JCE provider is automatically downloaded
 *  by the Apache XML sec library build so you may already have
 *  that.
 */

   
   public class IRMark {

   /**
* Generate and print the IRmark.
*
* @param args - Pass the filename of the input document
* @throws Exception
*/
public static void main(String args[]) throws Exception {

// Init the Apache XML security library
Init.init();

// Check we are given a file to work with
if (args.length!=1) {
System.out.println(Use: IRmark file );
return;
}

// Open the input file
FileInputStream fis=null;
try {
fis=new FileInputStream(args[0]);
} catch (FileNotFoundException e) {
System.out.println(The file  + args[0] +  could not 
be opened.);
return;
}

// Load file into a byte array
byte[] data=null;
try {
int bytes=fis.available();
data=new byte[bytes];
fis.read(data);
} catch (IOException e) {
System.out.println(Error reading file.);
e.printStackTrace();
}

// First part is to run the a transform over the input to 
extract the
// fragment to be digested. This is done by setting up a 
Transforms
// object from a Template and then executing against the input 
document

// The transforms to be performed are specified by using the 
template XML below.
String transformStr =
?xml version='1.0'?\n
+ dsig:Transforms xmlns:dsig='http://www.w3.org/2000/09/xmldsig#' 
xmlns:gt='http://www.govtalk.gov.uk/CM/envelope' 
xmlns:ir='http://www.govtalk.gov.uk/taxation/CISrequest'\n
+ dsig:Transform 
Algorithm='http://www.w3.org/TR/1999/REC-xpath-19991116'\n
+ dsig:XPath\n
+ 
count(ancestor-or-self::node()|/gt:GovTalkMessage/gt:Body)=count(ancestor-or-self::node())\n
+  and count(self::ir:IRmark)=0 \n
+  and count(../self::ir:IRmark)=0 \n
+ /dsig:XPath\n
+ /dsig:Transform\n
+ dsig:Transform 
Algorithm='http://www.w3.org/TR/2001/REC-xml-c14n-20010315#'/\n
+ /dsig:Transforms\n
;

// Parse the transform details to create a document
DocumentBuilderFactory dbf=DocumentBuilderFactory.newInstance();
dbf.setNamespaceAware(true);
DocumentBuilder db=dbf.newDocumentBuilder();
Document doc=db.parse(new 
ByteArrayInputStream(transformStr.getBytes()));

// Construct a Apache security Transforms object from that 
document
Transforms transforms = new 
Transforms(doc.getDocumentElement(), null);

// Now perform the transform on the input to get the results.
XMLSignatureInput input = new XMLSignatureInput(data);
XMLSignatureInput result = transforms.performTransforms(input);

// Uncomment this line to see transform output
// System.out.println(new 

Any mxAjax fiends out there?

2007-04-13 Thread Scott Weikert
I'm toying with mxAjax and running into a strange little snag. A JS 
function called by changing a select element work great the first time, 
but subsequent calls still work, mxAjax-wise - but all the OTHER JS code 
within that JS function doesn't fire off (including alerts).

Here's a thread to the related Google group I just posted with the deets:
http://groups.google.com/group/mxajax/browse_thread/thread/3f16a4f1cdbbc276

If anyone out there has some insight into this issue, I'd appreciate 
your input.

--Scott

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


XML Vs. CSV/Text

2007-04-13 Thread Robert Rawlins - Think Blue
Hello Guys,

 

I'm building a non-cf application at the moment, who's logs will be parsed
by a ColdFusion application after having them passed to it via a web
service. I'm now making the choice of log format for my other application,
what are the benefits of using XML over CSV or other delimited files?
obviously the XML has more of a structure, but what about parsing speeds? Am
I likely to see any benefits there of using XML?

 

I'd be interested to hear your thoughts, I'm not planning to do anything
particularly interesting with the XML, simply parse through the records and
insert them into a database table.

 

Thanks,

 

Rob



~|
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:275150
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 and Java

2007-04-13 Thread Dave Watts
 I have some java code which I want to kick in from a coldfusion page
 
 e.g. cfobject type=Java class=IRMark name=myObj
   cfset ret=myObj.init(input.xml)
 
 It ought to be simple enough, pass the file name to the class 
 and get the base64 number back.
 The Coldfusion documentation states: 
 Note: The init method is not a method of the object, but a 
 ColdFusion identifier that calls the new function on the 
 class constructor. So, if a Java object has an init method, a 
 name conflict exists and you cannot call the object’s init method.
 and I suspect this is where my problem lies but my java is 
 still basic. I would be very grateful if anyone could at 
 least give me a few pointers to solve this problem. I have 
 tried lots of things without any success.

Your class doesn't appear to have an init method of its own. The fact that
it's calling an init method in another class shouldn't matter, I think.

CF comes with a specific version of log4j, which may be conflicting with
yours.

What exactly is the error you get?

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!

This email has been processed by SmoothZap - www.smoothwall.net


~|
ColdFusion MX7 and Flex 2 
Build sales  marketing dashboard RIA’s for your business. Upgrade now
http://www.adobe.com/products/coldfusion/flex2?sdid=RVJT

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


RE: What conditions would cause a new jsessionid to be assigned to a user session?

2007-04-13 Thread Gaulin, Mark
I've never seen this, so this is just a random idea: Do you have access
to the web server log files (and do you log cookies)? If so, can you
verify that the client browser was sending in the same cookie value to
the server at the point where they got redirected to the login?  If the
client didn't send the same cookie values then the server would have no
choice but to assign a new value.  If you can verify that the client was
doing the right thing then I imagine that helps to isolate the problem
to the server.

Just an idea...

Mark

-Original Message-
From: Jason Dunaway [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 13, 2007 9:33 AM
To: CF-Talk
Subject: What conditions would cause a new jsessionid to be assigned to
a user session?

I know this may be a rather rookie question, but I want as much input as
possible on this so I'm asking it anyways.  

We're having problems with users being timed out prematurely, before the
2hr time limit our client has decided upon.  Everything has been setup
in CFadministrator correctly, as 95% of the users are able to stay
logged in for the 2hr time frame and have no problems.  With the small
percentage of users that are not being able to stay logged, the timeout
is random and the server assigns a NEW jsessionid to them.  Of course,
when this happens all of the user info that is stored in session is
lost, therefore they are gracefully kicked out of the site and asked to
log in again.

Anyone have any input as to what can be causing this?  Thanks!



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


Re: WebService Issue w/Special Characters being sent to XMLParse

2007-04-13 Thread James Blaha
All,

Thanks for your posts, issue resolved using:

CFFILE ACTION=READ FILE=c:\stock.xml VARIABLE=GotTheStockInfo

cfset newXML = Replace(GotTheStockInfo, chr(38), amp;, ALL)
cfdump var=#newXML# label=MyStockInfo

cfset parsedStockInfo = XMLParse(newXML)
cfdump var=#parsedStockInfo# label=MyStockInfo

Have a great weekend!

-Jim

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


CFHTTP not working?

2007-04-13 Thread Neil Middleton
Can anyone think of a reason why when I CFHTTP it doesn't connect to
external URL's when the sites work perfectly in a browser on the same
machine?

I am using WinXP / CFMX7 Dev Edition 


Neil


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


RE: CFHTTP not working?

2007-04-13 Thread Ben Nadel
What is the error it is returning?

It has to be a fully qualified URL... You can't use ./page.cfm type
notation. It needs the whole HTTP:// stuff.


..
Ben Nadel
Certified Advanced ColdFusion MX7 Developer
www.bennadel.com
 
Need ColdFusion Help?
www.bennadel.com/ask-ben/

-Original Message-
From: Neil Middleton [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 13, 2007 11:42 AM
To: CF-Talk
Subject: CFHTTP not working?

Can anyone think of a reason why when I CFHTTP it doesn't connect to
external URL's when the sites work perfectly in a browser on the same
machine?

I am using WinXP / CFMX7 Dev Edition 


Neil




~|
ColdFusion MX7 and Flex 2 
Build sales  marketing dashboard RIA’s for your business. Upgrade now
http://www.adobe.com/products/coldfusion/flex2?sdid=RVJT

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


Re: CFHTTP not working?

2007-04-13 Thread Neil Middleton
Indeed.  It seems to fail for any URL regardless of whether it is a full domain 
or a full path.  The error I am always getting is Connection Timeout.  Thing 
is, it works on some of my other boxes.

Neil

What is the error it is returning?

It has to be a fully qualified URL... You can't use ./page.cfm type
notation. It needs the whole HTTP:// stuff.


.
Ben Nadel
Certified Advanced ColdFusion MX7 Developer
www.bennadel.com
 
Need ColdFusion Help?
www.bennadel.com/ask-ben/

-Original Message-
From: Neil Middleton [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 13, 2007 11:42 AM
To: CF-Talk
Subject: CFHTTP not working?

Can anyone think of a reason why when I CFHTTP it doesn't connect to
external URL's when the sites work perfectly in a browser on the same
machine?

I am using WinXP / CFMX7 Dev Edition 


Neil

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


RE: CFHTTP not working?

2007-04-13 Thread Dave Watts
 Can anyone think of a reason why when I CFHTTP it doesn't 
 connect to external URL's when the sites work perfectly in a 
 browser on the same machine?
 
 I am using WinXP / CFMX7 Dev Edition 

Personal firewall?

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!

This email has been processed by SmoothZap - www.smoothwall.net


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


Re: CFHTTP not working?

2007-04-13 Thread Neil Middleton
I think I've figured it.  I've got a proxy that my other boxes don't go through.

Now why the hell can't CFMX respect the proxy settings on the machine?  I can't 
have CFHTTP proxy attributes going up to my live box.

Neil

 Can anyone think of a reason why when I CFHTTP it doesn't 
 connect to external URL's when the sites work perfectly in a 
 browser on the same machine?
 
 I am using WinXP / CFMX7 Dev Edition 

Personal firewall?

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!

This email has been processed by SmoothZap - www.smoothwall.net

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


Re: CFHTTP not working?

2007-04-13 Thread Jim Wright
Neil Middleton wrote:
 Can anyone think of a reason why when I CFHTTP it doesn't connect to
 external URL's when the sites work perfectly in a browser on the same
 machine?
 
 I am using WinXP / CFMX7 Dev Edition 

Is the browser on that machine going through a proxy server?

~|
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:275159
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 and Java

2007-04-13 Thread Phillip Duba
Andrew,

I ran into this same issue doing stuff with SAML. Make sure you haven't
moved the class file after it has been compiled. In other words, once
you compile the Java class, you can't move it around to the classes
library or some other directory. I don't know why, but ever time I moved
my class file, the Init.init() call would fail. Also, ensure all the
Apache XML libraries are in your CF classpath. Finally, you don't have a
constructor on your class so your call should be: cfset ret =
myObj.main(input.xml). HTH,

Phil

-Original Message-
From: Andrew Whone [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 13, 2007 10:53 AM
To: CF-Talk
Subject: CF and Java

I have some java code which I want to kick in from a coldfusion page

e.g. cfobject type=Java class=IRMark name=myObj
  cfset ret=myObj.init(input.xml)

It ought to be simple enough, pass the file name to the class and get
the base64 number back.
The Coldfusion documentation states: 
Note: The init method is not a method of the object, but a ColdFusion
identifier that calls the new function on the class constructor. So, if
a Java object has an init method, a name conflict exists and you cannot
call the object’s init method.
and I suspect this is where my problem lies but my java is still basic.
I would be very grateful if anyone could at least give me a few pointers
to solve this problem. I have tried lots of things without any success.

The Java Code:

import java.io.*;
import javax.xml.parsers.*;
import java.security.*;

import org.w3c.dom.*;

import org.apache.xml.security.signature.*;
import org.apache.xml.security.transforms.*;
import org.apache.xml.security.Init;

import org.bouncycastle.util.encoders.Base64;


/**
 * This code generates an IRmark value for an input document.
 * The value is a base64 encoded SHA1 digest of a signature
 * transform over a certain style of document. The value has
 * to be placed inside documents to be signed by the XPE when
 * used in a EDS/IR deployment.
 *
 * The code has a number of jar dependencies:-
 *  xmlsec.jar - The Apache XML Security Library
 *  log4j-1.2.5.jar - The Apache Log utility
 *  xalan.jar - Apache XSLT/XPath processor
 *  xercesImpl.jar - Apache XML processor
 *  bc-jce-jdk13-114.jar - Bouncy Castle JCE library
 *
 *  The Bouncy Castle JCE provider is automatically downloaded
 *  by the Apache XML sec library build so you may already have
 *  that.
 */

   
   public class IRMark {

   /**
* Generate and print the IRmark.
*
* @param args - Pass the filename of the input document
* @throws Exception
*/
public static void main(String args[]) throws Exception {

// Init the Apache XML security library
Init.init();

// Check we are given a file to work with
if (args.length!=1) {
System.out.println(Use: IRmark file );
return;
}

// Open the input file
FileInputStream fis=null;
try {
fis=new FileInputStream(args[0]);
} catch (FileNotFoundException e) {
System.out.println(The file  + args[0] + 
could not be opened.);
return;
}

// Load file into a byte array
byte[] data=null;
try {
int bytes=fis.available();
data=new byte[bytes];
fis.read(data);
} catch (IOException e) {
System.out.println(Error reading file.);
e.printStackTrace();
}

// First part is to run the a transform over the input
to extract the
// fragment to be digested. This is done by setting up a
Transforms
// object from a Template and then executing against the
input document

// The transforms to be performed are specified by using
the template XML below.
String transformStr =
?xml version='1.0'?\n
+ dsig:Transforms
xmlns:dsig='http://www.w3.org/2000/09/xmldsig#'
xmlns:gt='http://www.govtalk.gov.uk/CM/envelope'
xmlns:ir='http://www.govtalk.gov.uk/taxation/CISrequest'\n
+ dsig:Transform
Algorithm='http://www.w3.org/TR/1999/REC-xpath-19991116'\n
+ dsig:XPath\n
+
count(ancestor-or-self::node()|/gt:GovTalkMessage/gt:Body)=count(ancest
or-or-self::node())\n
+  and count(self::ir:IRmark)=0 \n
+  and count(../self::ir:IRmark)=0 \n
+ /dsig:XPath\n
+ /dsig:Transform\n
+ dsig:Transform
Algorithm='http://www.w3.org/TR/2001/REC-xml-c14n-20010315#'/\n
+ /dsig:Transforms\n
;

// Parse the transform details to create a document
DocumentBuilderFactory
dbf=DocumentBuilderFactory.newInstance();

Re: CFHTTP not working?

2007-04-13 Thread Neil Middleton
 I think I've figured it.  I've got a proxy that my other boxes don't 
 go through.
 
 Now why the hell can't CFMX respect the proxy settings on the machine?  
 I can't have CFHTTP proxy attributes going up to my live box.
 
 Neil
 
  Can anyone think of a reason why when I CFHTTP it doesn't 
  connect to external URL's when the sites work perfectly in a 
  browser on the same machine?
  
  I am using WinXP / CFMX7 Dev Edition 
 
 Personal firewall?
 
 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!
 
 This email has been processed by SmoothZap - www.smoothwall.
net

I did find this 
page:http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_18602  which 
tells me about the unique way proxies are handled by CF.

However, if you try it, you won't get anywhere due to the fact that the JVM 
example has repeated typos in it (numbnuts).  What you want is:

-DproxySet=true -Dhttp.proxyHost=ip -Dhttp.proxyPort=port

So, after a while I seem to have this working.

Anyway...

Neil

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


RE: XML Vs. CSV/Text

2007-04-13 Thread Dave Francis
Well, if you go the CSV route, you may encounter a problem with ommitted
elements if you're using the CF list functions.
ie. listLen (a,b,c,d) = 4, listLen(a,b,,d) = 3


-Original Message-
From: Robert Rawlins - Think Blue
[mailto:[EMAIL PROTECTED]
Sent: Friday, April 13, 2007 10:06 AM
To: CF-Talk
Subject: XML Vs. CSV/Text


Hello Guys,



I'm building a non-cf application at the moment, who's logs will be parsed
by a ColdFusion application after having them passed to it via a web
service. I'm now making the choice of log format for my other application,
what are the benefits of using XML over CSV or other delimited files?
obviously the XML has more of a structure, but what about parsing speeds? Am
I likely to see any benefits there of using XML?



I'd be interested to hear your thoughts, I'm not planning to do anything
particularly interesting with the XML, simply parse through the records and
insert them into a database table.



Thanks,



Rob





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


Re: Calling a Coldfusion Variable From a .js File

2007-04-13 Thread Byte Me
You will need to explain more on waht you want to do, if you processing the
page at runtime the #variable# will still work. However if it is already
processed and sitting on the client you will need to let us know what you
want to do, programs like DWR, ajaxCFC and CFJsonService all allow for
information to be returned back to the client to then do what you want to
do.

but your question is not specific enough to help you.



On 4/13/07, Byte Me [EMAIL PROTECTED] wrote:

 Does anyone know how to call a Coldfusion variable from a .js file,
 without converting the variable in a .cfm file?



Hi Andrew,
I have a form that has a CAPTCHA on it, the answer to the CAPTCHA is stored in 
a CF SESSION variable. I use JavaScript to check the form contents being 
submitted, which (now includes a CAPTCHA challenge). If I convert the answer to 
js format(in the form), and then call it from the external .js file, that will 
work fine, but the problem is, I made the answer available to any bots, because 
it is now in the source code of the form. What I am trying to do is get the 
contents of the SESSION variable into the .js file, without compromising the 
answer. I think however it may make more sense for me to simply have the 
challenge in a separate template(that the user must go through first), before 
allowing him access the form.

~|
Deploy Web Applications Quickly across the enterprise with ColdFusion MX7  
Flex 2
Free Trial 
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJU

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


Re: CFHTTP not working?

2007-04-13 Thread Jochem van Dieten
Neil Middleton wrote:
 I think I've figured it.  I've got a proxy that my other boxes don't go 
 through.
 
 Now why the hell can't CFMX respect the proxy settings on the machine?

Your machine doesn't have proxy settings. Certain applications on your 
machine may have proxy settings. Or maybe not. And there is no reason to 
assume these settings are identical or correct.

Your machine is the wrong place to look for proxy settings, you should 
look at the network (since the proxies that are available to you depend 
on the network you have connected to). Proxy auto discovery is 
facilitated through DHCP option 252. Have you checked that your network 
administrator has properly configured DHCP option 252? If that is the 
case you should create a testcase and file an enhancement request.

Jochem

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


Re: What conditions would cause a new jsessionid to be assigned to a user session?

2007-04-13 Thread Josh Nathanson
 If the
 client didn't send the same cookie values then the server would have no
 choice but to assign a new value.  If you can verify that the client was
 doing the right thing then I imagine that helps to isolate the problem
 to the server.

Along these lines, make sure that all the requests are either
www.mysite.com
or
mysite.com

If a session is set with www.mysite.com but then somebody sends a request to 
mysite.com, it will cause the behavior you're seeing.

The attribute setdomaincookies of the cfapplication tag addresses this 
issue.

-- Josh 


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


Re: Calling a Coldfusion Variable From a .js File

2007-04-13 Thread Jon Clausen
 I have a form that has a CAPTCHA on it, the answer to the CAPTCHA  
 is stored in a CF SESSION variable. I use JavaScript to check the  
 form contents being submitted, which (now includes a CAPTCHA  
 challenge). If I convert the answer to js format(in the form), and  
 then call it from the external .js file, that will work fine, but  
 the problem is, I made the answer available to any bots, because it  
 is now in the source code of the form. What I am trying to do is  
 get the contents of the SESSION variable into the .js file, without  
 compromising the answer. I think however it may make more sense for  
 me to simply have the challenge in a separate template(that the  
 user must go through first), before allowing him access the form.

What I might suggest, instead, is have your javascript check to make  
sure that the captcha field is not empty:

function checkCaptchaExists(){
if (document.getElementById(captcha_text).value != '' ){
return true;
} else{
return false;
}
}

Then you'll have your form post actions validate your captcha text  
against the session variable.  (i.e. - cfif form.captcha_text EQ  
session.captcha_text/cfif)   There are ways (like configuring your  
server to make Coldfusion process javascript pages) that you could  
get your session variables in your javascript file, but there are  
many more reasons that you would not want to do so - one big one  
being the way most browsers cache javascript files.

Option B, if you really want to do it through javascript is to change  
the extension of your javascript file to .cfm.
If you do that, I would suggest only putting the function in for the  
captcha, though as once you make it a .cfm file, browsers will not  
cache the contents and will reload any scripts with a .cfm extension  
on every page request.

HTH,

Jon


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


RE: WebService Issue w/Special Characters being sent to XMLParse

2007-04-13 Thread Everett, Al \(NIH/NIGMS\) [C]
You may have other issues there. If an ampersand is properly encoded as
amp;, your replace() statement will make that amp;amp;

Shouldn't the source of that XML be escaping the ampersand?


-Original Message-
From: James Blaha [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 13, 2007 11:33 AM
To: CF-Talk
Subject: Re: WebService Issue w/Special Characters being sent to
XMLParse

All,

Thanks for your posts, issue resolved using:

CFFILE ACTION=READ FILE=c:\stock.xml VARIABLE=GotTheStockInfo

cfset newXML = Replace(GotTheStockInfo, chr(38), amp;, ALL)
cfdump var=#newXML# label=MyStockInfo

cfset parsedStockInfo = XMLParse(newXML) cfdump
var=#parsedStockInfo# label=MyStockInfo

Have a great weekend!

-Jim



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


Re: XML Vs. CSV/Text

2007-04-13 Thread Judah McAuley
You don't mention what db you are using but I've had good success on MS 
SqlServer writing to a csv file and then doing all the processing to the 
database entirely in SQL using the BULK INSERT INTO command. If you're 
able to go that route with whatever db you are using, I'd opt for csv 
(or tab delimited if you might encounter commas). More compact than XML 
and no application server processing required. If your data needs to be 
more heavily processed (like lookups on ids to match something else, 
date parsing, etc) or it may end up being used by other applications in 
the future, then I'd go the XML route because its more verbose and 
self-descriptive.

Judah

Robert Rawlins - Think Blue wrote:
 Hello Guys,  
 
 I'm building a non-cf application at the moment, who's logs will be parsed
 by a ColdFusion application after having them passed to it via a web
 service. I'm now making the choice of log format for my other application,
 what are the benefits of using XML over CSV or other delimited files?
 obviously the XML has more of a structure, but what about parsing speeds? Am
 I likely to see any benefits there of using XML?
 
  
 
 I'd be interested to hear your thoughts, I'm not planning to do anything
 particularly interesting with the XML, simply parse through the records and
 insert them into a database table.
 
  
 
 Thanks,
 
  
 
 Rob



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


Re: cfcontent excel session and url variables

2007-04-13 Thread William Burba
Good Afternoon, Thank you all for your replies.  Initially, taking out the 
cfcontent tags did not yield any negative results.  The page came back fine 
to the browser.  Putting the tags back on, and looking at the log files more or 
less confirmed what was happening, I just don't know why.  There is a behind 
the scene login process that occurs.  We capture the windows login ID by using 
an activeX control, and storing it in a session variable.  That activeX control 
is called on a page that is called with a cflocation in the onSessionStart of 
the Application.cfc.  In the log files, it shows that login page trying to be 
called within the directory structure of the page trying to generate the excel. 
 It appears, in some instances, that excel is not being recognized by the 
current session, depending on the variables being passed in the URL.  We had 
tried using the URLencoded tag, which seemed to break things to a greater 
degree, for some reason.  For the time being, we replaced the spaces in the URL 
variable with %20 which appears to fix the problem, but I still don't think 
that is truly the correct one.

Thanx again for all your help!

Bill

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


Re: CFHTTP not working?

2007-04-13 Thread Neil Middleton
Neil Middleton wrote:
 Can anyone think of a reason why when I CFHTTP it doesn't connect to
 external URL's when the sites work perfectly in a browser on the same
 machine?
 
 I am using WinXP / CFMX7 Dev Edition 

Is the browser on that machine going through a proxy server?

Yup, windows is setup so that everything on the machine should - but as usual 
CFMX ignores that fact...

Neil

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


querying the CFMX log file

2007-04-13 Thread Matthew Friedman
I am trying to implement a scheduled task that will query the applicatin log 
file and dump any new error messages into an email and send it to a person 
montoring the application.

This was simple with CF5 and the Merchent Text driver.  Is there any way to do 
this with CFMX?

Thank you in advance.

Matt

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


Re: querying the CFMX log file

2007-04-13 Thread Scott Weikert
Matthew Friedman wrote:
 I am trying to implement a scheduled task that will query the applicatin 
 log file and dump any new error messages into an email and send it to a 
 person montoring the application.

 This was simple with CF5 and the Merchent Text driver.  Is there any way to 
 do this with CFMX?
   
I've got something sorta similar - an error log viewer. It reads in the 
application and exception log files, and parses through and associates 
the exception log entries with the right application log entry and 
displays 20 rows at a time.

I can toss you that script if you'd like, and you can probably hack it 
up to suit your own needs.

~|
ColdFusion MX7 and Flex 2 
Build sales  marketing dashboard RIA’s for your business. Upgrade now
http://www.adobe.com/products/coldfusion/flex2?sdid=RVJT

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


Re: querying the CFMX log file

2007-04-13 Thread Josh Nathanson
I am trying to implement a scheduled task that will query the applicatin 
log file and dump any new error messages
into an email and send it to a person montoring the application.

I'm sure others will chime in, but another way to handle this is to set up 
the CFERROR tag or onError method in Application.cfc to automatically email 
you when an exception occurs.  Much easier than what you're trying to do, 
and sends you the email immediately rather than wait until your scheduled 
task fires.

-- Josh


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


Cfcontent - One record to CSV Problem

2007-04-13 Thread Raj Vijay
All,
 I am using the following code (taken from http://www.tom-muck.com/ ) to 
generate csv file.
cfparam name=attributes.rs
cfset c=attributes.rs.ColumnList/
cfset cc = listqualify(#c#,'',,,all)

CFHEADER 
NAME=Content-DispositionVALUE=attachment;filename=#attributes.filename#
CFCONTENT TYPE=application/unknown
cfoutput#cc##chr(13)##chr(10)#/cfoutput
cfoutput query=attributes.rs
   cfloop list=#c# 
index=f#q##attributes.rs[f][attributes.rs.currentrow]##q#
  cfif f NEQ listlast(c),/cfif
   /cfloop#chr(13)##chr(10)#
/cfoutput
It works fine if the record count is greater than one.
But if the records returned is one, then the data is dumped in to one cell only.
Thank you,
Raj

~|
ColdFusion MX7 and Flex 2 
Build sales  marketing dashboard RIA’s for your business. Upgrade now
http://www.adobe.com/products/coldfusion/flex2?sdid=RVJT

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


Re: What conditions would cause a new jsessionid to be assigned to a user session?

2007-04-13 Thread Dana Kowalski
while there are a lot of things you can do there is a reality than Internet 
Explorer 5.5 through version 7 has some bugs and features that hamper pure 
session functionality without the use of cookies unfortunately. 

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


Re: reading params from a file v/s getting them from a file

2007-04-13 Thread George Abraham
Hmm, maybe I can learn some stuff here about session variables. Well, the
parameters (and their values) themselves are sizeable in nature. Sort of
like defaultTextForMessage='some text 150 characters long' and so on. Is
storing them in the session advisable?

Thanks,
George


On 4/12/07, Tom Chiverton [EMAIL PROTECTED] wrote:

 On Thursday 12 Apr 2007, George Abraham wrote:
  Yes it is read at every request. For example, the navigational menu for
  every site is different, so the params XML file will have to be read
 every
  request to see what the menu items are. The only thing I store in a
 session
  variables is an ID identifying the site.

 Right. Why can't you store the parsed parameters in the session too ?


 --
 Tom Chiverton



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


RE: reading params from a file v/s getting them from a file

2007-04-13 Thread Justin Scott
I'm a bit late on this thread, but if you're reading in site settings on
every page request it would make more sense to put them into the
application scope instead of the session scope.  If you have multiple
sites running on the same application you could use a structure to
store the data that is read in on the first request (or on application
start if using application.cfc) keyed based on the site id.  Once read
once you won't have to process that data on every request and it will be
stored in memory once instead of a new copy for each visitor.


-Justin Scott | GravityFree
 Client Care Special Forces Unit

1960 Stickney Point Road, Suite 210
Sarasota | FL | 34231 | 800.207.4431
941.927.7674 x115 | f 941.923.5429
www.GravityFree.com


 -Original Message-
 From: George Abraham [mailto:[EMAIL PROTECTED] 
 Sent: Friday, April 13, 2007 2:18 PM
 To: CF-Talk
 Subject: Re: reading params from a file v/s getting them from a file
 
 Hmm, maybe I can learn some stuff here about session 
 variables. Well, the
 parameters (and their values) themselves are sizeable in 
 nature. Sort of
 like defaultTextForMessage='some text 150 characters long' 
 and so on. Is
 storing them in the session advisable?
 
 Thanks,
 George
 
 
 On 4/12/07, Tom Chiverton [EMAIL PROTECTED] wrote:
 
  On Thursday 12 Apr 2007, George Abraham wrote:
   Yes it is read at every request. For example, the 
 navigational menu for
   every site is different, so the params XML file will have 
 to be read
  every
   request to see what the menu items are. The only thing I 
 store in a
  session
   variables is an ID identifying the site.
 
  Right. Why can't you store the parsed parameters in the 
 session too ?
 
 
  --
  Tom Chiverton
 

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


Re: What conditions would cause a new jsessionid to be assigned to a user session?

2007-04-13 Thread Andrew Grosset
Encourage your affected users to download Firefox and see if that rectifies the 
problem.

Andrew.

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


collecting IP Address through database shopping cart

2007-04-13 Thread tracy sanchez
Hello,I have a shopping cart and I want to capture our clients IP Addresses 
when they order.it'll need to be passed through a dtabase shopping cart.
_
Your friends are close to you. Keep them that way.
http://spaces.live.com/signup.aspx

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


RE: collecting IP Address through database shopping cart

2007-04-13 Thread Adkins, Randy
CGI.REMOTE_ADDR 

-Original Message-
From: tracy sanchez [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 13, 2007 4:11 PM
To: CF-Talk
Subject: collecting IP Address through database shopping cart

Hello,I have a shopping cart and I want to capture our clients IP Addresses 
when they order.it'll need to be passed through a dtabase shopping cart.
_
Your friends are close to you. Keep them that way.
http://spaces.live.com/signup.aspx



~|
Deploy Web Applications Quickly across the enterprise with ColdFusion MX7  
Flex 2
Free Trial 
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJU

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


Re: Calling a Coldfusion Variable From a .js File

2007-04-13 Thread John Morgan
A secure hash might be what the doctor ordered. CF could send a hashed version 
of the answer then you could run js code to hash the users input before the 
compare. 

Here is one site that has some JS hash algorithms.

http://pajhome.org.uk/crypt/md5/

The only problem is you will need to analyze the JS code and create a CF 
counterpart. It would take a bit of work on your part, but I think outside of 
an Ajax solution it is your best bet.


 You will need to explain more on waht you want to do, if you 
 processing the
 page at runtime the #variable# will still work. However if it is 
 already
 processed and sitting on the client you will need to let us know what 
 you
 want to do, programs like DWR, ajaxCFC and CFJsonService all allow 
 for
 information to be returned back to the client to then do what you 
 want to
 do.
 
 but your question is not specific enough to help you.
 
 
 
 On 4/13/07, Byte Me [EMAIL PROTECTED] wrote:
 
  Does anyone know how to call a Coldfusion variable from a .js file,
 
  without converting the variable in a .cfm file?
 
 
 
 Hi Andrew,
 I have a form that has a CAPTCHA on it, the answer to the CAPTCHA is 
 stored in a CF SESSION variable. I use JavaScript to check the form 
 contents being submitted, which (now includes a CAPTCHA challenge). If 
 I convert the answer to js format(in the form), and then call it from 
 the external .js file, that will work fine, but the problem is, I made 
 the answer available to any bots, because it is now in the source code 
 of the form. What I am trying to do is get the contents of the SESSION 
 variable into the .js file, without compromising the answer. I think 
 however it may make more sense for me to simply have the challenge in 
 a separate template(that the user must go through first), before 
 allowing him access the form.

~|
ColdFusion MX7 and Flex 2 
Build sales  marketing dashboard RIA’s for your business. Upgrade now
http://www.adobe.com/products/coldfusion/flex2?sdid=RVJT

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


Re: collecting IP Address through database shopping cart

2007-04-13 Thread tracy sanchez
my bad, sorry I had 15 things going on when I posted that.

let me be a bit more detailed this time.

I currently do have some single page forms that I use this code to capture the 
IP Address:

cfset ipaddress=#cgi.remote_addr#
cfset IPArray = listToArray(IPAddress,.)
cfset IPNumber= (IPArray[1] * (256)^3) + (IPArray[2] * (256)^2) + (IPArray[3] 
* 256) + IPArray[4]

I placed that same code into my form on my cart and since my database won't 
accept cgi.remote_addr as a field name, I named the fied name in the database 
ipaddress. 

I then added this code on my processing form:

INSERT INTO orders (ipaddress, IDname, CCFname, CCLname, 
CCcompany,CCStreet1,CCStreet2,CCcity,CCstate,CCzip,Phone,Fax,Email,CCNumber,CCtype,CCexp,CCVC,shipFname,
 shipLname, 
shipcompany,shipStreet1,shipStreet2,shipcity,shipstate,shipzip,specialinstructions,
 orderdate, cleared, salestax, Shippingmethod, ShippingCost)
VALUES (
cfqueryparam cfsqltype=CF_SQL_VARCHAR 
value=#cgi.remote_addr#,

The problem I'm having is that on our end where we retrieve the order info, the 
ipaddres feild is showing our IP instead of the clients and for some reason is 
showing the clients IP in another field that is designated for the clients ID 
code.

In fact, it shows their IP and then their code and then their IP twice after 
that.

so, I'm not sure what I've done wrong.

any thoughts

and thanks for your quick response

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


Re: collecting IP Address through database shopping cart

2007-04-13 Thread Jon Clausen
On Apr 13, 2007, at 4:57 PM, tracy sanchez wrote:

 I currently do have some single page forms that I use this code to  
 capture the IP Address:

 cfset ipaddress=#cgi.remote_addr#
 cfset IPArray = listToArray(IPAddress,.)
 cfset IPNumber= (IPArray[1] * (256)^3) + (IPArray[2] * (256)^2) +  
 (IPArray[3] * 256) + IPArray[4]

Tracy,

I'm not sure why you would have separate forms to capture the IP  
address, since that  is available in your CGI variables.  Are you  
using CFHTTP to post to those forms in some way?  That would explain  
the why the value you're getting is the servers IP.

On your duplicate values, I would suggest checking your query.  It  
looks like you've got quite a few fields on your INSERT statement.  I  
would suggest looking at that query again and see if you have your  
list of query params out of order with your field list.   Ditto for  
your SELECT queries where you are retrieving the results.

Also, what are you trying to accomplish by converting the IP address  
into an IP number (with the array)?  That's not a slam on you, just  
trying to get clarification.  I assume you're just looking to store  
the only address as a simple value in your db for tracking purposes,  
correct?

HTH,

Jon



~|
ColdFusion MX7 and Flex 2 
Build sales  marketing dashboard RIA’s for your business. Upgrade now
http://www.adobe.com/products/coldfusion/flex2?sdid=RVJT

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


RE: CFHTTP not working?

2007-04-13 Thread Dave Watts
 Now why the hell can't CFMX respect the proxy settings on the 
 machine?  I can't have CFHTTP proxy attributes going up to my 
 live box.

If by the proxy settings on the machine you mean Internet Explorer's proxy
settings, those are typically user-specific and only used by Internet
Explorer and other Microsoft applications. If you opened the Microsoft
telnet client, and attempted to connect to the sites, it wouldn't use the
proxy settings either.

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!

This email has been processed by SmoothZap - www.smoothwall.net


~|
Deploy Web Applications Quickly across the enterprise with ColdFusion MX7  
Flex 2
Free Trial 
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJU

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


RE: Calling a Coldfusion Variable From a .js File

2007-04-13 Thread Dave Watts
 A secure hash might be what the doctor ordered. CF could send 
 a hashed version of the answer then you could run js code 
 to hash the users input before the compare.

I haven't read the whole thread, but if you send the hash to the browser,
anybody could just see the hash and ensure that gets sent again to the
server when appropriate.

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!

This email has been processed by SmoothZap - www.smoothwall.net


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


Re: CF and Java

2007-04-13 Thread Mark Mandel
Andrew,

Your code should be running the 'main' method that is defined in the Java code.

There is no constructor, for this class, so you code will fail.

You will need to create a String[], which is relatively easy using the
java.lang.reflect.Array Java class, and pass it into the main() method
(CF may actually do the translation for you if you use just a regular
Array, it may be worth checking).

Once you have your array, pass it in as an argument to the main()
method, and you should have what you need.

Mark

On 4/14/07, Phillip Duba [EMAIL PROTECTED] wrote:
 Andrew,

 I ran into this same issue doing stuff with SAML. Make sure you haven't
 moved the class file after it has been compiled. In other words, once
 you compile the Java class, you can't move it around to the classes
 library or some other directory. I don't know why, but ever time I moved
 my class file, the Init.init() call would fail. Also, ensure all the
 Apache XML libraries are in your CF classpath. Finally, you don't have a
 constructor on your class so your call should be: cfset ret =
 myObj.main(input.xml). HTH,

 Phil

 -Original Message-
 From: Andrew Whone [mailto:[EMAIL PROTECTED]
 Sent: Friday, April 13, 2007 10:53 AM
 To: CF-Talk
 Subject: CF and Java

 I have some java code which I want to kick in from a coldfusion page

 e.g. cfobject type=Java class=IRMark name=myObj
   cfset ret=myObj.init(input.xml)

 It ought to be simple enough, pass the file name to the class and get
 the base64 number back.
 The Coldfusion documentation states:
 Note: The init method is not a method of the object, but a ColdFusion
 identifier that calls the new function on the class constructor. So, if
 a Java object has an init method, a name conflict exists and you cannot
 call the object's init method.
 and I suspect this is where my problem lies but my java is still basic.
 I would be very grateful if anyone could at least give me a few pointers
 to solve this problem. I have tried lots of things without any success.

 The Java Code:

 import java.io.*;
 import javax.xml.parsers.*;
 import java.security.*;

 import org.w3c.dom.*;

 import org.apache.xml.security.signature.*;
 import org.apache.xml.security.transforms.*;
 import org.apache.xml.security.Init;

 import org.bouncycastle.util.encoders.Base64;


 /**
  * This code generates an IRmark value for an input document.
  * The value is a base64 encoded SHA1 digest of a signature
  * transform over a certain style of document. The value has
  * to be placed inside documents to be signed by the XPE when
  * used in a EDS/IR deployment.
  *
  * The code has a number of jar dependencies:-
  *  xmlsec.jar - The Apache XML Security Library
  *  log4j-1.2.5.jar - The Apache Log utility
  *  xalan.jar - Apache XSLT/XPath processor
  *  xercesImpl.jar - Apache XML processor
  *  bc-jce-jdk13-114.jar - Bouncy Castle JCE library
  *
  *  The Bouncy Castle JCE provider is automatically downloaded
  *  by the Apache XML sec library build so you may already have
  *  that.
  */


public class IRMark {

/**
 * Generate and print the IRmark.
 *
 * @param args - Pass the filename of the input document
 * @throws Exception
 */
 public static void main(String args[]) throws Exception {

 // Init the Apache XML security library
 Init.init();

 // Check we are given a file to work with
 if (args.length!=1) {
 System.out.println(Use: IRmark file );
 return;
 }

 // Open the input file
 FileInputStream fis=null;
 try {
 fis=new FileInputStream(args[0]);
 } catch (FileNotFoundException e) {
 System.out.println(The file  + args[0] + 
 could not be opened.);
 return;
 }

 // Load file into a byte array
 byte[] data=null;
 try {
 int bytes=fis.available();
 data=new byte[bytes];
 fis.read(data);
 } catch (IOException e) {
 System.out.println(Error reading file.);
 e.printStackTrace();
 }

 // First part is to run the a transform over the input
 to extract the
 // fragment to be digested. This is done by setting up a
 Transforms
 // object from a Template and then executing against the
 input document

 // The transforms to be performed are specified by using
 the template XML below.
 String transformStr =
 ?xml version='1.0'?\n
 + dsig:Transforms
 xmlns:dsig='http://www.w3.org/2000/09/xmldsig#'
 xmlns:gt='http://www.govtalk.gov.uk/CM/envelope'
 xmlns:ir='http://www.govtalk.gov.uk/taxation/CISrequest'\n
   

Re: Hostmysite down...

2007-04-13 Thread Dave l
The day after I wrote that there were 87 time out errors on the cart, so maybe 
what I will do is move the db to a mysql server thats on one of my vps accounts 
with little traffic and see.



  Im not sure what the issue is, I get the errors emailed to me and 
  bring up the site and its all working, just not the cart and the 
 cart 
  has its own db (mysql not access)
  


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


Re: Calling a Coldfusion Variable From a .js File

2007-04-13 Thread James Holmes
In this case try AJAX. You can fire off an event to send the CAPTCHA
string to a processing template, compare the sent string to the
session variable sever-side and send back a true or false result.

On 4/14/07, Byte Me [EMAIL PROTECTED] wrote:

 I have a form that has a CAPTCHA on it, the answer to the CAPTCHA is stored 
 in a CF SESSION variable. I use JavaScript to check the form contents being 
 submitted, which (now includes a CAPTCHA challenge). If I convert the answer 
 to js format(in the form), and then call it from the external .js file, that 
 will work fine, but the problem is, I made the answer available to any bots, 
 because it is now in the source code of the form. What I am trying to do is 
 get the contents of the SESSION variable into the .js file, without 
 compromising the answer. I think however it may make more sense for me to 
 simply have the challenge in a separate template(that the user must go 
 through first), before allowing him access the form.

-- 
mxAjax / CFAjax docs and other useful articles:
http://www.bifrost.com.au/blog/

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


Re: Using CFCs in session scope - need cflock help

2007-04-13 Thread Andrew Scott
Jason,

I answered your question, in my post I gave you a code example of what you
need to do.

So the answer is yes, when writing to any scoped variable you must cflock
the write. I am very sure I said that:-)


On 4/13/07, Jason Dunaway [EMAIL PROTECTED] wrote:

 I've been out of the office for 4 days so I'm just now responding.

 Thanks to all who offered valuable feedback and input.

 I am a huge fan of OO programing.  I graduated college in December 2002
 from Miami U. of Ohio.  The program I studied there really focused on OO
 design and use.  So I've been somewhat brainwashed, but I really believe
 in it despite this.

 So when I took on the current project my employer wanted the site cleaned
 up.  It was a mess prior to the redesign.  I chose to use components rather
 then using cookies or individual session variables because I love the
 structure and organization that a nice, neat wrapped up component
 providesand I love reusing code instead of having copies of it
 everywhere.  Everything is much more consistent and logical.  Instantiating
 them in session was a natural choice since, in theory, the data should be
 maintained for the user's session across all pages.  The main user component
 only contains DATA relevant to the user and methods that deal with this
 data.  I honestly don't see a huge problem with this because it's not a huge
 amount of code.  RAM is not really a concern to us, the machine is
 adequately equipped.

 So now we're having issues with the site timing out users prematurely and
 randomly.  We have verified that what is causing this is that the user is
 getting a NEW jsessionid from the server.  What we don't know is WHY this is
 happening.  Responses from another post I made where that there are a number
 of causes, many which are unrelated to actual code.

 What I really need to determine is if the lack of cflock in appropriate
 places is the culprit.  I see that there are pros/cons to using cfcs in
 session, as have been noted in most of the responses here, but I need to pin
 down what is causing it.  If anyone has any helpful advice please send it my
 way.  If you want to scorn me for using CFCs in session scope, please keep
 your comments to yourself unless you truely feel it is relevant to my
 problem.

 Thanks in advance!



 

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


Re: Hostmysite down...

2007-04-13 Thread Mary Jo Sminkey
 The day after I wrote that there were 87 time out errors on the cart, 
 so maybe what I will do is move the db to a mysql server thats on one 
 of my vps accounts with little traffic and see.

In one day? Wow, that is definitely very unusual, I've not had any reports of 
similar issues (if other people haven't run into it, they've not reported it 
back to me). Most people I hear from report 3-4 timeouts a day at worst. 
Definitely drop me a note and let me know how it turns out. 

--- Mary Jo


~|
Deploy Web Applications Quickly across the enterprise with ColdFusion MX7  
Flex 2
Free Trial 
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJU

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


Re: Hostmysite down...

2007-04-13 Thread Mary Jo Sminkey
I personally am getting a lot of these errors again:

Error starting thread: Not enough storage is available to process this command

Anyone else seeing them? I've repeatedly asked HMS to look into it, but they 
keep coming. 


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


Re: Hostmysite down...

2007-04-13 Thread Peter Tilbrook
My sites died too and took way to long to come back up. It was a ColdFusion or 
JRun crash as all other services were OK.

~|
ColdFusion MX7 and Flex 2 
Build sales  marketing dashboard RIA’s for your business. Upgrade now
http://www.adobe.com/products/coldfusion/flex2?sdid=RVJT

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


Re: Hostmysite down...

2007-04-13 Thread Peter Tilbrook
They could be running out of HDD space. I know that seems stupid but you'd be 
surprised at what comes crashing down when that happens.

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


Re: Calling a Coldfusion Variable From a .js File

2007-04-13 Thread Andrew Scott
I agree with James,

The best thing is to validate server side, whether it be anothe post to the
server or via an Ajax call.



On 4/14/07, James Holmes [EMAIL PROTECTED] wrote:

 In this case try AJAX. You can fire off an event to send the CAPTCHA
 string to a processing template, compare the sent string to the
 session variable sever-side and send back a true or false result.

 On 4/14/07, Byte Me [EMAIL PROTECTED] wrote:

  I have a form that has a CAPTCHA on it, the answer to the CAPTCHA is
 stored in a CF SESSION variable. I use JavaScript to check the form contents
 being submitted, which (now includes a CAPTCHA challenge). If I convert the
 answer to js format(in the form), and then call it from the external .js
 file, that will work fine, but the problem is, I made the answer available
 to any bots, because it is now in the source code of the form. What I am
 trying to do is get the contents of the SESSION variable into the .js file,
 without compromising the answer. I think however it may make more sense for
 me to simply have the challenge in a separate template(that the user must go
 through first), before allowing him access the form.

 --
 mxAjax / CFAjax docs and other useful articles:
 http://www.bifrost.com.au/blog/

 

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


Work for a good cause - NWF needs a ColdFusion/MSSQL guru

2007-04-13 Thread Web Team
Description: National Wildlife Federation is seeking a dynamic and dedicated 
worker to serve as an Internet Technology Manager. This person will be 
responsible for:

• System-wide technology implementation, customization, and maintenance.
• Translating approved organizational priorities and programs into new 
services.
• Directs and overseeing systems that support the organizations revenue and 
business objectives.
• Technology trend management.
• Managing servers and hosting environment to assure maximum uptime for the 
organization's online properties.
 
  
Position Type: Full-Time 
  
Department: Communications 
  
Salary Range: Based on Qualifications 
  
Education: • Bachelor’s degree in the field of business management or 
information technology. 
  
Required Skills: • Five years experience developing information architecture 
and accompanying relational databases and web-enabled applications; building 
and maintaining server and network systems; and relying on experience and 
judgment to optimize use of resources.
• Ability to effectively provide guidance to develop applications, give 
timely and helpful coaching to improve systems.
• Experience working in large organization working with all levels of staff 
and management. 
• Minimum 5 years experience developing in the following environment: 
Microsoft Windows 2003 Server - IIS 6.0, Microsoft SQL Server 2000, Transact 
SQL, including stored procedures, Adobe ColdFusion Pages, JavaScript, JAVA 
Enterprise platform (J2EE), Web Services, Web 2.0 Development, AJAX, Active 
Server Pages, and .NET Framework
 
  
Benefits: NWF offers an excellent benefits package. NWF is an equal opportunity 
employer committed to workplace diversity. Cover Letter and Resume are 
required. 


Visit
https://secure.nwf.org/careergateway/index.cfm?fuseAction=viewpositionID=10303 
to apply.

Thank you!

~|
Deploy Web Applications Quickly across the enterprise with ColdFusion MX7  
Flex 2
Free Trial 
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJU

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