Advertisement

04.13.2008 at 10:15AM PDT, ID: 23318702
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

7.4

How to convert a php-style array request to a vbscript array?

Asked by TheFoot in Active Server Pages (ASP)

Tags:

Hi!

I am using script.aculo.us.sortable (http://wiki.script.aculo.us/scriptaculous/show/Sortables) to create a javascript drag-and-drop list.  When the user changes the order of the list items, the list is serialized and sent to the server.  The server script (asp) then takes this information and updates the new order to the database.

All is working fine except that I cannot convert the array data into a vbscript array so that I can process it.  The array is a multi-dimensional array (the lists are nested).  Below is what I receive at the ASP script:

via GET: mnu_0[0][id]=0&mnu_0[1][id]=38&mnu_0[1][0][id]=0&mnu_0[2][id]=52&mnu_0[2][0][id]=0&mnu_0[3][id]=47&mnu_0[3][0][id]=0&mnu_0[4][id]=50&mnu_0[4][0][id]=0

via POST:
mnu_0[0][id]:0
mnu_0[1][id]:38
mnu_0[1][0][id]:0
mnu_0[2][id]:47
mnu_0[2][0][id]:0
mnu_0[3][id]:52
mnu_0[3][0][id]:0
mnu_0[4][id]:50
mnu_0[4][0][id]:0

How do I convert this information into a multi-dimensional VBS array, or even nested Scripting.Dictionary objects?  I guess I could parse each string, and do some sort of recursive call to create/redim the arrays, but I want to check if there is an easier way to achieve this.  Any sample script would be GREAT! :)

Thanks, TheFoot

PS.  The nesting levels can potentially be infinite.  This is a menu editor in a CMS system.  Users can move menu items from one location to another and amend the order.Start Free Trial
[+][-]04.13.2008 at 10:17AM PDT, ID: 21345416

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.13.2008 at 01:36PM PDT, ID: 21346118

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.13.2008 at 02:14PM PDT, ID: 21346232

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Active Server Pages (ASP)
Tags: asp array php-style
Sign Up Now!
Solution Provided By: TheFoot
Participating Experts: 2
Solution Grade: B
 
 
[+][-]04.14.2008 at 09:57AM PDT, ID: 21351584

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.14.2008 at 10:33AM PDT, ID: 21351906

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.20.2008 at 10:32AM PDT, ID: 21396876

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_EXPERT_20070906