PDA

View Full Version : Menu's...why does this happen..



tnx
10-15-2009, 08:13 AM
Hi guys. Hows it going folks...:yes

Done a few projects now and i feel myslef learning all the time. AMS just keeps getting better,for me any how.
Butttttttt..

Menu's. mmmmmmmm

Two things about them.

When you make a "tblMenu" no "submenu's" the first selection works a treat.
lets say
tblMenu[1].ID = 1 does a page jump.Works a treat

you add a SubMenu
lets say
tblMenu[1].SubMenu[1].ID = 2 This also does a page jump,but to a different page.

All of a sudden
tblMenu{1].ID = 1 does not page jump. Click on it and the submenu appears.
Yes i know thats what we want.
Buttttt

Is there a way to make the first menu still page jump as well as the submenu page jump.
Or is that not possible.

While i'm here.

Writing the menu script.
there is "On Preload" and "On Show"

does the menu script have to be on one or the other or indeed on both.
If just on one there seems to be a very very slight delay when the page is shown. Write the script to both the delay is gone.
but that means a lot of script writing, copy/pasting one into the other.
How does anybody else do it ?
On Preload ?
On Show ?
on both ?

:huh

IdeasVacuum
10-15-2009, 07:49 PM
I don't know if there is a way to do that, but maybe it would startle your Users anyway......

Concerning your second question, should never be both (never be duplicated). I have found that sometimes code does not get executed on preload, but does on show. So try on preload first, if it fails then on show is the next best (might be that you have several actions and only some need to be in the on show event, the rest in the on preload event).

tnx
10-16-2009, 01:50 AM
I don't know if there is a way to do that, but maybe it would startle your Users anyway......

Concerning your second question, should never be both (never be duplicated). I have found that sometimes code does not get executed on preload, but does on show. So try on preload first, if it fails then on show is the next best (might be that you have several actions and only some need to be in the on show event, the rest in the on preload event).

Thanks or the info...:yes