RE: Windows CF5 Custom Tags Bug?
Sure, you can use closing tags with cfmodule : The only thing you have to look out for is cases of additional cfmodules inside... In this case, CF will think you are closing moo, not zoo. In this case, you will have to use syntax. [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Two messages
> From: Peter Tilbrook > > I am getting two copies of every message, one as ASCII and > one has HTML. Anyone else getting the same? Check the email addresses they're being sent to - you might be signed up for 2 separate addresses [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: Windows CF5 Custom Tags Bug?
Had the same problem with CFMODULE. As Dave explained, that is the solution, however I'm not sure if you can use that code with CFMODULE. We just stopped using the using the />. -Frank - Original Message - From: Jon Block To: CF-Talk Sent: Thursday, March 25, 2004 11:51 AM Subject: Windows CF5 Custom Tags Bug? Symptom (watered down): My application uses lots of custom tags. At one point in the code, I have a .CFM page called "myfile.cfm" which calls a custom tag is called that generates some text files called . That works great. Within the tag, I am calling an additional custom tag that generates some HTML for me called . The problem is that when, and only when, I call , the ENTIRE http request appears to be running two times! I can't understand why that would possibly happen. In other words, in my little tree of nested custom tags, a very simple tag which generates some text is causing the entire request to be evaluated by the server a second time. The result is I'm getting two sets of files created, rather than just the one that I want. What do I do? Has anybody ever seen this before? I monitored the HTTP traffic and it almost seems like the browser is somehow induced to re-submit the URL somehow. I'm so confused.. I've been working with CF for years but I have never seen anything like this... Jon [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Sticky Session Arrays??
Can someone help me with this code? Either of the below doesn't want to hold session.ActiveFlag as an array. My goal is to get the functionality that I believe A. would provide. But, I can't get B to work either. Thanks, Nick A. "NO")> B. [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Two messages
no sir, just one. tony r e v o l u t i o n w e b d e s i g n [EMAIL PROTECTED] www.revolutionwebdesign.com its only looks good to those who can see bad as well -anonymous -Original Message- From: Peter Tilbrook [mailto:[EMAIL PROTECTED] Sent: Thursday, March 25, 2004 8:08 PM To: CF-Talk Subject: Two messages I am getting two copies of every message, one as ASCII and one has HTML. Anyone else getting the same? Peter Tilbrook ColdFusion Applications Developer ColdGen Internet Solutions Manager, ACT and Region ColdFusion Users Group - http://www.actcfug.com 4/73 Tharwa Road Queanbeyan, NSW, 2620 AUSTRALIA [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Using CFC to dynamically populate a select using javascript?
This should be dead easy. I have Advanced CF Application Development (Forta) and it gives a simple example of using _javascript_ and a _javascript_ deserializer to grab the output of a CFC and turn it into a select. I can get the WDDX from the CFC, but for the life of me I cannot get wddxDesIE to do anything... Has anybody got anyclues on how to get that thing to work? [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: flash->cf to save data
In your CF page you are looking for URL variables: #url.id#, etc... Have you tried plain 'ol variables: not #url.id# but #id# ? -Original Message- From: Daniel Kessler [mailto:[EMAIL PROTECTED] Sent: Thursday, March 25, 2004 4:49 PM To: CF-Talk Subject: flash->cf to save data >What is the output of: >"http://www.preventcancer.org/bodyfun/main_game/save_game.cfm"; >save_game_o.sendAndLoad(composite,null,"GET"); I don't know as it won't pop out a page to display the information if I use either loadVars (sendAndLoad) or LoadVariables. However if I do getURL, which pops out a page, I see the proper querystring and CF outputs the expected data. At 4:42 PM -0500 3/25/04, Daniel Kessler wrote: >Is it something like this format? Can you type something like this URL into >your browser to get it to work? >http://www.preventcancer.org/bodyfun/main_game/save_game.cfm?id=1&high_scor e=100 yes. >Also have you tried to output the variables on your CF page to make sure >they are being seen before you do any processing? Like: > >#url.id# #url.high_score# #url.high_score_related_info# etc > I have with getURL and it looked fine, but not with sendAndLoad because it suppresses (it seems to me) the page output or rather I get it's redirected, supposedly to the flash app. I can get this to work with loadVariables, but not loadVars, which has sendAndLoad. The reason that I want sendAndLoad to work is that it's more flexible and I can track it's progress better. Also to return variable data to Flash, do I do: SELECT * FROM bodyfun_save_game WHERE identifier = #url.id# saved_game=#return_saved_game.saved_game# Should I expect that'll return a variable saved_game to the flash app? Wasn't much about this in the archives and the cf-flash list seemed lonely. Don'tya-all do alot of Flash too? -- Daniel Kessler Department of Public and Community Health University of Maryland Suite 2387 Valley Drive College Park, MD 20742-2611 301-405-2545 Phone www.phi.umd.edu _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Two messages
I am getting two copies of every message, one as ASCII and one has HTML. Anyone else getting the same? Peter Tilbrook ColdFusion Applications Developer ColdGen Internet Solutions Manager, ACT and Region ColdFusion Users Group - http://www.actcfug.com 4/73 Tharwa Road Queanbeyan, NSW, 2620 AUSTRALIA [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: Implementing 128-bit encryption
It does have to be set up on the server - requires a certificate, and a separate IP number that will listen on port 443, with host headers starting with https:// Both the server and the client must be able to deal with 128 bit encryption. Some providers already have a secure site, and allow clients to "share" their authentication certificate, however it is more secure to have your own certificate installed on your secure web site. Additionally, you will most likely use a sub-domain such as https://secure.yourdomain.tld You should be able to connect to the same database, in order to pass cart items back and forth with your public (unencrypted) site. == Stop spam on your domain, Anti-spam solutions http://www.clickdoug.com/mailfilter.cfm For hosting solutions http://www.clickdoug.com == If you woke up breathing, congratulations! You have been given another chance! - Original Message - From: Dan Farmer To: CF-Talk Sent: Thursday, March 25, 2004 5:46 PM Subject: Implementing 128-bit encryption Having never done this before with any coldfusion application, I'm not sure how to implement this. I'm guessing that this is something the server admin sets up and that he would create a secure directory which I would then place my application files into. is this correct? if not, what are the usual steps. Many thanks... __ Daniel Farmer Producer / Coldfusion Developer http://www.bernardclark.com/danfarmer.ca P: 613.284.1684 [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Implementing 128-bit encryption
> Having never done this before with any coldfusion > application, I'm not sure how to implement this. > > I'm guessing that this is something the server admin sets up > and that he would create a secure directory which I would > then place my application files into. > > is this correct? if not, what are the usual steps. This is simply a matter of web server configuration, and doesn't really have any CF-specific steps. Your web server administrator will typically have to install an SSL certificate, then configure the web server to require SSL for access to specific directories or files. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ phone: 202-797-5496 fax: 202-797-5444 [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Implementing 128-bit encryption
Having never done this before with any coldfusion application, I'm not sure how to implement this. I'm guessing that this is something the server admin sets up and that he would create a secure directory which I would then place my application files into. is this correct? if not, what are the usual steps. Many thanks... __ Daniel Farmer Producer / Coldfusion Developer http://www.bernardclark.com/danfarmer.ca P: 613.284.1684 [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: error bars in graphs
Have you looked at SVG at all? I've used it for a couple projects where we needed complex on-the-fly graphing and it worked very well. The biggest drawback is that it requires a plugin to view, but the apps I used it on were intranet apps, so that wasn't a hurdle. Cheers, barneyb > -Original Message- > From: Chris Watkins [mailto:[EMAIL PROTECTED] > Sent: Thursday, March 25, 2004 2:24 PM > To: CF-Talk > Subject: error bars in graphs > > Hi All, > > I'm working on a project where we need to do on-the-fly > graphs of some > scientific data. CFCHART does a great job of this, except > that there is > no option to add error bars to a graph. If you're rusty on your > graphing, error bars rest at the top of your value bar and > extend upwards and > downwards to show the error of the value. > > Can anyone recommend a package that can do this? CFCHART is perfect, > and I wish this was added to its functionality. I know that > it would make > a ton of molecular biologists very happy. :) > > Thanks, > Chris > > [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
error bars in graphs
Hi All, I'm working on a project where we need to do on-the-fly graphs of some scientific data. CFCHART does a great job of this, except that there is no option to add error bars to a graph. If you're rusty on your graphing, error bars rest at the top of your value bar and extend upwards and downwards to show the error of the value. Can anyone recommend a package that can do this? CFCHART is perfect, and I wish this was added to its functionality. I know that it would make a ton of molecular biologists very happy. :) Thanks, Chris [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Con't thread from CF-Comunnity
Can you pls show what your cfapplication tag looks like? -Stace _ From: Bushy [mailto:[EMAIL PROTECTED] Sent: Thursday, March 25, 2004 7:04 AM To: CF-Talk Subject: re: Con't thread from CF-Comunnity Hi, Sorry for the repeating thread but I was getting nowhere on CF-Community so I thought I'd ask you guys since I have no idea WTF is going on! I'm getting this error and I've followed the suggestions of other members like extended the timeout of SESSION and APPLICATION variables from the default in the CF Admin. My problem is this. I have an app (framed) where I'm displaying a treeview structure of directories and files on the server. Everything is working great. I added a refresh icon to my app when clicked, refreshes that frame only that does the diretory listing. If I let the app just sit for about 30+ minutes and click the refresh icon (NOT THE F5 BUTTON) I always get this error and I don't know why? I don't quite understand the error being displayed. Everyone is telling me that my SESSION is timing out/expiring but I increased the timeout to 12 hours for both so its not that at all. This is the little snippet that its puking on after awhile. See below: Error Diagnostic Information An error occured while evaluating the _expression_: SESSION.stDirFileAttributes[RecNo] = Attributes Error near line 7, column 35. _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Con't thread from CF-Comunnity
Just wondering if you're using numeric values or using #CreateTimeSpan(0,12,0,0)# inside cfapplication -S _ From: Bushy [mailto:[EMAIL PROTECTED] Sent: Thursday, March 25, 2004 7:04 AM To: CF-Talk Subject: re: Con't thread from CF-Comunnity Hi, Sorry for the repeating thread but I was getting nowhere on CF-Community so I thought I'd ask you guys since I have no idea WTF is going on! I'm getting this error and I've followed the suggestions of other members like extended the timeout of SESSION and APPLICATION variables from the default in the CF Admin. My problem is this. I have an app (framed) where I'm displaying a treeview structure of directories and files on the server. Everything is working great. I added a refresh icon to my app when clicked, refreshes that frame only that does the diretory listing. If I let the app just sit for about 30+ minutes and click the refresh icon (NOT THE F5 BUTTON) I always get this error and I don't know why? I don't quite understand the error being displayed. Everyone is telling me that my SESSION is timing out/expiring but I increased the timeout to 12 hours for both so its not that at all. This is the little snippet that its puking on after awhile. See below: Error Diagnostic Information An error occured while evaluating the _expression_: SESSION.stDirFileAttributes[RecNo] = Attributes Error near line 7, column 35. _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: CFHTTP dies on é
Claude Schneegans wrote: >>>Specify the right charset. > > > What character set? Isn't it supposed to be specified in the paged itself? First do a HEAD to determine the charset, then get the actual document. Jochem -- I don't get it immigrants don't work and steal our jobs - Loesje [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: CFMX 6.1 Single User Version.
Dave, Thanks... -JB Dave Watts wrote: > > I'm used to always working on the server version of ColdFusion. > > I was wondering if I'm running the single user version of CFMX > > does the scheduler work differently than the full server version > > of CFMX? > > In my experience, no, it works the same way. > > Dave Watts, CTO, Fig Leaf Software > http://www.figleaf.com/ > phone: 202-797-5496 > fax: 202-797-5444 > [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: Okay, bear with me, I'm not even sure what I'm asking...
is money. Its not a browser thing it's an HTML thing. Been around atleast since HTML 3.2. -adam > -Original Message- > From: Burns, John D [mailto:[EMAIL PROTECTED] > Sent: Thursday, March 25, 2004 09:46 PM > To: 'CF-Talk' > Subject: RE: Okay, bear with me, I'm not even sure what I'm asking... > > Yeah, I thought of that, but I am not aware of how compatible the > BaseHref option is. I just don't use it so I don't know if it's an IE > thing or all browsers. Anyway, I think the whole thing comes down to > the domain.com/client1 thing vs. the client1.domain.com thing as well. > I've played with that before and it's quite annoying. > > John Burns > > -Original Message- > From: Conan Saunders [mailto:[EMAIL PROTECTED] > Sent: Thursday, March 25, 2004 4:09 PM > To: CF-Talk > Subject: RE: Okay, bear with me, I'm not even sure what I'm asking... > > John's suggestion is good, and you might also see if using a BASE HREF > tag might help you. > > http://coveryourasp.com/BaseHref.asp > > Conan > > At 02:54 PM 3/25/2004, you wrote: > >I think the biggest problem is that you're handling 2 different kind of > > >URLs. 1 is a straight domains "www.client1.com" and one is a domain > >with a folder "development.somedomain.com/client1". Your best bet > >would be to use http://client1.somedomain.com for development because > >then you can use the options above (most notably the > >/images/something.gif approach because no matter what directory you're > >in, or which server you're on, the images directory is always located > >in the root for that site. > > > >John Burns > > > > > > [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: CFHTTP dies on é
>>Specify the right charset. What character set? Isn't it supposed to be specified in the paged itself? -- ___ See some cool custom tags here: http://www.contentbox.com/claude/customtags/tagstore.cfm Please send any spam to this address: [EMAIL PROTECTED] Thanks. [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: CFMX 6.1 Single User Version.
> I'm used to always working on the server version of ColdFusion. > I was wondering if I'm running the single user version of CFMX > does the scheduler work differently than the full server version > of CFMX? In my experience, no, it works the same way. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ phone: 202-797-5496 fax: 202-797-5444 [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Max id
Hey, you think your Thursday is bad? You had me thinking I had gone completely nuts :-) John -Original Message- From: Tony Weeg [mailto:[EMAIL PROTECTED] Sent: Thursday, March 25, 2004 4:50 PM To: CF-Talk Subject: RE: Max id nope, I missed the * :) what a Thursday... your right. -Original Message- From: Burns, John D [mailto:[EMAIL PROTECTED] Sent: Thursday, March 25, 2004 4:44 PM To: CF-Talk Subject: RE: Max id It would return the ID as part of the recordset, right, since it a select *? Maybe I'm missing the point. John Burns -Original Message- From: Tony Weeg [mailto:[EMAIL PROTECTED] Sent: Thursday, March 25, 2004 4:05 PM To: CF-Talk Subject: RE: Max id sure it would, but it wont give you that ID number that he is looking for... tw -Original Message- From: Burns, John D [mailto:[EMAIL PROTECTED] Sent: Thursday, March 25, 2004 3:58 PM To: CF-Talk Subject: RE: Max id Couldn't you do: Select top 1 * >From status Order by datechanged desc That will put the newest one on top and return only the top row. Am I missing something? John -Original Message- From: Robert Orlini [mailto:[EMAIL PROTECTED] Sent: Thursday, March 25, 2004 3:44 PM To: CF-Talk Subject: RE: Max id Thanks Tony,...only now I get the SQL error below. Robert O. "Column name 'status.id' is invalid in the ORDER BY clause because it is not contained in either an aggregate function or the GROUP BY clause." -Original Message- From: Tony Weeg [mailto:[EMAIL PROTECTED] Sent: Thursday, March 25, 2004 3:24 PM To: CF-Talk Subject: RE: Max id try this... Select TOP 1 MAX(ID), side_1_comments from status where datechanged = '#DateFormat(Now(), "mm/dd/")#' group by side_1_comments order by id DESC tw -Original Message- From: Robert Orlini [mailto:[EMAIL PROTECTED] Sent: Thursday, March 25, 2004 3:16 PM To: CF-Talk Subject: Max id I have a table that will be updated daily. In the table I want to select info from the latest record even if it is today's date. I used MAX(ID) to get the latest record. Is that good or am I going about this wrong? So far it doesn't seem to do that with my script below: Select MAX(ID), side_1_comments from status Where datechanged = '#DateFormat(Now(), "mm/dd/")#' Thx. Robert O. (HWW) _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Max id
nope, I missed the * :) what a Thursday... your right. -Original Message- From: Burns, John D [mailto:[EMAIL PROTECTED] Sent: Thursday, March 25, 2004 4:44 PM To: CF-Talk Subject: RE: Max id It would return the ID as part of the recordset, right, since it a select *? Maybe I'm missing the point. John Burns -Original Message- From: Tony Weeg [mailto:[EMAIL PROTECTED] Sent: Thursday, March 25, 2004 4:05 PM To: CF-Talk Subject: RE: Max id sure it would, but it wont give you that ID number that he is looking for... tw -Original Message- From: Burns, John D [mailto:[EMAIL PROTECTED] Sent: Thursday, March 25, 2004 3:58 PM To: CF-Talk Subject: RE: Max id Couldn't you do: Select top 1 * >From status Order by datechanged desc That will put the newest one on top and return only the top row. Am I missing something? John -Original Message- From: Robert Orlini [mailto:[EMAIL PROTECTED] Sent: Thursday, March 25, 2004 3:44 PM To: CF-Talk Subject: RE: Max id Thanks Tony,...only now I get the SQL error below. Robert O. "Column name 'status.id' is invalid in the ORDER BY clause because it is not contained in either an aggregate function or the GROUP BY clause." -Original Message- From: Tony Weeg [mailto:[EMAIL PROTECTED] Sent: Thursday, March 25, 2004 3:24 PM To: CF-Talk Subject: RE: Max id try this... Select TOP 1 MAX(ID), side_1_comments from status where datechanged = '#DateFormat(Now(), "mm/dd/")#' group by side_1_comments order by id DESC tw -Original Message- From: Robert Orlini [mailto:[EMAIL PROTECTED] Sent: Thursday, March 25, 2004 3:16 PM To: CF-Talk Subject: Max id I have a table that will be updated daily. In the table I want to select info from the latest record even if it is today's date. I used MAX(ID) to get the latest record. Is that good or am I going about this wrong? So far it doesn't seem to do that with my script below: Select MAX(ID), side_1_comments from status Where datechanged = '#DateFormat(Now(), "mm/dd/")#' Thx. Robert O. (HWW) _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Okay, bear with me, I'm not even sure what I'm asking...
Yeah, I thought of that, but I am not aware of how compatible the BaseHref option is. I just don't use it so I don't know if it's an IE thing or all browsers. Anyway, I think the whole thing comes down to the domain.com/client1 thing vs. the client1.domain.com thing as well. I've played with that before and it's quite annoying. John Burns -Original Message- From: Conan Saunders [mailto:[EMAIL PROTECTED] Sent: Thursday, March 25, 2004 4:09 PM To: CF-Talk Subject: RE: Okay, bear with me, I'm not even sure what I'm asking... John's suggestion is good, and you might also see if using a BASE HREF tag might help you. http://coveryourasp.com/BaseHref.asp Conan At 02:54 PM 3/25/2004, you wrote: >I think the biggest problem is that you're handling 2 different kind of >URLs. 1 is a straight domains "www.client1.com" and one is a domain >with a folder "development.somedomain.com/client1". Your best bet >would be to use http://client1.somedomain.com for development because >then you can use the options above (most notably the >/images/something.gif approach because no matter what directory you're >in, or which server you're on, the images directory is always located >in the root for that site. > >John Burns [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
flash->cf to save data
>What is the output of: >"http://www.preventcancer.org/bodyfun/main_game/save_game.cfm"; >save_game_o.sendAndLoad(composite,null,"GET"); I don't know as it won't pop out a page to display the information if I use either loadVars (sendAndLoad) or LoadVariables. However if I do getURL, which pops out a page, I see the proper querystring and CF outputs the expected data. At 4:42 PM -0500 3/25/04, Daniel Kessler wrote: >Is it something like this format? Can you type something like this URL into >your browser to get it to work? >http://www.preventcancer.org/bodyfun/main_game/save_game.cfm?id=1&high_score=100 yes. >Also have you tried to output the variables on your CF page to make sure >they are being seen before you do any processing? Like: > >#url.id# #url.high_score# #url.high_score_related_info# etc > I have with getURL and it looked fine, but not with sendAndLoad because it suppresses (it seems to me) the page output or rather I get it's redirected, supposedly to the flash app. I can get this to work with loadVariables, but not loadVars, which has sendAndLoad. The reason that I want sendAndLoad to work is that it's more flexible and I can track it's progress better. Also to return variable data to Flash, do I do: SELECT * FROM bodyfun_save_game WHERE identifier = #url.id# saved_game=#return_saved_game.saved_game# Should I expect that'll return a variable saved_game to the flash app? Wasn't much about this in the archives and the cf-flash list seemed lonely. Don'tya-all do alot of Flash too? -- Daniel Kessler Department of Public and Community Health University of Maryland Suite 2387 Valley Drive College Park, MD 20742-2611 301-405-2545 Phone www.phi.umd.edu [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Max id
It would return the ID as part of the recordset, right, since it a select *? Maybe I'm missing the point. John Burns -Original Message- From: Tony Weeg [mailto:[EMAIL PROTECTED] Sent: Thursday, March 25, 2004 4:05 PM To: CF-Talk Subject: RE: Max id sure it would, but it wont give you that ID number that he is looking for... tw -Original Message- From: Burns, John D [mailto:[EMAIL PROTECTED] Sent: Thursday, March 25, 2004 3:58 PM To: CF-Talk Subject: RE: Max id Couldn't you do: Select top 1 * >From status Order by datechanged desc That will put the newest one on top and return only the top row. Am I missing something? John -Original Message- From: Robert Orlini [mailto:[EMAIL PROTECTED] Sent: Thursday, March 25, 2004 3:44 PM To: CF-Talk Subject: RE: Max id Thanks Tony,...only now I get the SQL error below. Robert O. "Column name 'status.id' is invalid in the ORDER BY clause because it is not contained in either an aggregate function or the GROUP BY clause." -Original Message- From: Tony Weeg [mailto:[EMAIL PROTECTED] Sent: Thursday, March 25, 2004 3:24 PM To: CF-Talk Subject: RE: Max id try this... Select TOP 1 MAX(ID), side_1_comments from status where datechanged = '#DateFormat(Now(), "mm/dd/")#' group by side_1_comments order by id DESC tw -Original Message- From: Robert Orlini [mailto:[EMAIL PROTECTED] Sent: Thursday, March 25, 2004 3:16 PM To: CF-Talk Subject: Max id I have a table that will be updated daily. In the table I want to select info from the latest record even if it is today's date. I used MAX(ID) to get the latest record. Is that good or am I going about this wrong? So far it doesn't seem to do that with my script below: Select MAX(ID), side_1_comments from status Where datechanged = '#DateFormat(Now(), "mm/dd/")#' Thx. Robert O. (HWW) _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: OT: Javascript documents?
Not exactly what you are loking for either but is very useful. http://www.blooberry.com/indexdot/html/index.html Tyler Clendenin GSL Solutions _ From: Rob [mailto:[EMAIL PROTECTED] Sent: Thursday, March 25, 2004 1:20 PM To: CF-Talk Subject: Re: OT: _javascript_ documents? On Thu, 2004-03-25 at 09:58, Burns, John D wrote: > Does anyone know of a simple visual representation of _javascript_ > objects, properties, methods, etc. in a simple table view? I was > thinking it'd be really nice to have a breakdown of all of the objects > and which properties fell underneath them in a format like below: > > document > |_form > |_ elements > |_ name > |_value > |_length > > > Anyone know of something like that? The closest I have seen is this: http://www.devguru.com/Technologies/ecmascript/quickref/js_objects.html It's not quite a tree format, but then the tree format would seem to indicate that element is a subclass of from is a subclass of document which is not correct (I believe). Post if you find some thing good Cheers, -- Rob <[EMAIL PROTECTED]> _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Max id
*? -Original Message- From: Tony Weeg [mailto:[EMAIL PROTECTED] Sent: Thursday, March 25, 2004 4:05 PM To: CF-Talk Subject: RE: Max id sure it would, but it wont give you that ID number that he is looking for... tw -Original Message- From: Burns, John D [mailto:[EMAIL PROTECTED] Sent: Thursday, March 25, 2004 3:58 PM To: CF-Talk Subject: RE: Max id Couldn't you do: Select top 1 * >From status Order by datechanged desc That will put the newest one on top and return only the top row. Am I missing something? John -Original Message- From: Robert Orlini [mailto:[EMAIL PROTECTED] Sent: Thursday, March 25, 2004 3:44 PM To: CF-Talk Subject: RE: Max id Thanks Tony,...only now I get the SQL error below. Robert O. "Column name 'status.id' is invalid in the ORDER BY clause because it is not contained in either an aggregate function or the GROUP BY clause." -Original Message- From: Tony Weeg [mailto:[EMAIL PROTECTED] Sent: Thursday, March 25, 2004 3:24 PM To: CF-Talk Subject: RE: Max id try this... Select TOP 1 MAX(ID), side_1_comments from status where datechanged = '#DateFormat(Now(), "mm/dd/")#' group by side_1_comments order by id DESC tw -Original Message- From: Robert Orlini [mailto:[EMAIL PROTECTED] Sent: Thursday, March 25, 2004 3:16 PM To: CF-Talk Subject: Max id I have a table that will be updated daily. In the table I want to select info from the latest record even if it is today's date. I used MAX(ID) to get the latest record. Is that good or am I going about this wrong? So far it doesn't seem to do that with my script below: Select MAX(ID), side_1_comments from status Where datechanged = '#DateFormat(Now(), "mm/dd/")#' Thx. Robert O. (HWW) _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: help with drop-downs and onChange
I use one of two ways, but i prefer it to use the event object. ex. > blah blah > blah blah function setDept() { mySelect = event.srcElement; if(mySelect.selectedIndex != 0) { myindex=mySelect.selectedIndex; var document.frm.hidselect.value = mySelect.options[myindex].value; } return true; } Tyler Clendenin GSL Solutions _ From: cf coder [mailto:[EMAIL PROTECTED] Sent: Thursday, March 25, 2004 5:36 AM To: CF-Talk Subject: help with drop-downs and onChange I have two select boxes (drop-down boxes) in my form, they both have a different onChange function. I want both the drop downs to call the same function. > blah blah > blah blah Hope I am making sense. Here is my code. function setDept1() { if (document.frm.select1.selectedIndex != 0) { myindex=document.frm.select1.selectedIndex; var document.frm.hidselect.value = document.frm.select1.options[myindex].value; return true; } } How do I pass the name of the drop-down box to the function and then assign the selected option value to a hidden variable. Can anybody please help me get round this problem. Best regards, cfcoder __ Do you Yahoo!? Yahoo! Finance Tax Center - File online. File on time. http://taxes.yahoo.com/filing.html _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: CFHTTP dies on é
Brook Davies wrote: > Where do I find a list of known bugs for cfmx 6.1? CFHTTP dies (only > returns text up to) this character ? > > Does any one know a way around this? Specify the right charset. Jochem -- I don't get it immigrants don't work and steal our jobs - Loesje [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
CFHTTP dies on é
Where do I find a list of known bugs for cfmx 6.1? CFHTTP dies (only returns text up to) this character é Does any one know a way around this? Brook Davies logiforms.com [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Okay, bear with me, I'm not even sure what I'm asking...
John's suggestion is good, and you might also see if using a BASE HREF tag might help you. http://coveryourasp.com/BaseHref.asp Conan At 02:54 PM 3/25/2004, you wrote: >I think the biggest problem is that you're handling 2 different kind of >URLs. 1 is a straight domains "www.client1.com" and one is a domain >with a folder "development.somedomain.com/client1". Your best bet would >be to use http://client1.somedomain.com for development because then you >can use the options above (most notably the /images/something.gif >approach because no matter what directory you're in, or which server >you're on, the images directory is always located in the root for that >site. > >John Burns [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Okay, bear with me, I'm not even sure what I'm asking...
Ok let's review: This: [src="" not "include" anything in the page processing. Instead it generates a separate http request AFTER the page is downloaded to the browser. That second request goes to: http://*whateverMyDomainIsCalled*.com/images/image1.jpg This: [ RUNS the code in the file at: c:\*whateverTheCURRENTtemplateDirectoryIs*\Client1\navbar.cfm So if you want to include something from the root which is at: c:\wwwdocs\Client1\ And the template CALLING the included code is in C:wwwdocs\Client1\legal\ and you use the server first looks to see if there is a mapping for "/" in the cf settings. If there is no mapping for "/", it then looks to see if there is a directory (a folder) called /client1 in directory (folder) containing the Calling template (the one in /legal/). It never actually looks at the root of the WEBSITE because CF has no knowledge of those settings IIS hands a request to CF, CF fills a buffer with stuff to send back and hands it back to IIS. That's how it works. In the scenario that you present, and assuming you are using the default installation of CF, if you tried: (what's a tamplate?) the web server would try to include from the "/" mapping - usually the default web site directory - like inetpub/wwwdocs. If your web site is NOT the default web site on the server, or if the mapping has been removed (maybe a good idea on a shared server), then you will throw an error. If you tried from the /legal/ directory - it would be looking for: c:\*whateverTheCURRENTtemplateDirectoryIs*\legal\Client1\navbar.cfm again it would fail. There are only 2 ways to to call a file using CFINCLUDE from (for example) c:\sites\mywebsites\client1\legal" that resides in c:\sites\mywebsites\client1\ 1) use the ubiquitous 2 periods to move back one dir B) Create a mapping in the cf administrator to use. For example, if you created a mapping called /bob/ that pointed to c:\sites\mywebsites\client1\ you could do and it would work.. although it might be a tradmark infringement. I hope this helps. Mark -Original Message- From: Jeff Small [mailto:[EMAIL PROTECTED] Sent: Thursday, March 25, 2004 1:56 PM To: CF-Talk Subject: Re: Okay, bear with me, I'm not even sure what I'm asking... - Original Message - From: "Mark A. Kruger - CFG" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Thursday, March 25, 2004 2:36 PM Subject: RE: Okay, bear with me, I'm not even sure what I'm asking... > Did I misunderstand this - I think he IS asking why he can't use exaclty like he uses ... why > src="" works and why template="/images/blah.cfm"> doesn't... right? I don't think he's > asking how to use the image tag, I think he's asking how to get at the root using cfinclude - which IS germane to a cf > mapping. > Okay, see? I wasn't sure WHAT I was asking, but I knew I wasn't asking about using the image tag, lol. We've got several clients. They're all located this way. http://development.somedomain.com/client1/ http://development.somedomain.com/client2/ http://development.somedomain.com/client3/ And say, under client1/ (which is located at C://InetPub/wwwroot/client1/ logically) there are a couple of subdirectories (say client1/About/, client1/Contact/, client1/Products/, ) and for the index page in each directory, he'd like to use one include for footer/legal/link stuff in the root, or navigation include in the root (say for example Client1/navbar.cfm, and Client1/disclaimer.cfm) and in those directories, he wants to use absolute paths for the image directory in the root, so in his ONE include, he can say [src="" and it will work whether or not he's in the root, or in the lower (Products) directory. Make sense now? We'd like to have a "mapping" somehow for: http://development.somedomain.com/client1/ http://development.somedomain.com/client2/ http://development.somedomain.com/client3/ That would make it the root of each site so we could use cfincludes in that manner. Is a CF-Mapping what I'm looking for? [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Max id
sure it would, but it wont give you that ID number that he is looking for... tw -Original Message- From: Burns, John D [mailto:[EMAIL PROTECTED] Sent: Thursday, March 25, 2004 3:58 PM To: CF-Talk Subject: RE: Max id Couldn't you do: Select top 1 * >From status Order by datechanged desc That will put the newest one on top and return only the top row. Am I missing something? John -Original Message- From: Robert Orlini [mailto:[EMAIL PROTECTED] Sent: Thursday, March 25, 2004 3:44 PM To: CF-Talk Subject: RE: Max id Thanks Tony,...only now I get the SQL error below. Robert O. "Column name 'status.id' is invalid in the ORDER BY clause because it is not contained in either an aggregate function or the GROUP BY clause." -Original Message- From: Tony Weeg [mailto:[EMAIL PROTECTED] Sent: Thursday, March 25, 2004 3:24 PM To: CF-Talk Subject: RE: Max id try this... Select TOP 1 MAX(ID), side_1_comments from status where datechanged = '#DateFormat(Now(), "mm/dd/")#' group by side_1_comments order by id DESC tw -Original Message- From: Robert Orlini [mailto:[EMAIL PROTECTED] Sent: Thursday, March 25, 2004 3:16 PM To: CF-Talk Subject: Max id I have a table that will be updated daily. In the table I want to select info from the latest record even if it is today's date. I used MAX(ID) to get the latest record. Is that good or am I going about this wrong? So far it doesn't seem to do that with my script below: Select MAX(ID), side_1_comments from status Where datechanged = '#DateFormat(Now(), "mm/dd/")#' Thx. Robert O. (HWW) _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Max id
Couldn't you do: Select top 1 * >From status Order by datechanged desc That will put the newest one on top and return only the top row. Am I missing something? John -Original Message- From: Robert Orlini [mailto:[EMAIL PROTECTED] Sent: Thursday, March 25, 2004 3:44 PM To: CF-Talk Subject: RE: Max id Thanks Tony,...only now I get the SQL error below. Robert O. "Column name 'status.id' is invalid in the ORDER BY clause because it is not contained in either an aggregate function or the GROUP BY clause." -Original Message- From: Tony Weeg [mailto:[EMAIL PROTECTED] Sent: Thursday, March 25, 2004 3:24 PM To: CF-Talk Subject: RE: Max id try this... Select TOP 1 MAX(ID), side_1_comments from status where datechanged = '#DateFormat(Now(), "mm/dd/")#' group by side_1_comments order by id DESC tw -Original Message- From: Robert Orlini [mailto:[EMAIL PROTECTED] Sent: Thursday, March 25, 2004 3:16 PM To: CF-Talk Subject: Max id I have a table that will be updated daily. In the table I want to select info from the latest record even if it is today's date. I used MAX(ID) to get the latest record. Is that good or am I going about this wrong? So far it doesn't seem to do that with my script below: Select MAX(ID), side_1_comments from status Where datechanged = '#DateFormat(Now(), "mm/dd/")#' Thx. Robert O. (HWW) _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: CFWDDX converts to lower case?
>>I guess your only option This is was I was affraid of. However, I finally found simpler to modify the names used like tableLeft to table_left, so it is not affected by lowe case. Thanks. But still, I wonder why the developers of WDDX decided to use this lower case which nobody needs anyway? And worse, not documented this "feature". -- ___ See some cool custom tags here: http://www.contentbox.com/claude/customtags/tagstore.cfm Please send any spam to this address: [EMAIL PROTECTED] Thanks. [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Okay, bear with me, I'm not even sure what I'm asking...
The basic answer is: If you're talking about how to get the right path to use then you may need to set up a CF mapping. If you're talking about how to get an to point to a certain location, then you need to base the location of the src="" on the location of the main file being called through the web address, _NOT_ the location of the included file. In you example, if your server is set up as such: http://development.somedomain.com/client1 And under client1, you have the following structure: client1 |_ about |_index.cfm |_ contact |_index.cfm |_ images |_something.gif |_ products |_index.cfm If someone navigates to http://development.somedomain.com/client1/about/index.cfm and you include a navbar.cfm in the page, you could reference the image in one of 2 ways. One would be (which obviously won't be good when you move the site to www.client1.com because the image path will look for a folder called client1 in the root of the site and it won't find it) The better way to reference it would be higher and then look for an images folder which is in the same place on either dev or live (1 directory higher). However, if there's an index.cfm in the client1 folder and it includes the navbar.cfm, neither approach will work on both servers. In that instance, you could create an "images" virtual directory and reference the images by /images/something.gif. I think the biggest problem is that you're handling 2 different kind of URLs. 1 is a straight domains "www.client1.com" and one is a domain with a folder "development.somedomain.com/client1". Your best bet would be to use http://client1.somedomain.com for development because then you can use the options above (most notably the /images/something.gif approach because no matter what directory you're in, or which server you're on, the images directory is always located in the root for that site. John Burns -Original Message- From: Jeff Small [mailto:[EMAIL PROTECTED] Sent: Thursday, March 25, 2004 2:56 PM To: CF-Talk Subject: Re: Okay, bear with me, I'm not even sure what I'm asking... - Original Message - From: "Mark A. Kruger - CFG" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Thursday, March 25, 2004 2:36 PM Subject: RE: Okay, bear with me, I'm not even sure what I'm asking... > Did I misunderstand this - I think he IS asking why he can't use exaclty like he uses ... why > src="" works and why template="/images/blah.cfm"> doesn't... right? I don't think he's > asking how to use the image tag, I think he's asking how to get at the root using cfinclude - which IS germane to a cf > mapping. > Okay, see? I wasn't sure WHAT I was asking, but I knew I wasn't asking about using the image tag, lol. We've got several clients. They're all located this way. http://development.somedomain.com/client1/ http://development.somedomain.com/client2/ http://development.somedomain.com/client3/ And say, under client1/ (which is located at C://InetPub/wwwroot/client1/ logically) there are a couple of subdirectories (say client1/About/, client1/Contact/, client1/Products/, ) and for the index page in each directory, he'd like to use one include for footer/legal/link stuff in the root, or navigation include in the root (say for example Client1/navbar.cfm, and Client1/disclaimer.cfm) and in those directories, he wants to use absolute paths for the image directory in the root, so in his ONE include, he can say [src="" and it will work whether or not he's in the root, or in the lower (Products) directory. Make sense now? We'd like to have a "mapping" somehow for: http://development.somedomain.com/client1/ http://development.somedomain.com/client2/ http://development.somedomain.com/client3/ That would make it the root of each site so we could use cfincludes in that manner. Is a CF-Mapping what I'm looking for? [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Max id
Select TOP 1 MAX(ID), side_1_comments from status where datechanged = '#DateFormat(Now(), "mm/dd/")#' group by side_1_comments, id order by id DESC try that. -Original Message- From: Robert Orlini [mailto:[EMAIL PROTECTED] Sent: Thursday, March 25, 2004 3:44 PM To: CF-Talk Subject: RE: Max id Thanks Tony,...only now I get the SQL error below. Robert O. "Column name 'status.id' is invalid in the ORDER BY clause because it is not contained in either an aggregate function or the GROUP BY clause." -Original Message- From: Tony Weeg [mailto:[EMAIL PROTECTED] Sent: Thursday, March 25, 2004 3:24 PM To: CF-Talk Subject: RE: Max id try this... Select TOP 1 MAX(ID), side_1_comments from status where datechanged = '#DateFormat(Now(), "mm/dd/")#' group by side_1_comments order by id DESC tw -Original Message- From: Robert Orlini [mailto:[EMAIL PROTECTED] Sent: Thursday, March 25, 2004 3:16 PM To: CF-Talk Subject: Max id I have a table that will be updated daily. In the table I want to select info from the latest record even if it is today's date. I used MAX(ID) to get the latest record. Is that good or am I going about this wrong? So far it doesn't seem to do that with my script below: Select MAX(ID), side_1_comments from status Where datechanged = '#DateFormat(Now(), "mm/dd/")#' Thx. Robert O. (HWW) _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
CFMX 6.1 Single User Version.
Hello All: CFMX 6.1 Server Question Regarding the Single User Version. Im used to always working on the server version of ColdFusion. I was wondering if Im running the single user version of CFMX does the scheduler work differently than the full server version of CFMX? Regards, James Blaha [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Max id
Thanks Tony,...only now I get the SQL error below. Robert O. "Column name 'status.id' is invalid in the ORDER BY clause because it is not contained in either an aggregate function or the GROUP BY clause." -Original Message- From: Tony Weeg [mailto:[EMAIL PROTECTED] Sent: Thursday, March 25, 2004 3:24 PM To: CF-Talk Subject: RE: Max id try this... Select TOP 1 MAX(ID), side_1_comments from status where datechanged = '#DateFormat(Now(), "mm/dd/")#' group by side_1_comments order by id DESC tw -Original Message- From: Robert Orlini [mailto:[EMAIL PROTECTED] Sent: Thursday, March 25, 2004 3:16 PM To: CF-Talk Subject: Max id I have a table that will be updated daily. In the table I want to select info from the latest record even if it is today's date. I used MAX(ID) to get the latest record. Is that good or am I going about this wrong? So far it doesn't seem to do that with my script below: Select MAX(ID), side_1_comments from status Where datechanged = '#DateFormat(Now(), "mm/dd/")#' Thx. Robert O. (HWW) _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: Max id
At 01:16 PM 3/25/2004, you wrote: >I have a table that will be updated daily. In the table I want to select >info from the latest record even if it is today's date. I used MAX(ID) to >get the latest record. Is that good or am I going about this wrong? You might try select side_1_comments from status order by datechanged desc That should get the record data with the most recent 'datechanged' date/time. [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: SQL Q
Yeah - I'm not an expert either but thank for the idea. Regardsw, Howie - Original Message - From: Qasim Rasheed To: CF-Talk Sent: Thursday, March 25, 2004 12:30 PM Subject: RE: SQL Q I am not an RegEx expert but I guess this could be a nice candidate for one Qasim [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Max id
try this... Select TOP 1 MAX(ID), side_1_comments from status where datechanged = '#DateFormat(Now(), "mm/dd/")#' group by side_1_comments order by id DESC tw -Original Message- From: Robert Orlini [mailto:[EMAIL PROTECTED] Sent: Thursday, March 25, 2004 3:16 PM To: CF-Talk Subject: Max id I have a table that will be updated daily. In the table I want to select info from the latest record even if it is today's date. I used MAX(ID) to get the latest record. Is that good or am I going about this wrong? So far it doesn't seem to do that with my script below: Select MAX(ID), side_1_comments from status Where datechanged = '#DateFormat(Now(), "mm/dd/")#' Thx. Robert O. (HWW) [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: flash->cf to save data
What is the output of: "http://www.preventcancer.org/bodyfun/main_game/save_game.cfm"; save_game_o.sendAndLoad(composite,null,"GET"); Is it something like this format? Can you type something like this URL into your browser to get it to work? http://www.preventcancer.org/bodyfun/main_game/save_game.cfm?id=1 e=150&high_score_releated=whatever> &high_score=150&high_score_releated=whatever Also have you tried to output the variables on your CF page to make sure they are being seen before you do any processing? Like: #url.id# #url.high_score# #url.high_score_related_info# etc -Original Message- From: Daniel Kessler [mailto:[EMAIL PROTECTED] Sent: Thursday, March 25, 2004 12:58 PM To: CF-Talk Subject: flash->cf to save data I'm trying to send data from Flash to Cold Fusion to have it entered in a DB. I can't get it to work. I'm experienced at flash but have not used loadVars before and am new to CF. I have simplified the loadVars to a full url and a pretermined string, rather than building the string. The CF uses url.variable to get the info, so I'm passing it via the querystring. No matter what I do, it doesn't update on the DB. Here's the Flash code: function sendData(save_string){ // Create a LoadVars object to hold the variables we wish to send save_game_o = new LoadVars(); save_game_o.id = 1; save_game_o.high_score=50; save_game_o.high_score_related_info=bent|tennis_player; save_game_o.saved_game="user{ljkh,11,3,B,m}score{0,1,1}vegetables}wo{}so{}so {}hph{0}"; save_game_o.load = function(success) { if (success) { //doesn't show this// _level1.error.text = "success:"+success; } else { _level1.error.text = "error loading data"; } }; var composite = "http://www.preventcancer.org/bodyfun/main_game/save_game.cfm"; save_game_o.sendAndLoad(composite,null,"GET"); } The CF is at: http://www.phiresearch.umd.edu/bodyfun/main_game/save_game.cfm I put it on a server that doesn't have CF just so that you can view the code. The flash uses a server that runs CF fine. Also, I made a composite of the url and the querystring and it worked fine, updating all the info, so it seems to be a Flash to CF communication problem. thanks for any help. -- Daniel Kessler Department of Public and Community Health University of Maryland Suite 2387 Valley Drive College Park, MD 20742-2611 301-405-2545 Phone www.phi.umd.edu _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Max id
I have a table that will be updated daily. In the table I want to select info from the latest record even if it is today's date. I used MAX(ID) to get the latest record. Is that good or am I going about this wrong? So far it doesn't seem to do that with my script below: Select MAX(ID), side_1_comments from status Where datechanged = '#DateFormat(Now(), "mm/dd/")#' Thx. Robert O. (HWW) [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: Okay, bear with me, I'm not even sure what I'm asking...
- Original Message - From: "Mark A. Kruger - CFG" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Thursday, March 25, 2004 2:36 PM Subject: RE: Okay, bear with me, I'm not even sure what I'm asking... > Did I misunderstand this - I think he IS asking why he can't use exaclty like he uses ... why > src="" works and why template="/images/blah.cfm"> doesn't... right? I don't think he's > asking how to use the image tag, I think he's asking how to get at the root using cfinclude - which IS germane to a cf > mapping. > Okay, see? I wasn't sure WHAT I was asking, but I knew I wasn't asking about using the image tag, lol. We've got several clients. They're all located this way. http://development.somedomain.com/client1/ http://development.somedomain.com/client2/ http://development.somedomain.com/client3/ And say, under client1/ (which is located at C://InetPub/wwwroot/client1/ logically) there are a couple of subdirectories (say client1/About/, client1/Contact/, client1/Products/, ) and for the index page in each directory, he'd like to use one include for footer/legal/link stuff in the root, or navigation include in the root (say for example Client1/navbar.cfm, and Client1/disclaimer.cfm) and in those directories, he wants to use absolute paths for the image directory in the root, so in his ONE include, he can say [src="" and it will work whether or not he's in the root, or in the lower (Products) directory. Make sense now? We'd like to have a "mapping" somehow for: http://development.somedomain.com/client1/ http://development.somedomain.com/client2/ http://development.somedomain.com/client3/ That would make it the root of each site so we could use cfincludes in that manner. Is a CF-Mapping what I'm looking for? [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: CFWDDX converts to lower case?
I guess your only option is to modify the original JS in the same way I suggest modifying the CF - i.e. modify your structure so you store an extra copy of the key - this way the case will be preserved. [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: ECommerce practices
If you are going to store it in the Session scope, then don't bother converting to WDDX. You only need to convert to WDDX when you need to store a complex variable (struct or array) as a string. If you want to store the FORM struct in the SESSION struct, just do this: Now "session.myform" points to the same struct as "form" and you won't lose it. +---+ Bryan Love Database Analyst Macromedia Certified Professional Internet Application Developer TeleCommunication Systems [EMAIL PROTECTED] +---+ "...'If there must be trouble, let it be in my day, that my child may have peace'..." - Thomas Paine, The American Crisis "Let's Roll" - Todd Beamer, Flight 93 -Original Message- From: Ryan Kime [mailto:[EMAIL PROTECTED] Sent: Thursday, March 25, 2004 6:52 AM To: CF-Talk Subject: RE: ECommerce practices To answer some of your questions My favorite way to pass variables from page to page is to create a struct of the form variables and then throw it in a wddx using the session scope. You could write a struct for each section and keep rolling it into wddx's. Then in the end roll them out and append the different structs into one which makes it easy to pass the variables as an "argumentcollection" in a CFC. -Original Message- From: Cutter (CF-Talk) [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 24, 2004 7:10 PM To: CF-Talk Subject: ECommerce practices Just looking for other's insight. Can't think of a better group to ask... I'm setting up a custom ecomm area (current is a setup using the JASC component my boss implemented before I got here). What the big boss would like is something that wouldn't fit into the general templates you find all over, so I'm working from scratch on most of this. I'm trying to find what would be the best method for initially handling order details. Most of the items are apparel. The user would first select a category, then select a specific item/design from a thumbnail. Next they would be shown a larger image with the different colors it would be offered in. The user would select the color they want, taking them to the next screen where different size options would be available. The user would enter in the quantity of each size they may want. The next step would verify the item/design, basic product detail, color, sizes and quantities, and the price (showing price differences for oversized products as well). At this point it would then continue to the basics (name, addy, payment, etc.) My question is this. Every step of this process is some type of form. I could use hidden form fields to carry over all of the information from screen to screen, but this seems a little tedious, inelegant, and possibly somewhat insecure. What is suggested process in this type of situation? Should I set up some kind of struct var to handle the details? Would this best be handled within the session or client scopes? How does one best prevent race conditions? The end run is to write the details to a db once the order is processed, but I've seen what can happen when writing the details to a db from the get go and then having the user cancel the order or the payment is not approved (not my design, and it was ugly...) So, any suggestions are welcome and appreciated. TIA Cutter _ _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: CFWDDX converts to lower case?
>>did you see my example of storing the key as another value? I did, but I just don't see how I can recreate the correct _javascript_ code out of this. In my case, the keys may be 2 or 3 levels deep in the _javascript_ structure. Furthermore, the WDDX is created from _javascript_, not from CF. -- ___ See some cool custom tags here: http://www.contentbox.com/claude/customtags/tagstore.cfm Please send any spam to this address: [EMAIL PROTECTED] Thanks. [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Okay, bear with me, I'm not even sure what I'm asking...
Did I misunderstand this - I think he IS asking why he can't use exaclty like he uses ... why src="" works and why doesn't... right? I don't think he's asking how to use the image tag, I think he's asking how to get at the root using cfinclude - which IS germane to a cf mapping. -mk -Original Message- From: Burns, John D [mailto:[EMAIL PROTECTED] Sent: Thursday, March 25, 2004 12:56 PM To: CF-Talk Subject: RE: Okay, bear with me, I'm not even sure what I'm asking... No, mappings in CF have nothing to do with the web path to the images directory. The mappings in CFAdmin only have to do with all of that is managed by your web server. You just have to remember that as far as the browser is concerned, one file is being called (no matter how many includes you're doing) and all of your need to have the right path when they're called by the main document, no matter how many includes are being called or where they're located on the server. John Burns -Original Message- From: DURETTE, STEVEN J (AIT) [mailto:[EMAIL PROTECTED] Sent: Thursday, March 25, 2004 1:43 PM To: CF-Talk Subject: RE: Okay, bear with me, I'm not even sure what I'm asking... Jeff, The easiest way I see to fix this quickly (if you don't have multiple sites each running different image directories) is to make a mapping in the CFAdmin of /images pointing to the images directory. That should clear up the problem. Steve -Original Message- From: Jeff Small [mailto:[EMAIL PROTECTED] Sent: Thursday, March 25, 2004 11:55 AM To: CF-Talk Subject: Okay, bear with me, I'm not even sure what I'm asking... Okay, here's the deal. One of our programmers has created an include that would be in the root of a site (call it, "navbar.cfm") and there's one page (index.cfm) that calls it from the root ( template="navbar.cfm">). Now, in navbar.cfm, there's a path to an image (let's say src="" for instance). He's using absolute paths because he says "slash images should always refer to the root" and doesn't understand why he can't include that same file in a page one directory below (about/index.cfm) and it not work. In other words, when the page below (about/index.cfm) tries to reconcile the path, it's seeing the same path that the root page is seeing ( it's breaking it and not showing the image (so now, when you "view source" on the page, you see http://devserver.ourdomain.com/images/... and you should see http://devserver.ourdomain.com/ThisSite/images/...) . Now, our development server is set up on a smallish PC running IIS and the site (and all others in development) is set up under the webroot of the IIS server, so that when you're testing it, you simply go to http://devserver.ourdomain.com/ThisSite/ and you can see the root of "ThisSite" which is the directory "ThisSite" under webroot (C:\InetPub\wwwroot\ThisSite). Is a virtual directory what he's looking for? Is it a mapping issue? I admit, I'm fairly stupid when it comes to IIS issues and web server administration issues, and will readily admit that I'm no mapping wizard, so I hope I explained it correctly, but I'd love to be able to do this. _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: help with drop-downs and onChange
> > > > blah blah > > > > > > blah blah > > > Hope I am making sense. > > Here is my code. > function setDept1() > { > if (document.frm.select1.selectedIndex != 0) { > myindex=document.frm.select1.selectedIndex; > var document.frm.hidselect.value = > document.frm.select1.options[myindex].value; > return true; > } > } > > How do I pass the name of the drop-down box to the function > and then assign the selected option value to a hidden > variable. Can anybody please help me get round this problem. > Best regards, > cfcoder > Or you can pass the name explicitly. > Then in your function use "this" as the reference. Mike [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Okay, bear with me, I'm not even sure what I'm asking...
No, mappings in CF have nothing to do with the web path to the images directory. The mappings in CFAdmin only have to do with all of that is managed by your web server. You just have to remember that as far as the browser is concerned, one file is being called (no matter how many includes you're doing) and all of your need to have the right path when they're called by the main document, no matter how many includes are being called or where they're located on the server. John Burns -Original Message- From: DURETTE, STEVEN J (AIT) [mailto:[EMAIL PROTECTED] Sent: Thursday, March 25, 2004 1:43 PM To: CF-Talk Subject: RE: Okay, bear with me, I'm not even sure what I'm asking... Jeff, The easiest way I see to fix this quickly (if you don't have multiple sites each running different image directories) is to make a mapping in the CFAdmin of /images pointing to the images directory. That should clear up the problem. Steve -Original Message- From: Jeff Small [mailto:[EMAIL PROTECTED] Sent: Thursday, March 25, 2004 11:55 AM To: CF-Talk Subject: Okay, bear with me, I'm not even sure what I'm asking... Okay, here's the deal. One of our programmers has created an include that would be in the root of a site (call it, "navbar.cfm") and there's one page (index.cfm) that calls it from the root ( template="navbar.cfm">). Now, in navbar.cfm, there's a path to an image (let's say src="" for instance). He's using absolute paths because he says "slash images should always refer to the root" and doesn't understand why he can't include that same file in a page one directory below (about/index.cfm) and it not work. In other words, when the page below (about/index.cfm) tries to reconcile the path, it's seeing the same path that the root page is seeing ( it's breaking it and not showing the image (so now, when you "view source" on the page, you see http://devserver.ourdomain.com/images/... and you should see http://devserver.ourdomain.com/ThisSite/images/...) . Now, our development server is set up on a smallish PC running IIS and the site (and all others in development) is set up under the webroot of the IIS server, so that when you're testing it, you simply go to http://devserver.ourdomain.com/ThisSite/ and you can see the root of "ThisSite" which is the directory "ThisSite" under webroot (C:\InetPub\wwwroot\ThisSite). Is a virtual directory what he's looking for? Is it a mapping issue? I admit, I'm fairly stupid when it comes to IIS issues and web server administration issues, and will readily admit that I'm no mapping wizard, so I hope I explained it correctly, but I'd love to be able to do this. _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
OT: Weird Javascript bug
What we are doing: Okay, when the user clicks in certain table cells that show data, the data is replaced by a text field. The user could then enter some data in the field and the onBlur would fire a validation function. I can replace the contents of the cell with the text field using innerHTML. Each text field is uniquely named. The problem: I cannot focus on the text area and get the ready cursor to sit there and blink. If I click and hold in the text field, you see the cursor, and then can type, but when the button is released, the text goes away. Also if I put an alert in the onClick event of the text field, then after the alert first, I can see the cursor and type normally. Anyone have any ideas? TIA John Stanley [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Okay, bear with me, I'm not even sure what I'm asking...
Jeff, The easiest way I see to fix this quickly (if you don't have multiple sites each running different image directories) is to make a mapping in the CFAdmin of /images pointing to the images directory. That should clear up the problem. Steve -Original Message- From: Jeff Small [mailto:[EMAIL PROTECTED] Sent: Thursday, March 25, 2004 11:55 AM To: CF-Talk Subject: Okay, bear with me, I'm not even sure what I'm asking... Okay, here's the deal. One of our programmers has created an include that would be in the root of a site (call it, "navbar.cfm") and there's one page (index.cfm) that calls it from the root (). Now, in navbar.cfm, there's a path to an image (let's say src="" for instance). He's using absolute paths because he says "slash images should always refer to the root" and doesn't understand why he can't include that same file in a page one directory below (about/index.cfm) and it not work. In other words, when the page below (about/index.cfm) tries to reconcile the path, it's seeing the same path that the root page is seeing ( it's breaking it and not showing the image (so now, when you "view source" on the page, you see http://devserver.ourdomain.com/images/... and you should see http://devserver.ourdomain.com/ThisSite/images/...) . Now, our development server is set up on a smallish PC running IIS and the site (and all others in development) is set up under the webroot of the IIS server, so that when you're testing it, you simply go to http://devserver.ourdomain.com/ThisSite/ and you can see the root of "ThisSite" which is the directory "ThisSite" under webroot (C:\InetPub\wwwroot\ThisSite). Is a virtual directory what he's looking for? Is it a mapping issue? I admit, I'm fairly stupid when it comes to IIS issues and web server administration issues, and will readily admit that I'm no mapping wizard, so I hope I explained it correctly, but I'd love to be able to do this. _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: Image Tag
At 11:05 PM 3/24/2004, you wrote: >i meant deskewing! :) > Pardon. "deskwing? (googles it.) Ah. de-skewing. Not desk-wing. ;) I grok now. (Didn't read the first few messages in the thread.) Deskewing is a little difficult to do from a layer higher than the graphics primitive itself. There are a couple ways to do it, the simplest being to doing a color scan up one side of the image returning the top/bottom y lines where an image is first detected (scanline wise) and a depth across the x axis toward the image. Basically then you have four variables that you can plug into a trig equation to solve for a right triangle and give you back an angle. Then you just straight call a basic rotation function (or better yet, call a rotation then a call a clipping function to remove the excess border space. Or call a much more complex transform function that essentially does this in inverse order but at the same time.) Like I said, a little hard to do from CF though. (I know these things because I've been working for a while as a hobby on a complete commercial graphics software package.) Well... on rereading that wasn't very clear. I could go into more technical detail on how actually to do it though if you want. --min [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: OT: Javascript documents?
Again, not a 'tree view', but somewhat of a hierarchical reference: http://www.dannyg.com/ref/jsquickref.html - Original Message - From: "Rob" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Thursday, March 25, 2004 11:19 AM Subject: Re: OT: _javascript_ documents? > On Thu, 2004-03-25 at 09:58, Burns, John D wrote: > > Does anyone know of a simple visual representation of _javascript_ > > objects, properties, methods, etc. in a simple table view? I was > > thinking it'd be really nice to have a breakdown of all of the objects > > and which properties fell underneath them in a format like below: > > > > document > > |_form > > |_ elements > > |_ name > > |_value > > |_length > > > > > > Anyone know of something like that? > > The closest I have seen is this: > http://www.devguru.com/Technologies/ecmascript/quickref/js_objects.html > > It's not quite a tree format, but then the tree format would seem to > indicate that element is a subclass of from is a subclass of document > which is not correct (I believe). > > Post if you find some thing good > > Cheers, > -- > Rob <[EMAIL PROTECTED]> > > > [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: Javascript documents?
> Does anyone know of a simple visual representation of _javascript_ > objects, properties, methods, etc. in a simple table view? Mozilla Firefox DOM Inspector (in the custom install Developer Tools) Or of course, ahem, Visual Interdev ;-) Nick [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Con't thread from CF-Comunnity
Any chance it's getting stuck on attributes or something? You may want to test if your session is timing out by putting a line above that section of code like and see if it returns anything. That's an easy way to know if the session is still valid. That sounds like it might be it though. John Burns -Original Message- From: Bushy [mailto:[EMAIL PROTECTED] Sent: Thursday, March 25, 2004 7:04 AM To: CF-Talk Subject: re: Con't thread from CF-Comunnity Hi, Sorry for the repeating thread but I was getting nowhere on CF-Community so I thought I'd ask you guys since I have no idea WTF is going on! I'm getting this error and I've followed the suggestions of other members like extended the timeout of SESSION and APPLICATION variables from the default in the CF Admin. My problem is this. I have an app (framed) where I'm displaying a treeview structure of directories and files on the server. Everything is working great. I added a refresh icon to my app when clicked, refreshes that frame only that does the diretory listing. If I let the app just sit for about 30+ minutes and click the refresh icon (NOT THE F5 BUTTON) I always get this error and I don't know why? I don't quite understand the error being displayed. Everyone is telling me that my SESSION is timing out/expiring but I increased the timeout to 12 hours for both so its not that at all. This is the little snippet that its puking on after awhile. See below: Error Diagnostic Information An error occured while evaluating the _expression_: SESSION.stDirFileAttributes[RecNo] = Attributes Error near line 7, column 35. [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: OT: Javascript documents?
On Thu, 2004-03-25 at 09:58, Burns, John D wrote: > Does anyone know of a simple visual representation of _javascript_ > objects, properties, methods, etc. in a simple table view? I was > thinking it'd be really nice to have a breakdown of all of the objects > and which properties fell underneath them in a format like below: > > document > |_form > |_ elements > |_ name > |_value > |_length > > > Anyone know of something like that? The closest I have seen is this: http://www.devguru.com/Technologies/ecmascript/quickref/js_objects.html It's not quite a tree format, but then the tree format would seem to indicate that element is a subclass of from is a subclass of document which is not correct (I believe). Post if you find some thing good Cheers, -- Rob <[EMAIL PROTECTED]> [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Windows CF5 Custom Tags Bug?
> To avoide this, within the custom tag, you can enclose all > the other code within this: > > > ... > Actually, instead of wrapping all your code one big cfif, why not just do this at top: Just be sure to reset any cfsetting you may have set at top. IMHO, this is better than wrapping an entire block of code in a big cfif. [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: CFWDDX converts to lower case?
Workaround - sure - did you see my example of storing the key as another value? [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Okay, bear with me, I'm not even sure what I'm asking...
When you use /images/something.gif it takes your domain name (devserver.ourdomain.com) and appends that path to the end of it. So, in the example you gave, he should reference that image a /ThisSite/images/something.gif and then it will just tack that onto the end. That's an HTTP/browser thing, and has nothing to do with CF or where it's included from. It just matters based on where the main file that's being returned to the browser resides. You could just do images/something.gif (minus the leading slash) and it will look for an images folder in the same folder as where the main document that is being served to the browser resides. So if you have devserver.ourdomain.com/ThisSite/index.cfm and it's including something that's somewhere else on the server, you can just reference images/something.gif and it will look for the images folder inside of ThisSite since that's where the index.cfm is. You could also do a virtual directory but it doesn't necessarily solve a whole lot. John Burns -Original Message- From: Jeff Small [mailto:[EMAIL PROTECTED] Sent: Thursday, March 25, 2004 11:55 AM To: CF-Talk Subject: Okay, bear with me, I'm not even sure what I'm asking... Okay, here's the deal. One of our programmers has created an include that would be in the root of a site (call it, "navbar.cfm") and there's one page (index.cfm) that calls it from the root ( template="navbar.cfm">). Now, in navbar.cfm, there's a path to an image (let's say src="" for instance). He's using absolute paths because he says "slash images should always refer to the root" and doesn't understand why he can't include that same file in a page one directory below (about/index.cfm) and it not work. In other words, when the page below (about/index.cfm) tries to reconcile the path, it's seeing the same path that the root page is seeing ( it's breaking it and not showing the image (so now, when you "view source" on the page, you see http://devserver.ourdomain.com/images/... and you should see http://devserver.ourdomain.com/ThisSite/images/...) . Now, our development server is set up on a smallish PC running IIS and the site (and all others in development) is set up under the webroot of the IIS server, so that when you're testing it, you simply go to http://devserver.ourdomain.com/ThisSite/ and you can see the root of "ThisSite" which is the directory "ThisSite" under webroot (C:\InetPub\wwwroot\ThisSite). Is a virtual directory what he's looking for? Is it a mapping issue? I admit, I'm fairly stupid when it comes to IIS issues and web server administration issues, and will readily admit that I'm no mapping wizard, so I hope I explained it correctly, but I'd love to be able to do this. [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
OT: Javascript documents?
Does anyone know of a simple visual representation of _javascript_ objects, properties, methods, etc. in a simple table view? I was thinking it'd be really nice to have a breakdown of all of the objects and which properties fell underneath them in a format like below: document |_form |_ elements |_ name |_value |_length Anyone know of something like that? John [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
flash->cf to save data
I'm trying to send data from Flash to Cold Fusion to have it entered in a DB. I can't get it to work. I'm experienced at flash but have not used loadVars before and am new to CF. I have simplified the loadVars to a full url and a pretermined string, rather than building the string. The CF uses url.variable to get the info, so I'm passing it via the querystring. No matter what I do, it doesn't update on the DB. Here's the Flash code: function sendData(save_string){ // Create a LoadVars object to hold the variables we wish to send save_game_o = new LoadVars(); save_game_o.id = 1; save_game_o.high_score=50; save_game_o.high_score_related_info=bent|tennis_player; save_game_o.saved_game="user{ljkh,11,3,B,m}score{0,1,1}vegetables}wo{}so{}so{}hph{0}"; save_game_o.load = function(success) { if (success) { //doesn't show this// _level1.error.text = "success:"+success; } else { _level1.error.text = "error loading data"; } }; var composite = "http://www.preventcancer.org/bodyfun/main_game/save_game.cfm"; save_game_o.sendAndLoad(composite,null,"GET"); } The CF is at: http://www.phiresearch.umd.edu/bodyfun/main_game/save_game.cfm I put it on a server that doesn't have CF just so that you can view the code. The flash uses a server that runs CF fine. Also, I made a composite of the url and the querystring and it worked fine, updating all the info, so it seems to be a Flash to CF communication problem. thanks for any help. -- Daniel Kessler Department of Public and Community Health University of Maryland Suite 2387 Valley Drive College Park, MD 20742-2611 301-405-2545 Phone www.phi.umd.edu [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Okay, bear with me, I'm not even sure what I'm asking...
Jeff, (mappings) that out of your web root altogether. CF always uses a path that is relative to the current template path. So if your developer is 1 directory below the root he would use "../blah.cfm". Again, don't let him even bring up the image paths and virtual directorys et al. The web server doesnt' control this at all. If he wants a mapping to root he can create one in CF admin (using "/") and this is actually done by default - and it's fine if you are not on a shared server or you have control over the environment. But if you are on a shared server be careful because everyone can include from "your" directory now using the root mapping. savy? Mark A. Kruger, MCSE, CFG www.cfwebtools.com www.necfug.com http://blog.mxconsulting.com ...what the web can be! -Original Message- From: Jeff Small [mailto:[EMAIL PROTECTED] Sent: Thursday, March 25, 2004 10:55 AM To: CF-Talk Subject: Okay, bear with me, I'm not even sure what I'm asking... Okay, here's the deal. One of our programmers has created an include that would be in the root of a site (call it, "navbar.cfm") and there's one page (index.cfm) that calls it from the root (). Now, in navbar.cfm, there's a path to an image (let's say src="" for instance). He's using absolute paths because he says "slash images should always refer to the root" and doesn't understand why he can't include that same file in a page one directory below (about/index.cfm) and it not work. In other words, when the page below (about/index.cfm) tries to reconcile the path, it's seeing the same path that the root page is seeing ( it's breaking it and not showing the image (so now, when you "view source" on the page, you see http://devserver.ourdomain.com/images/... and you should see http://devserver.ourdomain.com/ThisSite/images/...) . Now, our development server is set up on a smallish PC running IIS and the site (and all others in development) is set up under the webroot of the IIS server, so that when you're testing it, you simply go to http://devserver.ourdomain.com/ThisSite/ and you can see the root of "ThisSite" which is the directory "ThisSite" under webroot (C:\InetPub\wwwroot\ThisSite). Is a virtual directory what he's looking for? Is it a mapping issue? I admit, I'm fairly stupid when it comes to IIS issues and web server administration issues, and will readily admit that I'm no mapping wizard, so I hope I explained it correctly, but I'd love to be able to do this. [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Last Chance Spectra Training
I only briefly got some Spectra training. My 1st thoughts (after seeing CF for the 1st time just few days before) were: who would ever use such a complex product? Through I spend some time looking at it, my progress was not as fast as in CF, spectra was just too complex for me at that time, I guess. I stayed at Spectra newbe level and never moved from that. TK -Original Message- From: Bryan F. Hogan [mailto:[EMAIL PROTECTED] Sent: Thursday, March 25, 2004 12:33 PM To: CF-Talk Subject: Re: Last Chance Spectra Training In my case it was when an Allaire rep came to my office and told me the price. Haggerty, Mike wrote: > Does anyone know why Spectra never caught on? [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: CFWDDX converts to lower case?
>>CF will only lowercase keys Ok, but what's the big idea? If the structure is to be exported from CF to JS, it does not really matter, but in my case the data comes from JS, is processed by CF and then return to JS. IF the keys have changed, the rest of the program simply does not recognizes them any more. For instance, I have simplified the structure I have to this: 01 This is what is stored in the database, with JS variables tableLeft ans tableRight, but when the code is reconstructed with _t1=new Array();_t1[0]=new Object();_t1[0]["tableleft"]=0;_t1[0]["tableright"]=1;myArray=_t1;_t0=null;_t1=null; Here the variables tableleft and tableright are lower cased. If I specify WDDX2J, I expect the case not to be changed, since JS is case sensitive. Is there any workaround? (beside using only lower case variables names in the JS program) -- ___ See some cool custom tags here: http://www.contentbox.com/claude/customtags/tagstore.cfm Please send any spam to this address: [EMAIL PROTECTED] Thanks. [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
CFUN-04 interviews 4 - Fusebox and Outsourcing with Hal Helms
In the forth part of our CFUN-04 interview series, Michael Smith interviews Hal Helms, one of Fusebox's creators and coauthor of books on Fusebox and CFCs and trainer extraordinaire. Hal is speaking on "Fusebox and Outsourcing" at CFUN-04. PS Don't forget there are only 6 days left for the CFUN-04 early bird price deadline of 3/31/04 Michael Smith: Hal, how do Fusebox and Outsourcing relate to each other? Hal Helms: Well, for several years, outsourcing has been on the horizon for programmers, but, to a large degree, it sort of stayed out there, menacing. That's all changed, now. Most of us now know someone who's been directly affected by outsourcing. And things aren't going to get better any time soon. MS: My, you're full of good news! HH: Yeah, I know. But there are strategies for surviving ... You can read the rest of the interview at http://www.cfconf.org/CFUN-04/news.cfm and in Fusion Authority, The House of Fusion Technical Magazine (http://www.fusionauthority.com). CFUN-04 is Saturday 6/26/04 - Sunday 6/27/04 in the Washington DC area. It costs $199 until 3/31/04 then $269. For more information on CFUN see http://www.cfconf.org/cfun-04/. -- -- Vote for TeraTech in CFDJ awards http://www.teratech.com/vote.cfm Michael Smith, TeraTech, Inc 405 E Gude Dr Ste 207, Rockville MD 20850 CF , VB, SQL, Math custom programming Voice: +1-301-424-3903 x110, 800-447-9120 Fax:301-762-8185 Web: http://www.teratech.com/sig/ Email: mailto:[EMAIL PROTECTED] ICQ: 66057682 [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: help with drop-downs and onChange
you can pass a reference the current object in the onChange event, as "this". function setDept1(selectbox) { alert selectbox.selectedIndex; } Untested code, a shot from the hip -- but you get the concept.. ? :) /Hugo - Hugo Ahlenius E-Mail: [EMAIL PROTECTED] Project Officer Phone:+46 8 230460 UNEP GRID-Arendal Fax: +46 8 230441 Stockholm Office Mobile: +46 733 467111 WWW: http://www.grida.no - | -Original Message- | From: cf coder [mailto:[EMAIL PROTECTED] | Sent: Thursday, March 25, 2004 11:36 | To: CF-Talk | Subject: help with drop-downs and onChange | | I have two select boxes (drop-down boxes) in my form, they | both have a different onChange function. I want both the drop | downs to call the same function. | | | > | blah blah | | | | > | blah blah | | | Hope I am making sense. | | Here is my code. | function setDept1() | { | if (document.frm.select1.selectedIndex != 0) { | myindex=document.frm.select1.selectedIndex; | var document.frm.hidselect.value = | document.frm.select1.options[myindex].value; | return true; | } | } | | How do I pass the name of the drop-down box to the function | and then assign the selected option value to a hidden | variable. Can anybody please help me get round this problem. | Best regards, | cfcoder | | | | __ | Do you Yahoo!? | Yahoo! Finance Tax Center - File online. File on time. | http://taxes.yahoo.com/filing.html | | [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: Last Chance Spectra Training
In my case it was when an Allaire rep came to my office and told me the price. Haggerty, Mike wrote: > Does anyone know why Spectra never caught on? [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Windows CF5 Custom Tags Bug?
> The problem is that when, and only when, I call , > the ENTIRE http request appears to be running two times! I can't > understand why that would possibly happen. In other words, in my > little tree of nested custom tags, a very simple tag which > generates some text is causing the entire request to be evaluated > by the server a second time. If you have an opening and closing CF_MAKESOMEHTML tag, and you don't explicitly write code within that tag to prevent it from running twice, it'll run twice. <-- runs once <-- runs twice <-- runs twice To avoide this, within the custom tag, you can enclose all the other code within this: ... Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ phone: 202-797-5496 fax: 202-797-5444 [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Keeping a DB connection alive
> Is there a way to keep a database connection alive? I know > you can do that in ASP, etc, but the standard tag > opens and closes the DB connection with the execution of the > SQL statement. By default, database connections are pooled and reused. They aren't opened and closed with each CFQUERY tag. You can configure how this works within the datasource settings in the CF Administrator. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ phone: 202-797-5496 fax: 202-797-5444 [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: SQL Q
I am not an RegEx expert but I guess this could be a nice candidate for one Qasim -Original Message- From: Howie Hamlin [mailto:[EMAIL PROTECTED] Sent: Thursday, March 25, 2004 8:58 AM To: CF-Talk Subject: SQL Q We have an MSSQL/2000 database where several columns contain comma-delimited lists of data. For example: Sample row from table: Group1=1,5,7,9 Group2=3,8 Group3=4 We want to allow someone to search the database based on these columns so that if someone searched on Group1=1,7 Group2=3 Group3=4 Then it would find the sample row shown above. It would also return that row in the results if the user chose: Group1=1 Group2=8 Group3=4 But, if the user selects: Group1=1,2,5,7,9 Group2=3,8 Group3=4 Then that row would not be included in the results. I'm having a heck of a time trying to figure out how to write the SELECT statement for this. Any ideas? Thanks, -- Howie Hamlin - inFusion Project Manager On-Line Data Solutions, Inc. - www.CoolFusion.com inFusion Mail Server (iMS) - The Award-winning, Intelligent Mail Server PrismAV - Virus scanning for ColdFusion applications >>> Find out how iMS Stacks up to the competition: http://www.coolfusion.com/imssecomparison.cfm _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Okay, bear with me, I'm not even sure what I'm asking...
Okay, here's the deal. One of our programmers has created an include that would be in the root of a site (call it, "navbar.cfm") and there's one page (index.cfm) that calls it from the root (). Now, in navbar.cfm, there's a path to an image (let's say src="" for instance). He's using absolute paths because he says "slash images should always refer to the root" and doesn't understand why he can't include that same file in a page one directory below (about/index.cfm) and it not work. In other words, when the page below (about/index.cfm) tries to reconcile the path, it's seeing the same path that the root page is seeing ( it's breaking it and not showing the image (so now, when you "view source" on the page, you see http://devserver.ourdomain.com/images/... and you should see http://devserver.ourdomain.com/ThisSite/images/...) . Now, our development server is set up on a smallish PC running IIS and the site (and all others in development) is set up under the webroot of the IIS server, so that when you're testing it, you simply go to http://devserver.ourdomain.com/ThisSite/ and you can see the root of "ThisSite" which is the directory "ThisSite" under webroot (C:\InetPub\wwwroot\ThisSite). Is a virtual directory what he's looking for? Is it a mapping issue? I admit, I'm fairly stupid when it comes to IIS issues and web server administration issues, and will readily admit that I'm no mapping wizard, so I hope I explained it correctly, but I'd love to be able to do this. [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Do i have to use evaluate here
I'm trying to make my application have the option of either using client variables or session variables. Once I do this how do I output it without an evaluate, can that even be done? Bob [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Windows CF5 Custom Tags Bug?
Symptom (watered down): My application uses lots of custom tags. At one point in the code, I have a .CFM page called "myfile.cfm" which calls a custom tag is called that generates some text files called . That works great. Within the tag, I am calling an additional custom tag that generates some HTML for me called . The problem is that when, and only when, I call , the ENTIRE http request appears to be running two times! I can't understand why that would possibly happen. In other words, in my little tree of nested custom tags, a very simple tag which generates some text is causing the entire request to be evaluated by the server a second time. The result is I'm getting two sets of files created, rather than just the one that I want. What do I do? Has anybody ever seen this before? I monitored the HTTP traffic and it almost seems like the browser is somehow induced to re-submit the URL somehow. I'm so confused.. I've been working with CF for years but I have never seen anything like this... Jon [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Keeping a DB connection alive
Hi All, Is there a way to keep a database connection alive? I know you can do that in ASP, etc, but the standard tag opens and closes the DB connection with the execution of the SQL statement. TIA, Phill Gibson [EMAIL PROTECTED] [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Last Chance Spectra Training
Whats Spectra? ;) just kidding. ( had to say it ) Greets Kevin -Original Message- From: Dave Watts [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 24, 2004 8:39 PM To: CF-Talk Subject: FW: Last Chance Spectra Training I don't know if anyone's interested in this - it's the end of an era ... Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ phone: 202-797-5496 fax: 202-797-5444 -Original Message- From: Steve Drucker [mailto:[EMAIL PROTECTED] Sent: Wednesday, 24 March 2004 18:19 To: Spectra-Talk Subject: Last Chance Spectra Training I'm teaching what is almost certainly to be the final instructor-led Macromedia Spectra development course in Atlanta, GA on April 19th-23rd. We've already got several people signed up, so the course will definitely be running. We're using the official Macromedia Spectra coursebook, which I helped author. You can get more information here: http://training.figleaf.com/figleaftraining/Courses/Spectra-for-Developers.c fm cfm> Regards, Steve Drucker CEO Fig Leaf Software www.figleaf.com 1-877-FIG-LEAF _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Last Chance Spectra Training
> Especially since the open source release is too flaky to seriously consider > under CFMX. Why? It's the same source that the commercial Spectra used. -- Tom Jordahl Macromedia Server Development [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Last Chance Spectra Training
This is almost a sad event. I remember how impressed I was with Spectra after it was released, my thoughts were that it would quickly replace Vignette Storyserver. Does anyone know why Spectra never caught on? M -Original Message- From: Dave Watts [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 24, 2004 8:39 PM To: CF-Talk Subject: FW: Last Chance Spectra Training I don't know if anyone's interested in this - it's the end of an era ... Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ phone: 202-797-5496 fax: 202-797-5444 -Original Message- From: Steve Drucker [mailto:[EMAIL PROTECTED] Sent: Wednesday, 24 March 2004 18:19 To: Spectra-Talk Subject: Last Chance Spectra Training I'm teaching what is almost certainly to be the final instructor-led Macromedia Spectra development course in Atlanta, GA on April 19th-23rd. We've already got several people signed up, so the course will definitely be running. We're using the official Macromedia Spectra coursebook, which I helped author. You can get more information here: http://training.figleaf.com/figleaftraining/Courses/Spectra-for-Develope rs.c fm ers. cfm> Regards, Steve Drucker CEO Fig Leaf Software www.figleaf.com 1-877-FIG-LEAF [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: ECommerce practices
To answer some of your questions My favorite way to pass variables from page to page is to create a struct of the form variables and then throw it in a wddx using the session scope. You could write a struct for each section and keep rolling it into wddx's. Then in the end roll them out and append the different structs into one which makes it easy to pass the variables as an "argumentcollection" in a CFC. -Original Message- From: Cutter (CF-Talk) [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 24, 2004 7:10 PM To: CF-Talk Subject: ECommerce practices Just looking for other's insight. Can't think of a better group to ask... I'm setting up a custom ecomm area (current is a setup using the JASC component my boss implemented before I got here). What the big boss would like is something that wouldn't fit into the general templates you find all over, so I'm working from scratch on most of this. I'm trying to find what would be the best method for initially handling order details. Most of the items are apparel. The user would first select a category, then select a specific item/design from a thumbnail. Next they would be shown a larger image with the different colors it would be offered in. The user would select the color they want, taking them to the next screen where different size options would be available. The user would enter in the quantity of each size they may want. The next step would verify the item/design, basic product detail, color, sizes and quantities, and the price (showing price differences for oversized products as well). At this point it would then continue to the basics (name, addy, payment, etc.) My question is this. Every step of this process is some type of form. I could use hidden form fields to carry over all of the information from screen to screen, but this seems a little tedious, inelegant, and possibly somewhat insecure. What is suggested process in this type of situation? Should I set up some kind of struct var to handle the details? Would this best be handled within the session or client scopes? How does one best prevent race conditions? The end run is to write the details to a db once the order is processed, but I've seen what can happen when writing the details to a db from the get go and then having the user cancel the order or the payment is not approved (not my design, and it was ugly...) So, any suggestions are welcome and appreciated. TIA Cutter _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: CFWDDX converts to lower case?
CF will only lowercase keys, ie: In this example, Moo gets lowercased, but Zoo does not. If you need to preserve the case you could simply modify your data a bit: A bit of a hack but it will work. In CFMX, if you convert a query, the column names case will be preserved. [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
SQL Q
We have an MSSQL/2000 database where several columns contain comma-delimited lists of data. For example: Sample row from table: Group1=1,5,7,9 Group2=3,8 Group3=4 We want to allow someone to search the database based on these columns so that if someone searched on Group1=1,7 Group2=3 Group3=4 Then it would find the sample row shown above. It would also return that row in the results if the user chose: Group1=1 Group2=8 Group3=4 But, if the user selects: Group1=1,2,5,7,9 Group2=3,8 Group3=4 Then that row would not be included in the results. I'm having a heck of a time trying to figure out how to write the SELECT statement for this. Any ideas? Thanks, -- Howie Hamlin - inFusion Project Manager On-Line Data Solutions, Inc. - www.CoolFusion.com inFusion Mail Server (iMS) - The Award-winning, Intelligent Mail Server PrismAV - Virus scanning for ColdFusion applications >>> Find out how iMS Stacks up to the competition: http://www.coolfusion.com/imssecomparison.cfm [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: replace
> From: Parker, Kevin [mailto:[EMAIL PROTECTED] > > It may be the way I'm applying this. > > I'm just making a tweak to a love job I did for The Salvos. > One of the databases we converted for this did not bring over > the CR's and LF's between paragraphs in one of the fields. > Rather than getting someone to edit every record I'm trying > to deal with this programmatically. > > I have identified the place to insert the CR LF as bits like > this "#2Th 3:10|. " regularly appear through the text, albeit > the numbers are different, but the "|. " is a reliable > indicator of where the paragraph break should be, however, > the app does not want to recognise the CR and LF. Its not > clear to me if replace will insert ASCII characters or not. > > > > chr(10)", "ALL")> You didn't close the string before adding the Chr() functions "ALL")> [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Resend of: Adding an element
Hello everyone, I am finally trying XML and coldfusion. I' am able to parse an xml file and display it; however I am running into problems when I attempt to add an element. The XML file looks like this: UPS website http://www.ups.com/ Official UPS web Address FedEx http://www.fedex.com/ Get Tracking information from FedEx I am trying to add a new section with name "Forms". The code looks as follow: The last line, is the one giving me problems. Can anyone help please. Thanks Percy Versa Products Company Inc 22 Spring Valley Road Paramus NJ 07652 [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
re: Con't thread from CF-Comunnity
Hi, Sorry for the repeating thread but I was getting nowhere on CF-Community so I thought I'd ask you guys since I have no idea WTF is going on! I'm getting this error and I've followed the suggestions of other members like extended the timeout of SESSION and APPLICATION variables from the default in the CF Admin. My problem is this. I have an app (framed) where I'm displaying a treeview structure of directories and files on the server. Everything is working great. I added a refresh icon to my app when clicked, refreshes that frame only that does the diretory listing. If I let the app just sit for about 30+ minutes and click the refresh icon (NOT THE F5 BUTTON) I always get this error and I don't know why? I don't quite understand the error being displayed. Everyone is telling me that my SESSION is timing out/expiring but I increased the timeout to 12 hours for both so its not that at all. This is the little snippet that its puking on after awhile. See below: Error Diagnostic Information An error occured while evaluating the _expression_: SESSION.stDirFileAttributes[RecNo] = Attributes Error near line 7, column 35. [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
help with drop-downs and onChange
I have two select boxes (drop-down boxes) in my form, they both have a different onChange function. I want both the drop downs to call the same function. > blah blah > blah blah Hope I am making sense. Here is my code. function setDept1() { if (document.frm.select1.selectedIndex != 0) { myindex=document.frm.select1.selectedIndex; var document.frm.hidselect.value = document.frm.select1.options[myindex].value; return true; } } How do I pass the name of the drop-down box to the function and then assign the selected option value to a hidden variable. Can anybody please help me get round this problem. Best regards, cfcoder __ Do you Yahoo!? Yahoo! Finance Tax Center - File online. File on time. http://taxes.yahoo.com/filing.html [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: ECommerce practices
On Thursday 25 Mar 2004 01:32 am, Peter Tilbrook wrote: > CFTRANSACTION Quoting. -- Tom Chiverton Advanced ColdFusion Programmer Tel: +44(0)1749 834997 email: [EMAIL PROTECTED] BlueFinger Limited Underwood Business Park Wookey Hole Road, WELLS. BA5 1AF Tel: +44 (0)1749 834900 Fax: +44 (0)1749 834901 web: www.bluefinger.com Company Reg No: 4209395 Registered Office: 2 Temple Back East, Temple Quay, BRISTOL. BS1 6EG. *** This E-mail contains confidential information for the addressee only. If you are not the intended recipient, please notify us immediately. You should not use, disclose, distribute or copy this communication if received in error. No binding contract will result from this e-mail until such time as a written document is signed on behalf of the company. BlueFinger Limited cannot accept responsibility for the completeness or accuracy of this message as it has been transmitted over public networks.*** [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: isDefined vs structKeyExists
On Wednesday 24 Mar 2004 23:12 pm, Philip Arnold wrote: > Also, variables with spaces in them should be subjected to public enquiry, lost, and finally buried in soft peat for three months and recycled as firelighters :-) -- Tom Chiverton Advanced ColdFusion Programmer Tel: +44(0)1749 834997 email: [EMAIL PROTECTED] BlueFinger Limited Underwood Business Park Wookey Hole Road, WELLS. BA5 1AF Tel: +44 (0)1749 834900 Fax: +44 (0)1749 834901 web: www.bluefinger.com Company Reg No: 4209395 Registered Office: 2 Temple Back East, Temple Quay, BRISTOL. BS1 6EG. *** This E-mail contains confidential information for the addressee only. If you are not the intended recipient, please notify us immediately. You should not use, disclose, distribute or copy this communication if received in error. No binding contract will result from this e-mail until such time as a written document is signed on behalf of the company. BlueFinger Limited cannot accept responsibility for the completeness or accuracy of this message as it has been transmitted over public networks.*** [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: Is Parallel Processing Possible With CF?
On Wednesday 24 Mar 2004 13:46 pm, Peter Tilbrook wrote: > Tom, are you getting two copies of every single message sent to this list Nope. Maybe you are sub'ed with two different address ? -- Tom Chiverton Advanced ColdFusion Programmer Tel: +44(0)1749 834997 email: [EMAIL PROTECTED] BlueFinger Limited Underwood Business Park Wookey Hole Road, WELLS. BA5 1AF Tel: +44 (0)1749 834900 Fax: +44 (0)1749 834901 web: www.bluefinger.com Company Reg No: 4209395 Registered Office: 2 Temple Back East, Temple Quay, BRISTOL. BS1 6EG. *** This E-mail contains confidential information for the addressee only. If you are not the intended recipient, please notify us immediately. You should not use, disclose, distribute or copy this communication if received in error. No binding contract will result from this e-mail until such time as a written document is signed on behalf of the company. BlueFinger Limited cannot accept responsibility for the completeness or accuracy of this message as it has been transmitted over public networks.*** [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: Order of nodes in result of XMLSearch
On Wednesday 24 Mar 2004 17:45 pm, Rob wrote: > Best to just run a test to be sure though On the grounds that life is too short, I just changed the way I was doing things :-) -- Tom Chiverton Advanced ColdFusion Programmer Tel: +44(0)1749 834997 email: [EMAIL PROTECTED] BlueFinger Limited Underwood Business Park Wookey Hole Road, WELLS. BA5 1AF Tel: +44 (0)1749 834900 Fax: +44 (0)1749 834901 web: www.bluefinger.com Company Reg No: 4209395 Registered Office: 2 Temple Back East, Temple Quay, BRISTOL. BS1 6EG. *** This E-mail contains confidential information for the addressee only. If you are not the intended recipient, please notify us immediately. You should not use, disclose, distribute or copy this communication if received in error. No binding contract will result from this e-mail until such time as a written document is signed on behalf of the company. BlueFinger Limited cannot accept responsibility for the completeness or accuracy of this message as it has been transmitted over public networks.*** [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]