|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
I need to poulate the menu elements and the submenu elements from the database.someone has pointed me to this site which contains doing the same with PHP and mysql.can i use asp to do the same.right now my menu elements and submenu elements are in a javascript array which contains hardcoded links,i want these links to be populated from database.the javascript file which contains the javascript array is an include file in the asp page.Can someone throw some light on this,i need this very urgently.
ANy help would be greatly appreciated Thanks prs |
|
#2
|
|||
|
|||
|
Yeah, I think it was me who pointed you here. I trust you read the article. I don't know much about .asp but I imagine it has a statement similar to PHP's "echo" or "print" that would let write "html" to send to the browers. You'd probably need to either not use an "include" for your JS, or at least not use an "include" for the array values that are presently hard coded. Then you would just have .asp's print or echo command create your array for you, as in: echo "JS_array[0]=$some_database_value."
|
![]() |
| Viewing: Dev Shed Forums > Web Design > HTML Programming > Database and menus |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|