application.cfm question
I'm testing some error checking stuff and don't understand why the application.cfm doesn't abort before an error is found in a file. Here's the application.cfm cfabort Here's the index.cfm cftest When the index.cfm is run, it shows the error information (Unknown tag: cftest). I would think that application.cfm would fire first and not even get to index.cfm. What am I'm missing here? 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:340333 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: application.cfm question
On 31/12/2010 9:55 PM, Richard Steele wrote: I'm testing some error checking stuff and don't understand why the application.cfm doesn't abort before an error is found in a file. Here's the application.cfm cfabort Here's the index.cfm cftest When the index.cfm is run, it shows the error information (Unknown tag: cftest). I would think that application.cfm would fire first and not even get to index.cfm. It is failing at compile time as that is a bad tag, it never gets as far as actually running the code because ity cannot compile it. Try putting a bad(unknown) variable name instead of a bad tag so the code compiles and then as it runs it will hit the cfabort and stop before it gets to the bad variable. If you are trying to error check at runtime for bad tags then you can't because it never gets that far. Hope that answer helps as I have to dash, some midnight fireworks to go to :-) Happy New Year everyone. -- Yours, Kym Kovan mbcomms.net.au ~| 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:340334 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: application.cfm question
The error you have there is a *compile time* *syntax* error, the code will be compiled before the request is 'run' which is why you see the error. If you change the code in index.cfm to cfset variable = undefinedVar /, the code will compile fine and will then abort in your app.cfm as the error that would be thrown by the undefined var would be a *runtime* error. HTH Dominic On 31 December 2010 10:55, Richard Steele r...@photoeye.com wrote: I'm testing some error checking stuff and don't understand why the application.cfm doesn't abort before an error is found in a file. Here's the application.cfm cfabort Here's the index.cfm cftest When the index.cfm is run, it shows the error information (Unknown tag: cftest). I would think that application.cfm would fire first and not even get to index.cfm. What am I'm missing here? 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:340335 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: (ot) Oracle function question...
I have seen people do this a number of ways. The one that pops into my head currently is using the DECODE function within the ORDER BY. If you Google for that then you will see a number of examples online. On Wed, Dec 29, 2010 at 11:55 AM, Eric Roberts ow...@threeravensconsulting.com wrote: I seem to remember a function in oracle that allows you to set criteria to list elements of a query result to display first, then the rest of the result set follows whatever is listed in the order by statement. I am jsut drawing a total blank on the function name as it has been a couple of years since I have worked with Oracle. Anyone happen to know what i am referring to? 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:340336 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
custom tag and javascript question
I have been running into an issue with not being able to read across forms on a site I am working on. The site is set up so that instead of using cfinclude, they address pages as custom tags (ie header.cfm is called as cf_header url_val=xx. The basic setup is there is an index.cfm that acts like a driver page that calls the tags and the called pages may also call tags as well. We have a dropdown to select with all of the properties or an individual property (Hotel properties). We are adding the ability for the hotels, if they take this into account, count the number of infants. This form field (itself a dropdown) is in a different form that is physically located in a different file (which is the parent page that is calling the file that the above dropdown live on). In the rendered html and javascript, the property section comes before the form that has the number of infants. What I am trying to accomplish is that when I change the hotel property, I want it to check against a session var that determines whether or not that property does an infant count and check a hidden form field to see if the value of infants is greater than 0. The problem I am having is that the hidden field that I have in the form isn't showing up. Does this have something to do with the fact that pages are being used as custom tags? I have never seen a site structured like this.it's pretty unique and not a bad idea, but I am wondering what effects on how variables are available to other tags/pages this structure has. Here's the basic structure: Index.cfm calls call_index.cfm as cf_call_index.cfm..call_index.cfm calls call_index2.cfm as cf_call_index2. Form 1 with the property dropdown physically resides on call_index2.cfm and form 2 that has the infant count dropdown physically resides on call_index.cfm. Anyone have an experience dealing with this kind of structure? Eric ~| 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:340337 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: custom tag and javascript question
How your cf is set up does little to effect how the javascript will communicate with other forms. JS will traverse your page in the usual way. The fact that one form is in a different file than another form doesn't matter to JS since by the time it gets to the client browser it's all one page as it were. How are you trying to get JS to target the forms now? What code is failing? On Fri, Dec 31, 2010 at 1:06 PM, Eric Roberts ow...@threeravensconsulting.com wrote: I have been running into an issue with not being able to read across forms on a site I am working on. The site is set up so that instead of using cfinclude, they address pages as custom tags (ie header.cfm is called as cf_header url_val=xx. The basic setup is there is an index.cfm that acts like a driver page that calls the tags and the called pages may also call tags as well. We have a dropdown to select with all of the properties or an individual property (Hotel properties). We are adding the ability for the hotels, if they take this into account, count the number of infants. This form field (itself a dropdown) is in a different form that is physically located in a different file (which is the parent page that is calling the file that the above dropdown live on). In the rendered html and javascript, the property section comes before the form that has the number of infants. What I am trying to accomplish is that when I change the hotel property, I want it to check against a session var that determines whether or not that property does an infant count and check a hidden form field to see if the value of infants is greater than 0. The problem I am having is that the hidden field that I have in the form isn't showing up. Does this have something to do with the fact that pages are being used as custom tags? I have never seen a site structured like this.it's pretty unique and not a bad idea, but I am wondering what effects on how variables are available to other tags/pages this structure has. Here's the basic structure: Index.cfm calls call_index.cfm as cf_call_index.cfm..call_index.cfm calls call_index2.cfm as cf_call_index2. Form 1 with the property dropdown physically resides on call_index2.cfm and form 2 that has the infant count dropdown physically resides on call_index.cfm. Anyone have an experience dealing with this kind of structure? Eric ~| 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:340338 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: custom tag and javascript question
CF simply outputs any content in the file, it does not automatically make any decisions about what to display unless you have defined this with if/else block or switch/case statements or are dynamically generating the content. The other thing that could stop content being displayed is a cfsetting enablecfoutputonly=yes or a cfsilent Also as you are using custom tags you can block the content with thistag.generatedcontent so i would check your code for all these possibilities Russ On Fri, Dec 31, 2010 at 6:49 PM, Michael Grant mgr...@modus.bz wrote: How your cf is set up does little to effect how the javascript will communicate with other forms. JS will traverse your page in the usual way. The fact that one form is in a different file than another form doesn't matter to JS since by the time it gets to the client browser it's all one page as it were. How are you trying to get JS to target the forms now? What code is failing? On Fri, Dec 31, 2010 at 1:06 PM, Eric Roberts ow...@threeravensconsulting.com wrote: I have been running into an issue with not being able to read across forms on a site I am working on. The site is set up so that instead of using cfinclude, they address pages as custom tags (ie header.cfm is called as cf_header url_val=xx. The basic setup is there is an index.cfm that acts like a driver page that calls the tags and the called pages may also call tags as well. We have a dropdown to select with all of the properties or an individual property (Hotel properties). We are adding the ability for the hotels, if they take this into account, count the number of infants. This form field (itself a dropdown) is in a different form that is physically located in a different file (which is the parent page that is calling the file that the above dropdown live on). In the rendered html and javascript, the property section comes before the form that has the number of infants. What I am trying to accomplish is that when I change the hotel property, I want it to check against a session var that determines whether or not that property does an infant count and check a hidden form field to see if the value of infants is greater than 0. The problem I am having is that the hidden field that I have in the form isn't showing up. Does this have something to do with the fact that pages are being used as custom tags? I have never seen a site structured like this.it's pretty unique and not a bad idea, but I am wondering what effects on how variables are available to other tags/pages this structure has. Here's the basic structure: Index.cfm calls call_index.cfm as cf_call_index.cfm..call_index.cfm calls call_index2.cfm as cf_call_index2. Form 1 with the property dropdown physically resides on call_index2.cfm and form 2 that has the infant count dropdown physically resides on call_index.cfm. Anyone have an experience dealing with this kind of structure? Eric ~| 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:340339 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: custom tag and javascript question
In the same on change event that causes the page to go from all properties to an individual property I have it assign the value of a hidden form field to the value of the infants dropdown...yet when the page loads, there are no form fields... Eric -Original Message- From: Michael Grant [mailto:mgr...@modus.bz] Sent: Friday, December 31, 2010 12:49 To: cf-talk Subject: Re: custom tag and javascript question How your cf is set up does little to effect how the javascript will communicate with other forms. JS will traverse your page in the usual way. The fact that one form is in a different file than another form doesn't matter to JS since by the time it gets to the client browser it's all one page as it were. How are you trying to get JS to target the forms now? What code is failing? On Fri, Dec 31, 2010 at 1:06 PM, Eric Roberts ow...@threeravensconsulting.com wrote: I have been running into an issue with not being able to read across forms on a site I am working on. The site is set up so that instead of using cfinclude, they address pages as custom tags (ie header.cfm is called as cf_header url_val=xx. The basic setup is there is an index.cfm that acts like a driver page that calls the tags and the called pages may also call tags as well. We have a dropdown to select with all of the properties or an individual property (Hotel properties). We are adding the ability for the hotels, if they take this into account, count the number of infants. This form field (itself a dropdown) is in a different form that is physically located in a different file (which is the parent page that is calling the file that the above dropdown live on). In the rendered html and javascript, the property section comes before the form that has the number of infants. What I am trying to accomplish is that when I change the hotel property, I want it to check against a session var that determines whether or not that property does an infant count and check a hidden form field to see if the value of infants is greater than 0. The problem I am having is that the hidden field that I have in the form isn't showing up. Does this have something to do with the fact that pages are being used as custom tags? I have never seen a site structured like this.it's pretty unique and not a bad idea, but I am wondering what effects on how variables are available to other tags/pages this structure has. Here's the basic structure: Index.cfm calls call_index.cfm as cf_call_index.cfm..call_index.cfm calls call_index2.cfm as cf_call_index2. Form 1 with the property dropdown physically resides on call_index2.cfm and form 2 that has the infant count dropdown physically resides on call_index.cfm. Anyone have an experience dealing with this kind of structure? Eric ~| 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:340340 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: custom tag and javascript question
Maybe I'm not following along here. How can the JS assign a value to a hidden form field if CF isn't rendering the hidden form field onto the page? Is this hidden form field wrapped in cfoutput? On Fri, Dec 31, 2010 at 2:46 PM, Eric Roberts ow...@threeravensconsulting.com wrote: In the same on change event that causes the page to go from all properties to an individual property I have it assign the value of a hidden form field to the value of the infants dropdown...yet when the page loads, there are no form fields... Eric -Original Message- From: Michael Grant [mailto:mgr...@modus.bz] Sent: Friday, December 31, 2010 12:49 To: cf-talk Subject: Re: custom tag and javascript question How your cf is set up does little to effect how the javascript will communicate with other forms. JS will traverse your page in the usual way. The fact that one form is in a different file than another form doesn't matter to JS since by the time it gets to the client browser it's all one page as it were. How are you trying to get JS to target the forms now? What code is failing? On Fri, Dec 31, 2010 at 1:06 PM, Eric Roberts ow...@threeravensconsulting.com wrote: I have been running into an issue with not being able to read across forms on a site I am working on. The site is set up so that instead of using cfinclude, they address pages as custom tags (ie header.cfm is called as cf_header url_val=xx. The basic setup is there is an index.cfm that acts like a driver page that calls the tags and the called pages may also call tags as well. We have a dropdown to select with all of the properties or an individual property (Hotel properties). We are adding the ability for the hotels, if they take this into account, count the number of infants. This form field (itself a dropdown) is in a different form that is physically located in a different file (which is the parent page that is calling the file that the above dropdown live on). In the rendered html and javascript, the property section comes before the form that has the number of infants. What I am trying to accomplish is that when I change the hotel property, I want it to check against a session var that determines whether or not that property does an infant count and check a hidden form field to see if the value of infants is greater than 0. The problem I am having is that the hidden field that I have in the form isn't showing up. Does this have something to do with the fact that pages are being used as custom tags? I have never seen a site structured like this.it's pretty unique and not a bad idea, but I am wondering what effects on how variables are available to other tags/pages this structure has. Here's the basic structure: Index.cfm calls call_index.cfm as cf_call_index.cfm..call_index.cfm calls call_index2.cfm as cf_call_index2. Form 1 with the property dropdown physically resides on call_index2.cfm and form 2 that has the infant count dropdown physically resides on call_index.cfm. Anyone have an experience dealing with this kind of structure? Eric ~| 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:340341 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: custom tag and javascript question
I think I see where the problem lies...instead of doing a standard submit...it does a top.location.href to change from all properties to a single one. They do a lot of very odd stuff in this application. I certainly wouldn't have chosen to do that. Eric -Original Message- From: Michael Grant [mailto:mgr...@modus.bz] Sent: Friday, December 31, 2010 14:20 To: cf-talk Subject: Re: custom tag and javascript question Maybe I'm not following along here. How can the JS assign a value to a hidden form field if CF isn't rendering the hidden form field onto the page? Is this hidden form field wrapped in cfoutput? On Fri, Dec 31, 2010 at 2:46 PM, Eric Roberts ow...@threeravensconsulting.com wrote: In the same on change event that causes the page to go from all properties to an individual property I have it assign the value of a hidden form field to the value of the infants dropdown...yet when the page loads, there are no form fields... Eric -Original Message- From: Michael Grant [mailto:mgr...@modus.bz] Sent: Friday, December 31, 2010 12:49 To: cf-talk Subject: Re: custom tag and javascript question How your cf is set up does little to effect how the javascript will communicate with other forms. JS will traverse your page in the usual way. The fact that one form is in a different file than another form doesn't matter to JS since by the time it gets to the client browser it's all one page as it were. How are you trying to get JS to target the forms now? What code is failing? On Fri, Dec 31, 2010 at 1:06 PM, Eric Roberts ow...@threeravensconsulting.com wrote: I have been running into an issue with not being able to read across forms on a site I am working on. The site is set up so that instead of using cfinclude, they address pages as custom tags (ie header.cfm is called as cf_header url_val=xx. The basic setup is there is an index.cfm that acts like a driver page that calls the tags and the called pages may also call tags as well. We have a dropdown to select with all of the properties or an individual property (Hotel properties). We are adding the ability for the hotels, if they take this into account, count the number of infants. This form field (itself a dropdown) is in a different form that is physically located in a different file (which is the parent page that is calling the file that the above dropdown live on). In the rendered html and javascript, the property section comes before the form that has the number of infants. What I am trying to accomplish is that when I change the hotel property, I want it to check against a session var that determines whether or not that property does an infant count and check a hidden form field to see if the value of infants is greater than 0. The problem I am having is that the hidden field that I have in the form isn't showing up. Does this have something to do with the fact that pages are being used as custom tags? I have never seen a site structured like this.it's pretty unique and not a bad idea, but I am wondering what effects on how variables are available to other tags/pages this structure has. Here's the basic structure: Index.cfm calls call_index.cfm as cf_call_index.cfm..call_index.cfm calls call_index2.cfm as cf_call_index2. Form 1 with the property dropdown physically resides on call_index2.cfm and form 2 that has the infant count dropdown physically resides on call_index.cfm. Anyone have an experience dealing with this kind of structure? Eric ~| 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:340342 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm