In another question, ‘Using Google Map with ColdFusion’, I ran into a problem of not able to display a google map using CF. After much experimenting, I found out that if you use ColdFusion.navigate to point to a page from one cflayoutarea to another cflayoutarea, the map in the destination cflayoutarea would not show. (However, if you just run the page, both by itself or when it is inside the destination cflayoutarea, the map will show)
So my question now is: is there an alternative approach where I don’t need to use coldfusion.navigate to navigate from one cflayoutarea to another?
Your English isn’t great, so I’m going to paraphrase to a question that makes sense (to me) and answer that question…
It sounds like you have 2
CFLayoutArea‘s, and you want to have a link (or button, etc) in one of them that will change the contents of the other.If you’re eliminating
ColdFusion.navigateas an option, then it seems to me you’re going to have to try one of a few other options that are all basically the same thing. I like jQuery. If you don’t like jQuery, you can use another library, or roll your own solution, but they will all do the same job.Since this code:
Produces this HTML:
You can use the ID attribute of the content DIV, with jQuery, to change its contents: