Back To Start Of Archive
Taken From The Forum: Archived Topics for the old Version 3.0 JavaScript Menu
Forum Topic: Click to view post
Last Updated: Wednesday July 18 2012 - 06:07:16
Databse connectivity?
Poster: Anonymous
Dated: Wednesday December 11 2002 - 20:34:57 GMT
Has anyone got the menu builder working with a database backend?
Database connectivity
Poster: Anonymous
Dated: Wednesday February 26 2003 - 14:39:47 GMT
I Have Managed it. I am on a ASP server running both MS SQL and My SQL, I have got it running with both. You need to take the menu_array.js and place it within an ASP page and place you dynamic ASP references in the correct places.
eg
<!--Create your recordset with the correct query to bring in you menu items-->
<script language="javascript">
~
~
~
~
~
<!--Place the next block of code in a repeat region -->
,"<%=rs1("Name")%>", "<%= rs("firstBlock") %> ","<%= rs("secondBlock") %>","<%= rs("StatusBarText") %>.",<%= rs("seperatorBar") %>
<!-- etc. etc. etc. -->
My system runs off 2 tables, the first stores all the main headers and the second has the dropdown details with a uniques reference number that will call the correct drop downs.
Have fun
PCRTRG
PHP/MySQL database connectivity
Poster: Anonymous
Dated: Tuesday April 15 2003 - 20:01:26 BST
Currently users submit their username/passwords through an HTML form:
<form action="../scripts/login.php" method="post">
<input type="Text" name="frmuser" size="15">
and are thereafter validated after clicking the submit button.
I am wondering if the menu array.js will accept HTML tags such as listed above.
Let me know if I did a poor job of describing my dilemma.
Lee