Re: cfcookie expires default
hello Nathan, It is not a browser issue or that I am reseting the cookie on the page load. The cookie it self is not not taking the corect Expires parameter. If I check on the cookie manager on firefox I have "at end of session" This has been tested on opera chrome and firefox. Philip, I am not aware of the issue you are refering to. Could you please provide relative links Thanx for the help ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:312641 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
cfcookie expires default
Hello every one. coldfusion 8 I am using this to setup my cookie problem is that the cookie expires at the end of session and when I restart the browser is not there any nore. This means that it is taking the default parameter. Any ideas ? Thanx Ioannis ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:312630 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Null/empty values from the database.
Some times my Database does not have any data on the query. I want to wright an error handler for that reason. so lets say that my query has been executed alredy and it is called "Results" and sourcename is one of my fields on the DB that usualy contains a string. There are no available sources at the moment. . Browser is throughing error "Variable RETURN is undefined " however I know that if I my results from the DB are not empty the function works. As well there is nothing to define I just need to send the above alert to the DIV. Second senario is to replace with . The component dosent seem to understand NULL though as a result. It handles it as Valiable and in sayes again that it is undifined. Thanx in advance Ioannis ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:310147 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
JSON return handle by javascript.
Hello everyone, Using the CFajaxProxy I am getting my content throught JSON. I need to handle the return of my query (html content) and put it on a DIV container. This is what I am using so far: // return data form CF function jsReturn(r) { alert(r); var op = document.getElementbyID('content'); op.appendChild(document.createTextNode(r)); } My alert is working and I can see the requested content coming from the server. It is on HTML format. Unfortunantly without seeing any error on my browser or on my firebug the conthent just doesnt appear at all. I dont even thing that the document.createTextNode(r) is going to work as I believe that most likely is going to dump the html code instead of genrating the page. Thanx in advance Ioannis ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:309766 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: CFajaxproxy VS AjaxCFC
That worked, Thanx Ioannis ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:309764 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
CFajaxproxy VS AjaxCFC
Hello everyone, I have deside to use the new CFajaxproxy. The functionality is truly simple from any point of view. However the way it returns the the query results on my browser is messy, So far I was using the fantastic AjaxCFC product from Rob Gonda. THE CASE: A simple query on my compnent.cfc like this: SELECT name_diplayed FROM object_table ot, Would return me a nice structure of arays on my browser col7[0] = "name1"; col7[1] = "name2"; col7[2] = "name3"; col7[3] = "name4"; col7[4] = "name5"; _3809_1217109963807["name_diplayed"] = col7; And then I could easily call it from my Javascript DOM functions like this: . function Results (r){ for(i=0;ihttp://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:309755 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
AjaxCFC question
Hello to everyone familiar with ajaxCFC, My component file component.cfc start getting too big and difficult to manage (loads of functions there). Is there any way I could define more than one components on the config of the index page. For example at the moment I have: _ajaxConfig = { '_cfscriptLocation':'component.cfc', '_jsscriptFolder':'/js', 'debug':false}; Can I do : _ajaxConfig = { '_cfscriptLocation':'component1.cfc, component2.cfc, component3.cfc', '_jsscriptFolder':'/js', 'debug':false}; thanx in advance Ioannis ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:301397 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: use of column ":" on a pound sign
This worked for me, Thanx a lot Ioannis ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:296903 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
use of column ":" on a pound sign
Trying to make RSS reader for RSStype 1 So far I am defining my tabs as #xmlDoc1.rdf.channel.title.xmlText# #xmlDoc1.rdf.channel.link.xmlText# etc. This works as I want. Problem now come when I want to define the copyright tag that contains column sign ":". The Tag on the XML page looks like . My Script is based on: http://www.sitepoint.com/article/content-syndication-coldfusion Thanx in advance. Ioannis ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:296896 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
ajaxcfc dump results
Hello to everyone I am sure this will be an easy answer to the experienced ajaxcfc users. I am calling a function from html page, using AjaxCFC, to my cfc page. The function is a query giving results as an array form and resulting them back to my main page. How can I dump the real text to have a look if the answer from the DB is the right one. The AjaxCFC debugger is displaying only "object Object" wich most likely is the array. thanx in advance ~| ColdFusion is delivering applications solutions at at top companies around the world in government. Find out how and where now http://www.adobe.com/cfusion/showcase/index.cfm?event=finder&productID=1522&loc=en_us Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292618 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: .LastDateModified .RecordCount advise
I have post 4 threads the past 3 months in this forum and every single time I had a solution. This is a greate forum an amazing Coldfusion Knowledge base, if not the BEST. Dave that was the solution to my problem. Thanx a lot. Regards Ioannis ~| Upgrade to Adobe ColdFusion MX7 Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:267854 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
.LastDateModified .RecordCount advise
Hello all, These 2 DOM properties ..LastDateModified .RecordCount can be quite helpful for playing files stored in your server. Unfortunately I couldnât find a way yet to dynamically update the names of the files I want. More detailed: even though myfile.LastDateModified and myfile.RecordCount are going to give me the wanted results, #myfile#.LastDateModified and #myfile#.RecordCount are not working. I am looking for a Coldfusion "way" to do the same job as the above DOM properties and being able to update the file field dynamically. Any ideas would be more than welcome. Thanx in advance Ioannis ~| Upgrade to Adobe ColdFusion MX7 Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:267850 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Ajaxcfc newbe problems (2)
Yeees, it worked it worked it worked it worked it worked. Any suggested reading you have to reccomend on how to send and handle requestes with AjaxCFC would be more than welcome. As well the reason of why a simple document.write wouldnt work (in order to avoid similar mistakes in the future). Thanx a lot guys for everything. Ioannis ~| Create robust enterprise, web RIAs. Upgrade & integrate Adobe Coldfusion MX7 with Flex 2 http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:265568 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Ajaxcfc newbe problems (2)
It works smoothly with alert(r); Any other way to try to display it ?( what I want to do is to display the results of the output form my server to a specific DIV on my first page. The page is kind of dynamic content displaying info). I am using the Beta version as you said. The errors I am getiing are: a)On the console tag: the request field is keep loading for ever even thought the requested content has been dispalyed in my screen already. b)On the Script tag the debbuger has stoped on util.js, line 271 "$('disabledZone').style.visibility = 'hidden';" this probably produses the alert I had mention before. Do you think my javascript synatax is wrong (my level is quite basic on Javascript) Thanx a a lot Ioannis ~| Create robust enterprise, web RIAs. Upgrade & integrate Adobe Coldfusion MX7 with Flex 2 http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:265562 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Ajaxcfc newbe problems (2)
Hello everyone for once again, After the extremely helpful comments of Dan (the fireGub enlightment) and, Chris and Jordan on the actual use of ajaxCFC, I have manage to move on another issue. The idea of Ajax is quite clear at the moment in my head and I have manage to make a request to the server, receive a response and handle it almost. The following example worked 100% ok: test.cfc Aftin tin ora:#szTime# Ton lene PSILO - - - - - - - test.cfm - - - - When I am trying to replace the sDumper(r) with document.write(r); then I am getiing the most unsuall alert message "typeError: $("disabledZone")has no properties" and even though the requested content displayed the browser keeps loading for ever and freezes (you cannot refresh it). I ve check the internet for the error but no much of a result. Any ideas more than welcome. ( I am thinking to document a Ajaxcfc newbie problems trilogy ) Please participate hahaha thanx Ioannis ~| Create robust enterprise, web RIAs. Upgrade & integrate Adobe Coldfusion MX7 with Flex 2 http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:265558 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Ajaxcfc newbe problems
Really apreciate your time and effort guys. Haven't manage to make it work yet but I defenetly have much better understanding of how the whole think works. I am keep experimending. Thanx a lot and happy new year Ioannis ~| Create robust enterprise, web RIAs. Upgrade & integrate Adobe Coldfusion MX7 with Flex 2 http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:265532 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Ajaxcfc newbe problems
I finally manage to use firebug properly. It gives me an error on engine.js line 531. The server it self gives me "invalid reply from server" the loading icon keeps loading for ever and the the field that I was suppose to receive the text from the server gives me undefined. The Ajax debugger gives me: "11:35:48 INFO - invoking method: myFuncIngrWorld, id: 3637_1167737748719, params:" Any advices more than welcome... Ioannis ~| Create robust enterprise, web RIAs. Upgrade & integrate Adobe Coldfusion MX7 with Flex 2 http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:265461 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Ajaxcfc newbe problems
>Invalid reply from the server? Do you use firebug? If not firebug will let >you see the request to and from the server. That should give you a much >better idea of what is going on. fyi - i just re read my 1st comment and >that came out wrong, please dont think I was trying to be a d*** ...i had a >rough night last night! > >Dan > >On 12/31/06, Ioannis Papanikolaou <[EMAIL PROTECTED]> wrote: >> Thanx for the advice FireBug lloks quite cool especialy for DOM but I am not sure if I am using it right. I am not receiving any errors... Thanx anyway Any other Ideas more than welcome Ioannis ~| Create robust enterprise, web RIAs. Upgrade & integrate Adobe Coldfusion MX7 with Flex 2 http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:265428 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Ajaxcfc newbe problems
>Why are you putting output in the ajax component? You need to create a >component that extends ajax.cfc. Have you tried to run any of the examples? > >On 12/31/06, Ioannis Papanikolaou <[EMAIL PROTECTED]> wrote: >> Answers: 1st) I am putting output because this is what I want my component to do. In reality it reads rdf files and displays the output. The Component works fine if I just put : But this is not my goal. I need to dynamicaly extract stored content from the server using Ajax. 2nd) My component extends AJAX.cfc according to the examples. Actually as far as I understand I just need to . 3rd) I ve test 3 of the examples and are working fine from my server. I forgot to specify before Server: PIII 1000 512 MB UBUNTU 6.06 MySQL 5 Coldfusion 7.02 Thanx for your responce Ioannis ~| Create robust enterprise, web RIAs. Upgrade & integrate Adobe Coldfusion MX7 with Flex 2 http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:265422 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Ajaxcfc newbe problems
Hello people for once again, While trying develop my first ajax application I have stuck with the following problem. I am using a function on my test.cfc which automatically generates some output and I want to pass the output on my test.cfm page. Test.cfc looks like this: "My ajax.cfc Coldfusion Example" and on the test.cfm we have: and: The debugers error is "invalid reply from server" Thanx a lot for one more time... Ioannis ~| Create robust enterprise, web RIAs. Upgrade & integrate Adobe Coldfusion MX7 with Flex 2 http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:265415 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Calling a ColdFusion Function with Javascript
Thank you very much for your responces. At the moment I know where to focus and what direction to follow in order to achive it. Again thanx a lot for your time. ~| Create robust enterprise, web RIAs. Upgrade & integrate Adobe Coldfusion MX7 with Flex 2 http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:265241 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Calling a ColdFusion Function with Javascript
Hello people, Do you know how can I actually call a Coldfusion funsction with a javascript function. for example I am using onClick to call a cffunction inside a div. (DOM) Example: And of cource my result after I click it would be #MyExample()# instead of the text. I am sure that as a newbe I am doing a syntax mistake somewhere or something is missing but I am struggling with this 3 hours already. Thanx in advance. Any Ideas more than welcome...!!! ~| Create robust enterprise, web RIAs. Upgrade & integrate Adobe Coldfusion MX7 with Flex 2 http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:265148 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: DateTime format problems
Thanx a lot guys, Ian and Chris were right. It was a problem with local settings, as I am in Gibraltar (Spain) at the moment. I have used : LSParseDateTime(ingrRdf.DateLastModified) instead of : CreateODBCDateTime(ingrRdf.DateLastModified) and it worked.!!! Thank you very much for the interest and your responces. I think www.houseoffusion.com had just become my favorite site. lol Ioannis ~| Create robust enterprise, web RIAs. Upgrade & integrate Adobe Coldfusion MX7 with Flex 2 http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:264478 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: DateTime format problems
Thanx a lot guys, Ian and Chris were right. It was a problem with local settings, as I am in Gibraltar (Spain) at the moment. I have used : LSParseDateTime(ingrRdf.DateLastModified) instead of : CreateODBCDateTime(ingrRdf.DateLastModified) and it worked. Format and date are the ~| Create robust enterprise, web RIAs. Upgrade & integrate Adobe Coldfusion MX7 with Flex 2 http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:264476 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: DateTime format problems
Well as a newbe with Coldfusion (this is my first application trying to develope) I am working a lot with examples and tutorials. I have found the property .DateLastModified on "http://tutorial236.easycfm.com/"; and it looks like it works good. It is able to retrieve the right date and time from the file on the server. When I am trying to converted though I get the wrong date. I have even try: CreateDateTime(year(ingrRdf.DateLastModified), month(ingrRdf.DateLastModified), day(ingrRdf.DateLastModified), hour(ingrRdf.DateLastModified), minute(ingrRdf.DateLastModified), second(ingrRdf.DateLastModified)) and I am still getting : {ts '2019-12-06 15:35:00'} instead of : {ts '2006-12-19 15:35:00'} If you know any alternative ways to retrieve the last date and time, a file has been modified or a function to convert the date time on the desireable format but with no mistakes please let me know. Thanx a lot for your responces Ioannis ~| Create robust enterprise, web RIAs. Upgrade & integrate Adobe Coldfusion MX7 with Flex 2 http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:264467 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
DateTime format problems
Hello everyone, I have a small problem converting dates using the function CreateODBCDateTime. I have a file in the server named "ingrRdf" which I want to retrieve the last date and time modified. If I go: #ingrRdf.DateLastModified# is going to give me: "19/12/06 15:35" Correct date but wrong format. but If I go: #CreateODBCDateTime(ingrRdf.DateLastModified)# "{ts '2019-12-06 15:35:00'}" Correct format but very wrong date. I am using: Coldfusion mx7 Linux Ubuntu PentiumIII, 512MB Any ideas very much welcome. Thanx in advance Ioannis ~| Create robust enterprise, web RIAs. Upgrade & integrate Adobe Coldfusion MX7 with Flex 2 http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:264451 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: *.dateLastModified -- could not convert to a date
>Actually, do not try that. It will not work. BRAIN FART!! > > > >If you output to the screen > > >#aMyUrls[3][i]#" > > >What do you get? > >- Original Message - >From: "Doug Brown" <[EMAIL PROTECTED]> >To: "CF-Talk" >Sent: Wednesday, November 01, 2006 5:56 PM >Subject: Re: *.dateLastModified -- could not convert to a date > > >> Hi, The value #aMyUrls[3][i]# takes strings from an array which I use for naming. As far as the loop keep going it is gong to take different names. When I try to output the result as you suggested it takes the first name on the array as it should. (The loop doesn t go further on as it results an error. .. the above naming is refearing to files on the server which I need to delete if the system detects that they are more than 15 minutes old. I can send you the whole loop to have a better idea if you wish. As I said this is my first application I am building with CF and it is probably just a newbe mistake. thanx Ioannis ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:258808 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: *.dateLastModified -- could not convert to a date
>try using this. You do not need to use # signs for your variables. Also it >works better to use LTE instead. > > >DateAdd("n", -15, Now())) LTE 0> > > > > > >- Original Message - >From: "Ioannis Papanikolaou" <[EMAIL PROTECTED]> >To: "CF-Talk" >Sent: Wednesday, November 01, 2006 3:06 PM >Subject: *.dateLastModified -- could not convert to a date > > >> Hello again, I have tried your solution and I ve tried this one as well: both of them giving the bellow error on the debugger: "You have attempted to dereference a scalar variable of type class java.lang.String as a structure with members. the error occured on line 47:... 47 : " any ideas more than welcome. Thanx Ioannis ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:258784 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: *.dateLastModified -- could not convert to a date
> I think your problem is in this line: > > The right side becomes a string, where I think you meant it to be the > date. Later when you do the date compare, you are trying to compare > this string "InGrrdf.dateLastModified" to 15 minutes ago. > > Without testing, I think this would work better: > > > I could be making my own dumb mistake though. :) > > > -Original Message- > > From: Ioannis Papanikolaou [mailto:[EMAIL PROTECTED] > > Sent: Wednesday, November 01, 2006 3:06 PM > > > > This is my first post as I am fairly new to ColdFusion. I am > > using ColdFusionMX > > 7.1 on Ubuntu and apache 2.2. > > > > What I am trying to do with the if statement is to identify > > if there is a file > > in the directory and if it is, to delete it if it is older > > than 15 minutes. The > > code is running on a loop which is performing on an array. As > > far as I know the > > loop is working good so far but at this point the debugger is > > giving me: > > > > "The value "InGrrdf.dateLastModified" could not be converted > > to a date." > > beaware that InGrrdf is the first file that the loop should found > > (#aMyUrls[3][i]#) > > > > This is the problematic code: > > > > > directory="#GetDirectoryFromPath(SavePath)#" > > name="#aMyUrls[3][i]#" filter="#aMyUrls[2][i]#"> > > > > > > > > > > > > DateAdd("n", -15, Now())) eq -1> > > > > > -> - > This transmission may contain information that is privileged, > confidential and/or exempt from disclosure under applicable law. If > you are not the intended recipient, you are hereby notified that any > disclosure, copying, distribution, or use of the information contained > herein (including any reliance thereon) is STRICTLY PROHIBITED. If you > received this transmission in error, please immediately contact the > sender and destroy the material in its entirety, whether in electronic > or hard copy format. Thank you. > => = > "EMF " made the previous annotations. Hello again, It is true. The problem is that the system recognises a string of laters not a date, and to be honnest I think this is what is happening to the MyRecordCount regardless it is not giving me an error. The problem is that when I use what you suggested : Then I get an other error which I assume it is syntactic error: You have attempted to dereference a scalar variable of type class java.lang.String as a structure with members. The error occurred in .../test5.cfm: line 40 40 : Any ideas.!!! ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:258781 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
*.dateLastModified -- could not convert to a date
Hello, This is my first post as I am fairly new to ColdFusion. I am using ColdFusionMX 7.1 on Ubuntu and apache 2.2. What I am trying to do with the if statement is to identify if there is a file in the directory and if it is, to delete it if it is older than 15 minutes. The code is running on a loop which is performing on an array. As far as I know the loop is working good so far but at this point the debugger is giving me: "The value "InGrrdf.dateLastModified" could not be converted to a date." beaware that InGrrdf is the first file that the loop should found (#aMyUrls[3][i]#) This is the problematic code: Thanx in advance for you answers Ioannis ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:258765 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4