yet another scriptpath problem

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
GroverDill
Beginner
Beginner
Posts: 3
Joined: Thu Sep 11, 2003 9:14 pm

yet another scriptpath problem

Post by GroverDill »

Hi, I'm a bit of a newbie with your menus, and, up to this point, still haven't gotten the menu to appear. I am confused about the path structure that the menus are looking for.

I am looking to use the menus for my personal admin pages at http://www.jesush.com/admin/ (this folder is password protected, so you won't be able to monitor my progress). Just for grins, I uploaded all the menu data files to /www/jesush/admin/menu/ (there were 4 files). Thus, I am trying to use the menu files stored in /www/jesush/admin/menu/ from html files stored at /www/jesush/admin/.

For the last half hour, I have been tinkering with various combinations of scriptpath, the path in the script tags of my html files, and placement of the two <SCRIPT> tags in my html file, and I've ended up with bupkis. It doesn't look like I'm getting any errors, just no menu.

If someone could walk me through this, I'd appreciate it...

Thanks,
Grover Dill
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

Given what you describe...

scriptpath="/admin/menu/";

For more help with your HTML we'll need some kind of access to see your code.
John
GroverDill
Beginner
Beginner
Posts: 3
Joined: Thu Sep 11, 2003 9:14 pm

oh, okay...

Post by GroverDill »

Thanks for you prompt response to this. I really appreciate it.

I set it to /admin/menu/ with no luck.

I went ahead and took off password protection since, let's be honest, I have literally nothing on these pages worth stealing. Again, the file in question is:

http://www.jesush.com/admin/index.php

and the menu files are stored in

http://www.jesush.com/admin/menu/

I should mention again that I really tried to figure this out on own... oh well.

Thanks for your efforts!
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

http://www.jesush.com/admin/menu/menu_data.php can't be found, this is definately the problem.

Quick question though. Where are you getting menu_data.php from? It should be menu_data.js as per the download.

Your the second person today that has used menu_data.php in a sample so I'm now thinking something could be wrong with the downloads.

Regards
Andy

BTW - You have paid support and can use the request help form from the main site for your account.
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

Change menu_data.php in your JS call to menu_data.js :!:

Also, while they should be fine where they are in the <head>, I personally like to see the 2 JS calls as the first items after <body>.

Thanks for the access.
John
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

Andy, in the files I just got earlier it is a .js.
John
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

Yeah, same as what I got too.

Could be getting it from the Milonic home page, which is fine, as long as I know that's where it came from. :?:


- Andy
GroverDill
Beginner
Beginner
Posts: 3
Joined: Thu Sep 11, 2003 9:14 pm

Yippee!

Post by GroverDill »

Thanks for your help! That was the issue!

I got the "menu_data.php" reference directly out of the install.txt that I downloaded from you guys. I was looking for a quick and dirty tutorial type deal to get this up and running, and that's where I found one.

I wasn't aware of the other support option for this. I'll have to check it out if I have other issues. Although, I have to say, this method seems to work pretty well... :-)

Thanks again! I'm so happy, I could quilt a big happy blanket! Or something...
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

From the install text eh?

Was that you John :P
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

It's OK, I got it, twas me :oops:

And to think for a second there I might have questioned Johns editing skills :roll:

:lol: :lol:
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

Remember - you're also the fellow who couldn't spell Milonic (at least once)... :lol:

OTOH, I missed the .php thing. Ratsafrazz...
John
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

LMAO - Where was that?
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

Pretty sure it was one of the URLs in the ReadMe.
John
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

BTW, it's really great having you back in here. You tryin' to catch up to our numbers :?:
John
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

I've just been so busy with the formal stuff it's nice to have a bit of fun and do some of the other for a change.

I was supposed to have seen the new Italian Job movie tonight (got free tickets from Mini and all) but with what happened on Friday couldn't go, been catching up with everything. Like you say matey, I gotta get a life soon :cry:

Oh, Sorry about this GroverDill - We'll be gone soon :D

--- Andy
User avatar
bonewalker
Super Advanced
Super Advanced
Posts: 40
Joined: Tue Aug 19, 2003 10:35 pm

Post by bonewalker »

What if I need that file to be named menu_array.php? As long as that page exists, will I encounter any problems?

I am planning on creating my menu dynamically with PHP and a MySQL database. The data changes frequently, so I need the database connection. My script will write the appropriate aI lines and submenu stuff as it goes.

Anyone else tried this and been successful? or unsuccessful?

Thanks,

Bonewalker
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

bonewalker wrote:What if I need that file to be named menu_array.php? As long as that page exists, will I encounter any problems?
No problems at all. One of mine is called xp_data.cfm, for instance.
bonewalker wrote:Anyone else tried this and been successful? or unsuccessful?
Do a search on it here. Many folks are using it.
John
User avatar
jesson
Beginner
Beginner
Posts: 8
Joined: Mon Sep 15, 2003 8:40 pm
Location: Montreal & Saskatoon, Canada
Contact:

PHP file names

Post by jesson »

In the download I made earlier today (Sept 15, RC10) the install.txt file includes instructions to save the data file as a .js. It provides instructions for calling the file that still list it as .php.

These instructions do not include the scriptpath instruction, so I presume that they have been revised quite recently.

Would it be possible to get a complete copy of the installation instructions posted here in the Forum? As revisions are made, the new instructions could be posted in their place.

Just a thought. Thanks for all your hard work.

Nick :)
User avatar
Hergio
Milonic God
Milonic God
Posts: 1123
Joined: Wed Jun 12, 2002 7:46 pm
Location: Rochester, NY

Post by Hergio »

The .php has been changed to .js, it was a slight error.
Posting the docs on the forum may not be the best idea, that would mean we'd be maintaining them in more than one place. Its hard enough maintaining one, hehe.
Bare with us for the moment, we are still in the RC stages, so there are still alot of changes going on...documenting them all would get crazy. Once the final release is out, then there will be changelogs and a central place to see anything related to different versions of the new menu. But right now, development is still the top priority. Then will come chronological documentation.
Dave Hergert
Software Engineer
"Helping to make the menu better, one :?: at a time."
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Re: PHP file names

Post by John »

jesson wrote:In the download I made earlier today (Sept 15, RC10) the install.txt file includes instructions to save the data file as a .js. It provides instructions for calling the file that still list it as .php.
As Dave mentioned, that slip has already been fixed. A few messages up you'll see one from me indicating you can actually use any suffix you need depending on how you're putting your menu together.
jesson wrote:These instructions do not include the scriptpath instruction, so I presume that they have been revised quite recently.
They were revised yesterday. The scriptpath parameter is no longer used, now replaced by the changes in the JS calls.
jesson wrote:Would it be possible to get a complete copy of the installation instructions posted here in the Forum? As revisions are made, the new instructions could be posted in their place.
Dave got that one, and I agree. On the main site Andy kept detailed track of everything done to v3, and he will do so again as soon as v5 is out of RC.
John
Post Reply