mtbvfr
Posts: 5
|
| Posted: 03/30/2006, 1:09 PM |
|
Hi,
I would like to know if the following scenario is possible with CCS.
I wish to have a Static header that would contain a navigation menu. Below this what I want to be able to do is have a TreeView Control on the Left and to the Right would appear various Controls dependant on what Node of the TreeView is clicked.
Thank you,
_________________
Michael Holberton
Hospedaje Macha Wasi & Sacred Valley Mountain Bike Tours
Cusco Database Development and Cycling Services
http://www.machawasi.com
http://databaseservices.blogspot.com
http://serviciosdeciclismodelperu.googlepages.com |
 |
 |
mtbvfr
Posts: 5
|
| Posted: 03/30/2006, 1:16 PM |
|
P.S. Only the portion of the page to the right of the TreeView should be rerendered. And similarly when selecting a menu option from the Header portion of the page, only the portion below the header should change. Are there any good examples of these types of features I can look at?
_________________
Michael Holberton
Hospedaje Macha Wasi & Sacred Valley Mountain Bike Tours
Cusco Database Development and Cycling Services
http://www.machawasi.com
http://databaseservices.blogspot.com
http://serviciosdeciclismodelperu.googlepages.com |
 |
 |
peterr
Posts: 5971
|
| Posted: 03/30/2006, 1:32 PM |
|
This looks quite standard. Our main Website has a treeview menu on the left and a header menu at the top: http://www.yessoftware.com/products/product_detail.php?product_id=1
By selecting various menu items you can display different pages and each one can have different controls. You can also use includable pages or panels to display only a portion of a page based on parameters passed via your menu.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com |
 |
 |
mtbvfr
Posts: 5
|
| Posted: 03/30/2006, 2:13 PM |
|
Hi Peter,
Thanks for your response but that web site you quoted appears to have some kind of navigation bar on the left and not a Tree View and also when you make a selection from the Nav Bar the whole page is being rerendered.
_________________
Michael Holberton
Hospedaje Macha Wasi & Sacred Valley Mountain Bike Tours
Cusco Database Development and Cycling Services
http://www.machawasi.com
http://databaseservices.blogspot.com
http://serviciosdeciclismodelperu.googlepages.com |
 |
 |
Benjamin Krajmalnik
|
| Posted: 03/30/2006, 6:09 PM |
|
Michael,
What you want to do is definitely doable withing CodeCharge, but not only
with CodeCharge.
If you are using PHP, you can integrate XAJAX into your code.
I do something similar - although I am not using AJAX to update the contect
section.
I am using the free dtree javascript library to create my tree (in my case
it is a multilevel tree with account relationships).
I wrote a proprietary class library which allows me to very easily
manipulate the tree object. Essentially, I use a label control. In its
"Before Show" event, I call my class to generate the tree and set the URL
parameters for each node. WHen the node is clicked, I am calling a PHP
function via XAJAX which sets certain session variables and, in my case
(because of the content in the main pane) use a JSON call to reload the page
and perform some additional tasks.
But, you could just as well use their XML wrapper to encapsulate content to
be placed in the innerHTML of your main section.
HTH
|
|
|
 |
mtbvfr
Posts: 5
|
| Posted: 03/31/2006, 11:21 AM |
|
Hi Ben,
I understand basically what you are saying but I am a long, long way from being a Web Guru. I'm a database guru. I have no experience with AJAX or JSON. I have also been looking at ComponentArt Controls but you can't dynamically load Callback Controls for part of a Page. I would have to use Frames which has appeared to be the best solution from the beginning for building a Database Driven Web Application not a Content Site.
Coming back to CCS, I will be using VB.Net with VS 2003. I will also need to update database fields related to these controls and/or refresh these controls so that only the "container" for these Controls or the ControIs, in the Right Pane or Frame, are rerendered when Posting To or Retrieving From the Database. Is this also possible using CCS alone? Does CCS have its own TreeView Control that you can populate from a database?
I need to be able to build a Web Application as quickly and reliably as possible.
Thanks for your time,
_________________
Michael Holberton
Hospedaje Macha Wasi & Sacred Valley Mountain Bike Tours
Cusco Database Development and Cycling Services
http://www.machawasi.com
http://databaseservices.blogspot.com
http://serviciosdeciclismodelperu.googlepages.com |
 |
 |
peterr
Posts: 5971
|
| Posted: 03/31/2006, 11:45 AM |
|
Michael,
Our Website menu is a hierarchical multilevel menu, basically same as treeview just with different layout. You can replace it with any JavaScript based treeview control. CCS doesn't have own treeview control except for the directory component that can display simple treeviews like at: http://examples.codecharge.com/ExamplePack/DirectoryMai...Maintenance.php http://examples.codecharge.com/CCSExamplePack2/Director...rectoryMenu.php http://examples.codecharge.com/ExamplePack/Directory/Directory.php (this one can be done in 1 column like a standard treeview)
If CCS had a JavaScript based component then probably it would utilize any of widely available JavaScript treeviews that can be found on the Internet: http://www.google.com/search?hl=en&q=JavaScript+TreeView
Several of our examples also show how to build multi-level menus dynamically, which could be replaced with a treeview. Therefore I'd say that displaying a treeview itself shouldn't be a problem and is not even quite related to server code that CCS generates, thus not a frequently requested feature.
The only other piece that you need seems to be displaying certain parts of a page based on some parameters (wheteher coming from treeview, a menu, URL, or anywhere else). This can be done with the use of panels or includable pages.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com |
 |
 |
|