menu Creation

Asked By Thiyagu S
06-Sep-10 02:59 AM
Earn up to 0 extra points for answering this tough question.


 Hi friends

     how to create xml file for dynamic menu creation using sql... I dont know how to do... Pls help with sample code      (xml file) ...

         Help me friends

  re: menu Creation

Reena Jain replied to Thiyagu S
06-Sep-10 03:22 AM
hi, thi


here you are

 
 

Introduction
Virtually every Flash web site ever created has a menu of some sort in it. Most are quite simple, possibly just a row of buttons. Others, however, are more complex, offering not just buttons but also incorporating submenus via drop-down as well. That's what this tutorial will focus on, a drop-down menu. But not any drop-down menu. No. The menu created here will be driven by one (or more) external XML files which, when read into Flash, will determine the makeup and behavior of that menu. Something like the following.

[ menu in Flash defined with XML ]

Deciding on XML
XML (Extensible Markup Language) is a prime candidate for defining drop down menus of this sort because the nature of the organization of XML is defined in the same way as the drop-down menu itself. Both are organized in a hierarchical manner where you have a base collection of items which then can contain further collections of more items or more collections. Consider the following XML snippet. Can you imagine what this might like as a real functioning menu?

<?xml version="1.0"?>
<mainmenu>
<home/>
<portfolio/>
<contact/>
<friends>
<joe/>
<karen/>
<bob/>
</friends>
</mainmenu>

The mainmenu here represents, obviously, the main menu portion of this menu design. Under that XML are the primary menu options. These options include home, portfolio, contact and friends. The friends element (or node) here, however, as you can see, contains more nodes of its own. It has contained within it another menu. This makes friends a submenu of the main menu.

 

  re: menu Creation

Thiyagu S replied to Reena Jain
06-Sep-10 03:31 AM

 Hi friend

Reena Jain

   

          Thanks for ur explanation ... i understood ur description... Its very neat... But i want to Fetch all main and sub menu from the database .. so only i confused !!! how we fetch via xml ( diff. the main and sub menu)... I think u get my question

                Thanks My friend

  re: menu Creation

Anand Malli replied to Thiyagu S
06-Sep-10 04:46 AM
Hi

Your menu control is hierarchical structure right,so it depends on the kind of data you are having in your table,how they are related

tree is parent child relationship so is there anything of that short in your application where you are having some records which are related to some parent records..??

by this information the treeview can be created,just let me know with the details

thxs
  re: menu Creation
Thiyagu S replied to Anand Malli
06-Sep-10 05:06 AM

Hi

Daivagna Nanavati


         Thanks for ur reply.... i have menu in this manner
 
          Home              )
         
          About us            )  This are main menu... This also bind according to admin (that is Dynamic)
                            This also Fetch from DataBase
          contact us          )


         While user click i want to bind sub menu from the SQL DataBase.....

        My Questions :  How to create this type of menu dynamically from database...


                       Thanks Friend

Create New Account