I'm trying to implement the protreemenu with an access database and have encountered some problems:
1. Using ASP/VBScript the menu works but I can't access to a database that's in a different directory like ../database/db
We don't use VBScipst within our download packages, only JS. I don't understand the issue.
Isn't the item.asp written in VBScript?
I found it inside the add-ons/asp_vb_database folder. It's the include file for the build_hierarchy_var and build_hierarchy functions (variables are declared as Dim not var, sounds VB to me ;) ).
Are there other examples with asp-DB-solutions?
I'm working with dreamweaver and ASP/JS model.
I mean we don't use VBScript in cientside solutions. For asp DB serverside item-building addon we use ASP-VB scripting. How do you propose to use JS at serverside?
What about the "../" problem calling a database from subdirecory? Does that work?
Is it possible to add an accesslevel functionality (based on database entries) to the menu?
Thx for your help :)
Just an short overview:
I created a recordset with the menu data
I run the included items.asp with <SCRIPT RUNAT=SERVER LANGUAGE=VBSCRIPT>
I call the database directly with <%Call build_hierarchy ...
I'get the following compA?lation error:
Microsoft JScript (0x800A03EC)
Call build_hierarchy("dataconnect", 0 , "TREE_ITEMS", "WEB_NAV_SIDEBAR", "SBLID", "SBTID", "title", "home_url")
If I run the page with ASP/VB as a server model, the menu works fine.
You could find the proper call of build_hierarchy_var within the 'add-ons/asp_vb_database/demo.asp' from your download package. There's also installation and setupping instructions within every add-on's folder (add-ons/asp_vb_database/index.html)