I just downloaded the Ajax/MP3 combo yesterday and cannot get the grid to show my data. I viewed the tutorial and read the manual, but still no success. If you look at www.riverofgodchurch.com/SermonMessagesTEST2.asp you will see my Ajax page. I tested the data connection in the wizard and it worked fine and the database connection works fine in another page I made using DW’s Data Objects. I checked and all my files and folders are on the server.
In my page in DW, it shows the grid with the table headings, but if I preview it nothing (including table headings) is there, the same as in the server link above. The other strange thing is if I try to edit the grid by selecting it, and clicking on Advanced, there is nothing in the Content section.
Which obviously are incorrect paths. If I remove the ../ parts the page starts to display but then I get the error
Active Server Pages error 'ASP 0131' Disallowed Parent Path /RiverOfGod/ajax_servers/dmx_grid5.asp, line 6 The Include file '../Connections/messages.asp' cannot contain '..' to indicate the parent directory.
Going to the dmx_grid5.asp page and trying to remove the “../ “ from the path results in an error that the file isn’t found.
So I’m totally stumped. Why is the wizard not getting the path correctly and how can I fix this?
First of all In your DW site definition which is the root folder and are the Styles, ScriptLibrary and ajax_servers folders resided there? Second. to allow usage of ../ you must set that in your IIS Server. to resolve this on IIS 6 without changing the application:
Click Start, click Administrative Tools, and then click Internet Information Services (IIS) Manager.
Double-click your computer name in the left pane, and then double-click Web Sites.
Locate the Web site and directory that houses the ASP application.
Right-click the application site or directory, and then click Properties.
Select Home Directory, and then click Configuration.
Click Options, and then click to select the Enable Parent Paths check box.
Yes, they are in my root directory, as the installation wizard installed them. So I'm still don't know why I'm getting the crazy paths in my page.
My hosting provider is Network Solutions and I do not have this kind of control over the server. However I have many files that use ../ such as when inserting images, and have no problem with that. I'm not sure if there is something special about the Connections folder, but I use relative paths for other folders all the time.
I have other dynamic pages using <!--#include file="Connections/messages.asp" --> without problems, but they have it inserted in line 2 of the code, right after <%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>.
For example, if you look at this dynamic test page made with DW's Insert>Data Objects the first two lines of code are
But if I try modifying the dm_grixx.aps file, so it changes from
<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%> <% Response.Charset = "utf-8" %> <% ' Starts DMXzone Configuration (DO NOT REMOVE THIS) %> <!--#include file="../Connections/messages.asp" -->
<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%> <!--#include file="Connections/messages.asp" --> <% Response.Charset = "utf-8" %> <% ' Starts DMXzone Configuration (DO NOT REMOVE THIS) %>
I get an error that "The include file 'Connections/messages.asp' was not found."
But - good news - I found as I worked on this that I can get to the Ajax grid working is if I manually change the Styles & Script Library path codes in my page and leave the dm_gridx.asp page as it is. Then I get this!
I'd still be interested if you have any ideas on why the paths are not correct, but at least I can get it working!
Now I can move on to cleaning up the look and trying to attach the mp3 behavior to the audio file.
Thank you for your help. I really searched hard for a mp3 player that could utilize dynamic data. I think the combo of the Ajax grid with the mp3 player will give me an elegant solution to my problem.