RE: Javascript not working inside of cflayoutarea
How is you JavaScript written? Is it like this Function funcName() { } Or is it written like funcName = function() {}; This is important, and as per the nodes in the documentation there are issues with JS not working, if you are not following the latter method. If however you are doing this, can you confirm with me that it is loaded in the page, or is it included as a separate file in the loading page. By going to FireFox and using firebug you can confirm that the pages are loading, after that you can either debug the script and see if it is being run or not. Regards, Andrew Scott http://www.andyscott.id.au/ -Original Message- From: Steve Sequenzia [mailto:c...@thinksys.com] Sent: Monday, 11 April 2011 3:45 PM To: cf-talk Subject: Javascript not working inside of cflayoutarea I have a index page that has a cflayout and a cflayoutarea with a source to another cfm page. The cfm page that the cflayoutarea uses as the source has a jquery menu in it. When it loads all of the javascript that powers the jquery menu is not loading. I made sure that the javascript source files were being loaded on the index page. I have also been trying to get them to load with cfajaximport scriptSrc but that is not working. Here is some code: cflayout type=hbox cflayoutarea name=nav source=nav_pos.cfm /cflayoutarea /cflayout The nav_pos.cfm has the jquery on it that is not working. Any help on this would be great. Thanks! ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343641 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Javascript not working inside of cflayoutarea
Andrew, Thanks for the response. I fixed the functions to this format - funcName = function() {};. All of the scripts are in separate files. Do I need to use cfajaximport scriptSrc or can I just put the scripts into the CFIDE/scripts folder? I am confused how all that works. Thanks again. -Steve How is you JavaScript written? Is it like this Function funcName() { } Or is it written like funcName = function() {}; This is important, and as per the nodes in the documentation there are issues with JS not working, if you are not following the latter method. If however you are doing this, can you confirm with me that it is loaded in the page, or is it included as a separate file in the loading page. By going to FireFox and using firebug you can confirm that the pages are loading, after that you can either debug the script and see if it is being run or not. Regards, Andrew Scott http://www.andyscott.id.au/ I have a index page that has a cflayout and a cflayoutarea with a source to another cfm page. The cfm page that the cflayoutarea uses as the source has a jquery menu in it. When it loads all of the javascript that powers the jquery menu is not loading. I made sure that the javascript source files were being loaded on the index page. I have also been trying to get them to load with cfajaximport scriptSrc ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343642 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: Javascript not working inside of cflayoutarea
From my experience it is always that people forget that these new UI features, all created div and other elements in the current page to do what they need. Ok having said that, I am betting my bottom dollar that with what you are returning to be displayed, doesn't contain any htmlbody etc html tags. This is important because the ColdFusion underneath the hood, needs these tags to include the extra files etc that they need. And because the main page is already loaded, ColdFusion can't add them to the current page, from the page that is being loaded. I hope that makes sense, there are two options you can try here and option 2 is my preferred method. Option 1: return the html tags htmlbody etc, this would ensure that the import the tag on the page, ColdFusion while generating the page can place the needed code in the header of the page. Downside to this is that you end up with a malformed dom, and will fail validators. Option 2: Just place the import on the main page, this might seem overkill if you are only going to use it once or twice. But the upside is that you are generating valid html. Regards, Andrew Scott http://www.andyscott.id.au/ -Original Message- From: Steve Sequenzia [mailto:c...@thinksys.com] Sent: Monday, 11 April 2011 11:16 PM To: cf-talk Subject: Re: Javascript not working inside of cflayoutarea Andrew, Thanks for the response. I fixed the functions to this format - funcName = function() {};. All of the scripts are in separate files. Do I need to use cfajaximport scriptSrc or can I just put the scripts into the CFIDE/scripts folder? I am confused how all that works. Thanks again. -Steve ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343643 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Solr Errors
To be clear - is this only for your unit tests? Could you possibly use sleep() to slow things down a bit? That's a hack - but would allow you to keep testing. Currently it's only showing up on my unit tests, but that's only because I'm the only one using the application. If multiple people add data at the same time, I would expect to see it then as well. And I'm also just finishing up a process for adding a batch of these data objects at once, that as well will cause it to bomb. So yeah, I can throw a long sleep in there to get my tests to pass (I'm having to sleep for at least a minute for each cfindex right now for it to get by this), but that's not going to fix the problem for production use. --- Mary Jo ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343644 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Javascript not working inside of cflayoutarea
Andrew, I understand what you are saying. I would rather import the files. I just can't seem to get the syntax right. I am trying this - cfajaximport scriptsrc=\CFIDE\scripts\jquery\ When I do that all the other ajax stuff on the page does not load. Do I need to redirect all the files? Thanks again. -Steve From my experience it is always that people forget that these new UI features, all created div and other elements in the current page to do what they need. Ok having said that, I am betting my bottom dollar that with what you are returning to be displayed, doesn't contain any htmlbody etc html tags. This is important because the ColdFusion underneath the hood, needs these tags to include the extra files etc that they need. And because the main page is already loaded, ColdFusion can't add them to the current page, from the page that is being loaded. I hope that makes sense, there are two options you can try here and option 2 is my preferred method. Option 1: return the html tags htmlbody etc, this would ensure that the import the tag on the page, ColdFusion while generating the page can place the needed code in the header of the page. Downside to this is that you end up with a malformed dom, and will fail validators. Option 2: Just place the import on the main page, this might seem overkill if you are only going to use it once or twice. But the upside is that you are generating valid html. Regards, Andrew Scott http://www.andyscott.id.au/ Andrew, Thanks for the response. I fixed the functions to this format - funcName = function() {};. All of the scripts are in separate files. Do I need to use cfajaximport scriptSrc or can I just put the scripts into the CFIDE/scripts folder? I am confused how all that works. Thanks again. -Steve ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343645 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Solr Errors
According to this you should be able to comment out caching altogether in the solrconfig.xml file. Cool, thanks I'll try that. The info I had from the Solr folks was to set autowarmCount=0 for all the caching, but that didn't seem to have any effect. Maybe removing caching completely will do it. --- Mary Jo ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343646 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Solr Errors
As an aside, it may be worth looking at the native Solr data import modules. Can have massive performance benefits over using cfindex. Dominic On 11 April 2011 15:33, Mary Jo Sminkey mary...@cfwebstore.com wrote: According to this you should be able to comment out caching altogether in the solrconfig.xml file. Cool, thanks I'll try that. The info I had from the Solr folks was to set autowarmCount=0 for all the caching, but that didn't seem to have any effect. Maybe removing caching completely will do it. --- Mary Jo ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343647 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: coldfusion service stop rsponding or CPU goes up tp 100%
also i saw that jrun.exe memory is always growing, it was at 5 590 405 kb. is it normal? is it because in jvm.settings i put 8gb of java jeap size ? ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343648 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: Javascript not working inside of cflayoutarea
Where are you trying to load the jquery from, the main page or the page that gets loaded with the layout? Secondly, did you place the jquery files in the cfide? If not then you might want to go to the jquery website download the jQuery distribution, and use that, or you could use the google CDN version. Have you got an example of your cfajaximport code, it might be that if the above is not true then jquery is being relatively loaded and not absolutely loaded, this means that it is trying to find the jquery package in the wrong directory. Again firebug and the Net option tab in FireFox will quickly show all this for you, for example if it can't find or load a file for any reason it will tell you all this and which files. You can then compare this with they are supposed to be, and fix accordingly. If you aren't using FireBug for FireFox then I would highly recommend this add on, it is invaluable when it comes to development like this. Regards, Andrew Scott http://www.andyscott.id.au/ -Original Message- From: Steve Sequenzia [mailto:c...@thinksys.com] Sent: Tuesday, 12 April 2011 12:31 AM To: cf-talk Subject: Re: Javascript not working inside of cflayoutarea Andrew, I understand what you are saying. I would rather import the files. I just can't seem to get the syntax right. I am trying this - cfajaximport scriptsrc=\CFIDE\scripts\jquery\ When I do that all the other ajax stuff on the page does not load. Do I need to redirect all the files? Thanks again. -Steve ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343649 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Javascript not working inside of cflayoutarea
Steve cfajaximport scriptsrc=... is only for cf's built-in scripts - you do not use it to load anything else. and you only need to use it if you do not have access to default cf's scripts folder or if you have moved the default cf scripts to another folder. to load jquery or any other js scripts, you just use your regular script tags in the head section of your page. specifically for dealing with scripts in pages loaded into cf's ajax containers i found this approach working best: - include your js library (jquery) in the main page (the one that has cflayout tags in you case) - include any js code that needs to run after pages have been loaded into ajax containers as separate js functions in the main page's head section as well. - in the pages loaded inside ajax containers add cfset ajaxonload('name-of-your-js-function-to-execute-here') as the last line before the closing /body tag: this will run the specified js function after the page has been loaded inside the container Azadi On 11/04/2011 22:31 , Steve Sequenzia wrote: Andrew, I understand what you are saying. I would rather import the files. I just can't seem to get the syntax right. I am trying this -cfajaximport scriptsrc=\CFIDE\scripts\jquery\ When I do that all the other ajax stuff on the page does not load. Do I need to redirect all the files? Thanks again. -Steve From my experience it is always that people forget that these new UI features, all created div and other elements in the current page to do what they need. Ok having said that, I am betting my bottom dollar that with what you are returning to be displayed, doesn't contain anyhtmlbody etc html tags. This is important because the ColdFusion underneath the hood, needs these tags to include the extra files etc that they need. And because the main page is already loaded, ColdFusion can't add them to the current page, from the page that is being loaded. I hope that makes sense, there are two options you can try here and option 2 is my preferred method. Option 1: return the html tagshtmlbody etc, this would ensure that the import the tag on the page, ColdFusion while generating the page can place the needed code in the header of the page. Downside to this is that you end up with a malformed dom, and will fail validators. Option 2: Just place the import on the main page, this might seem overkill if you are only going to use it once or twice. But the upside is that you are generating valid html. Regards, Andrew Scott http://www.andyscott.id.au/ Andrew, Thanks for the response. I fixed the functions to this format - funcName = function() {};. All of the scripts are in separate files. Do I need to use cfajaximport scriptSrc or can I just put the scripts into the CFIDE/scripts folder? I am confused how all that works. Thanks again. -Steve ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343650 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Solr Errors
Cool, thanks I'll try that. The info I had from the Solr folks was to set autowarmCount=0 for all the caching, but that didn't seem to have any effect. Maybe removing caching completely will do it. Sigh, nope I commented out the three types of caches in the config file and still get the error. Tried lowering the size on them as well, but even with sleeping for a minute after every cfindex, I still get the error. The only thing that prevents it is upping the setting for maxWarmingSearchers to something like 10, then I don't hit the limit. But not sure this is going to be a valid solution, since if a user tries to add a batch of say, 20 items, I can expect to still crash on this. It's looking like I won't be able to use Solr for the data at this point, at least, not if I want it immediately available in a search. I'm not sure I have enough time late in this project to build some kind of other module for Solr to do this, it's more important right now to just get it working, so that looks like just doing a plain SQL search of the data (yuck). --- Mary Jo ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343651 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: Solr Errors
Mary Jo, I have a hard time believing this cant be done (not that I doubt your thoroughness). It seems like a batch of 10 items is pretty small potatoes. -Mark Mark A. Kruger, MCSE, CFG (402) 408-3733 ext 105 www.cfwebtools.com www.coldfusionmuse.com www.necfug.com -Original Message- From: Mary Jo Sminkey [mailto:mary...@cfwebstore.com] Sent: Monday, April 11, 2011 10:27 AM To: cf-talk Subject: Re: Solr Errors Cool, thanks I'll try that. The info I had from the Solr folks was to set autowarmCount=0 for all the caching, but that didn't seem to have any effect. Maybe removing caching completely will do it. Sigh, nope I commented out the three types of caches in the config file and still get the error. Tried lowering the size on them as well, but even with sleeping for a minute after every cfindex, I still get the error. The only thing that prevents it is upping the setting for maxWarmingSearchers to something like 10, then I don't hit the limit. But not sure this is going to be a valid solution, since if a user tries to add a batch of say, 20 items, I can expect to still crash on this. It's looking like I won't be able to use Solr for the data at this point, at least, not if I want it immediately available in a search. I'm not sure I have enough time late in this project to build some kind of other module for Solr to do this, it's more important right now to just get it working, so that looks like just doing a plain SQL search of the data (yuck). --- Mary Jo ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343652 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
cfzip and Native Windows Zip Support
Greetings, I wanted to ask, has anyone had problems opening zip files created with cfzip with the (Compressed zip folders) utility that comes with windows? According to that ulitlty, the archive is corrupted. However, I was able to open it with WinRAR and 7-zip without any problems. Odd Thanks in Advance, ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343653 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Solr Errors
Same here and that is basically what we are doing today with Verity. This whole thread though is making me want to get started on Solr testing since the plan was eventually to migrate from our Verity solution to Solr. On Mon, Apr 11, 2011 at 10:51 AM, Mark A. Kruger mkru...@cfwebtools.comwrote: Mary Jo, I have a hard time believing this cant be done (not that I doubt your thoroughness). It seems like a batch of 10 items is pretty small potatoes. -Mark Mark A. Kruger, MCSE, CFG (402) 408-3733 ext 105 www.cfwebtools.com www.coldfusionmuse.com www.necfug.com -Original Message- From: Mary Jo Sminkey [mailto:mary...@cfwebstore.com] Sent: Monday, April 11, 2011 10:27 AM To: cf-talk Subject: Re: Solr Errors Cool, thanks I'll try that. The info I had from the Solr folks was to set autowarmCount=0 for all the caching, but that didn't seem to have any effect. Maybe removing caching completely will do it. Sigh, nope I commented out the three types of caches in the config file and still get the error. Tried lowering the size on them as well, but even with sleeping for a minute after every cfindex, I still get the error. The only thing that prevents it is upping the setting for maxWarmingSearchers to something like 10, then I don't hit the limit. But not sure this is going to be a valid solution, since if a user tries to add a batch of say, 20 items, I can expect to still crash on this. It's looking like I won't be able to use Solr for the data at this point, at least, not if I want it immediately available in a search. I'm not sure I have enough time late in this project to build some kind of other module for Solr to do this, it's more important right now to just get it working, so that looks like just doing a plain SQL search of the data (yuck). --- Mary Jo ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343654 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Solr Errors
Same here and that is basically what we are doing today with Verity. This whole thread though is making me want to get started on Solr testing since the plan was eventually to migrate from our Verity solution to Solr. Hhm, I wonder if I just need to switch over the Verity then? Didn't really want to redo all the syntax for my searches, but if it works Yeah, I agree it seems like there should be *some* way around this! It's fairly easy to test this, by putting some cfindex code into a loop. But it appears to have a lot to do as well with the size of the collection, so you have to be sure to load it with enough records to see the problem. My collection has a lot of data, which is why I didn't see this earlier in testing when I had a small sub-set of data loaded, the Solr searches would do their work quickly and move on. It was only when I started loaded my entire set of data that I started seeing the problem, as Solr then was taking a lot longer to create a new searcher, run the index code, and then destroy the searcher after it was done. So they pile up very quickly if you are running a bunch of cfindex tags in one request. I could probably figure out a way to bulk load my batch functions, but that still leaves me with problems if multiple users are adding data at once. --- Mary Jo ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343655 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Solr Errors
We are planning to test switching off it since the rumor mill is that the next version of CF will no longer have Verity. On Mon, Apr 11, 2011 at 11:34 AM, Mary Jo Sminkey mary...@cfwebstore.comwrote: Hhm, I wonder if I just need to switch over the Verity then? Didn't really want to redo all the syntax for my searches, but if it works ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343656 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: cfzip and Native Windows Zip Support
According to that ulitlty, the archive is corrupted. All zip files or only some of them? Also, what does the folder structure inside the .zip look like? ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343657 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: cfzip and Native Windows Zip Support
Just some of them. Seems that it is random. It doesn't matter if its a big or small file. The folder structure in the zip file is, some folders and some files in the root. At the most the folders go two levels deep. On Mon, Apr 11, 2011 at 1:22 PM, Leigh cfsearch...@yahoo.com wrote: According to that ulitlty, the archive is corrupted. All zip files or only some of them? Also, what does the folder structure inside the .zip look like? ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343658 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Solr Errors
Mary, What are you loading into your index (queries or documents)? Can you provide a code snippet of your process? Carl On 4/8/2011 9:36 AM, Mary Jo Sminkey wrote: Well, by doing some research on the Solr boards and lists, I was able to figure out the problem. It appears to be due to CF committing after every cfindex tag and this causes Solr to open a new searcher and auto warm it (load from cache). If you are committing more frequently than the warming process, these searches pile up and you hit the error. So if you have a page that runs a lot of cfindex tags (as my unit tests were) you can easily hit this error. Problem is, I'm not sure how we can work around this easily. I tried setting the autoWarmCounts to 0 to see if I could reduce the startup time (and since my app does a lot more indexing at runtime than searches so slow startup is not a big issue) but I still hit the error when the number of searches exceeded the maximum set. I could try setting the limit for warming searches higher (setting it to 10 for instance fixes the problem with my tests) but that supposedly is a bit of a performance killer. In cases where my users are adding a batch of these data elements that I'm indexing, I'm almost certainly to bang into that limit again. In my case, it may mean we simply cannot use Solr for this, unless there's someway to batch the commits and just do one single one at the end of the request. What we need is something like a cftransaction tag for the cfindex tag. --- Mary Jo ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343659 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: cfzip and Native Windows Zip Support
It may not be your issue, but I have a vague recollection of problems with XP. IIRC my issue seemed related to the directory structure of the zip file. The corrupted files all contained an top level folder that appeared unnamed. (The rest of contents were inside that folder). Once I fixed the code to eliminate that unnamed folder, the issue went away. ie /(unnamed folder) /fileA.doc /folderB /folderB/fileC.xls -Leigh ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343660 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: cfzip and Native Windows Zip Support
Thanks.. I will try that and see if its the issue. On Mon, Apr 11, 2011 at 2:31 PM, Leigh cfsearch...@yahoo.com wrote: It may not be your issue, but I have a vague recollection of problems with XP. IIRC my issue seemed related to the directory structure of the zip file. The corrupted files all contained an top level folder that appeared unnamed. (The rest of contents were inside that folder). Once I fixed the code to eliminate that unnamed folder, the issue went away. ie /(unnamed folder) /fileA.doc /folderB /folderB/fileC.xls -Leigh ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343661 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: cfzip and Native Windows Zip Support
Also, have you ruled out the usual suspects like bad file names, invalid characters, etcetera? ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343662 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: cfzip and Native Windows Zip Support
I have accounted for that but I am double checking just to be sure! Thanks for the suggestions. On Mon, Apr 11, 2011 at 2:35 PM, Leigh cfsearch...@yahoo.com wrote: Also, have you ruled out the usual suspects like bad file names, invalid characters, etcetera? ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343663 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Solr Errors
What are you loading into your index (queries or documents)? Can you provide a code snippet of your process? Just results of a query, so nothing real earth-shattering. Just wanted to use Solr to search all my long text fields that hold a considerable amount of data (users have a search interface to select which tables to search, I'm using categories to handle that). The majority of the data gets updated and reindexed nightly, this is the one type of data that users can add and so needs to be updated at runtime. My cfindex tag looks like this: cfindex collection=#docCollection# action=update body=thedata category=IMPACT custom1=grant_id custom2=fy key=key query=local.qryImpacts / --- Mary Jo ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343664 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
cfselect selected bug?
I have two dropdowns that I've made related using cfselect and bind. The problem I'm having is the default for the second drop down. It seems to work fine when the value of the second dropdown is a number that doesn't start with a zero, but I have IDs that start w/ 3-4 zeros. Somehow the leading zeros are getting stripped out during comparison? Anybody else run into this issue? Thanks, Tim ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343665 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: cfselect selected bug?
that's a known issue with cf's json implementation. what you can do, is add a leading space to all your ids so cf stops stripping zeros . you will then need to trim that space on the back-end when user selections are submitted. Azadi On 12/04/2011 06:38 , Tim Do wrote: I have two dropdowns that I've made related using cfselect and bind. The problem I'm having is the default for the second drop down. It seems to work fine when the value of the second dropdown is a number that doesn't start with a zero, but I have IDs that start w/ 3-4 zeros. Somehow the leading zeros are getting stripped out during comparison? Anybody else run into this issue? Thanks, Tim ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343666 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm