CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> General/Other

 Dynamic dropdown navigation

Print topic Send  topic

Author Message
NickM

Posts: 44
Posted: 04/18/2004, 6:09 AM

I was just wondering if there are any examples of implementing vertical/horizontal dropdown navigation using CCS/php/javascript/MySQL.
This type of navigation example would be ideal for a beginner like me to learn how to draw on all of CCS's potential while creating something of immediate use.
View profile  Send private message
peterr


Posts: 5971
Posted: 04/18/2004, 2:00 PM

Possibly this would help:
http://www.google.com/search?q=javascript+menus
http://developer.netscape.com/viewsource/smith_menu2/menu.html

Even we took some of such menus from the Internet to implement our own Website and various other projects. It often should be sufficient to just copy the JavaScript code from those Websites into HTML within CCS (if permitted by copyright/licensing posted on those sites), and point each of the menu items into corresponding PHP pages that you like to link to.
For example in Example 5 at http://developer.netscape.com/viewsource/smith_menu/smith_menu.html , I would try changing:
myMenu5.addMenuItem("DevEdge Online", "location='http://developer.netscape.com'");
to
myMenu5.addMenuItem("My First Page", "location=NewPage1.php");
(assuming that your page in CCS is named NewPage1)

No PHP code should be needed unless you need to generate such menus dynamically.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message
NickM

Posts: 44
Posted: 04/18/2004, 4:41 PM

Quote :
No PHP code should be needed unless you need to generate such menus dynamically.
Actually I think "dynamically" is probably the most efficient way of maintaining a navigation menu and that CCS would be the ideal program to do this with (plus javascript for the dropdown effect).
I suppose what I am looking for is to use CCS to create something similar to NavGrid but where the "Names" are used for navigation and where the table it draws the data from has categories (main menu) and subcategories (dropdown list) and sub-subcategories (another dropdown off the dropdown list).
Perhaps this is not what CCS is for?
View profile  Send private message
peterr


Posts: 5971
Posted: 04/18/2004, 5:26 PM

Quote :
Perhaps this is not what CCS is for?
Yes, I believe it isn't. A tool for visual menu design would require long time to create and would probably not accomplish everything that users may wish for, or what other Menus do. I also think that there are such products already, while there are definitely hundreds of JavaScript menu examples on the net. We couldn't even deal with the sheer volume of possible menus and JavaScript compatibility issues. Since others already developed such solutions then why not use them.
If you take a good menu from elsewhere then making it dynamic in CCS could potentially take only 30 minutes initially, maybe with additional hours for testing and adjustments.
All you would need to do is write a PHP function that would read database records and output simple JavaScript as shown in Example 5 at http://developer.netscape.com/viewsource/smith_menu/smith_menu.html

Sample output for one database record:
myMenu5.addMenuItem("Page 1", "location=page1.php");
If you take our example of reading database values from http://docs.codecharge.com/studio/html/ProgrammingTechn...leDBValues.html it should be quite easy to read the database values and output corresponding parameters for your JavaScript menu.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message
Langston Campbell
Posted: 05/05/2004, 6:45 AM

I am trying to find the exact script referred in this posting but the links are no longer valid for particular script. Could you supply some additional keywords I could use to find that script if I do a google search?
peterr


Posts: 5971
Posted: 05/05/2004, 1:35 PM

I just verified all above links and they seem OK.
If you're asking about the "Example 5" I mentioned above I still see it at http://developer.netscape.com/viewsource/smith_menu/smith_menu.html
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright 2003-2004 by UltraApps.com  and YesSoftware, Inc.