Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and the Yahoo Answers website is now in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.
Trending News
ColdFusion Question regarding URL.Div?
I was refering to this code in one of the sites.
http://www.sitepoint.com/article/dynamic-menu-cold...
<CFOUTPUT>#URL.Div#</CFOUTPUT>
Can anyone explain me where does this URL.Div come from. I am new to ColdFusion.
1 Answer
- Martyr2Lv 71 decade agoFavorite Answer
Well unfortunately I think you picked a bad example. According to the comments for the article, everyone is having trouble with this code. I think it is because at many times he is referring to other files or code that was not included in the article. Even the downloaded code files on the site refer to this code being used as only part of a larger project called "MyArgent".
While I am not at all a coldfusion user or programmer, I can deceipher enough to know that URL is a variable which has a div attribute that is probably set in one of the files he did not include in the example. I noticed in one other part he sets the parameter "URL.Page" to the value "home" so I am thinking he is setting URL.Div to something else himself.
But from his example, there is no way to tell because I think it is overall incomplete.
This example was also replicated across multiple sites and all of them have the example as broken and missing files like sitepoint-sample.cfm which is obviously missing from the example.
In short, the example is just broken and it isn't anything you can do to fix it. Unless you contact the author and ask about other files which may contain that URL.Div definition.
Sorry. Hope that helps you out. Good luck with the coldfusion!