PDA

View Full Version : Jump to page from menu?


bobbie
02-07-2006, 07:22 AM
Can you go to a page from a link in the menu?
Can't seem to find anything on it.
Thanks for the help

fossil
02-07-2006, 08:21 AM
do you mean like this


On Menu:

if e_ID == 102 then

Page.Jump("Page2")

end

eric_darling
02-07-2006, 08:22 AM
There seems to be a lot of confusion suddenly over the use of the menu bar in AMS 6. The excellent help file has a very good illustrated version of how to apply actions to the menu bar. Once you grasp how it works, you'll see how easy it is to customize what happens when a user clicks a given option on your menu bar:
http://www.indigorose.com/webhelp/ams60/Program_Reference/Projects/Menu_Bar/Sample_Menu.htm

bobbie
02-07-2006, 09:11 AM
do you mean like this


On Menu:

if e_ID == 102 then

Page.Jump("Page2")

end
Thank you for the help , I had that but didn't have the numbering right on it .
Got it worked out.
Thanks.

bobbie
02-07-2006, 10:25 AM
Here is a screenshot on how it is looking so far.
Thanks for all the help and my dumb questions.. lol

fossil
02-07-2006, 03:02 PM
Very nice :yes

bobbie
02-07-2006, 03:11 PM
Thank you fossil, didn't think anyone was looking.

Dermot
02-07-2006, 03:14 PM
Very nice bobbie :yes

bobbie
02-07-2006, 03:21 PM
Well thank you too. :)

Corey
02-07-2006, 03:32 PM
Always looking. Very nice bobbie. I give it ten golden thumbs.

:yes :yes :yes :yes :yes :yes :yes :yes :yes :yes

bobbie
02-07-2006, 03:45 PM
Thank you Corey, I find the menu really helpful now. I used part of it to have the menu links go to some page that I have flash games on .
You can find some real nice games at http://www.flashkit.com/index.shtml for free to use in anything that you like.
Some have restriction on commercial stuff.but most can be use for most anything.

Corey
02-07-2006, 03:59 PM
Flashkit rules. :yes

TJ_Tigger
02-07-2006, 04:27 PM
Bobbie, that looks very nice. One thing you might want to consider is to have AMS add the links to an html file automatically without having the customer edit the file directly.

For instance you can have a file that looks like this:


<html>
<head>
<title>Links</title>
</head>

<body>
yada yada yada <br>
<br>
#LINKS#

</body>
</html>


Then store your links in another text file or sqlite database or ini file. Then when you go to load the file you could take each link build a string and then repolace the #LINKS# string with the string of links.

Tigg

Corey
02-07-2006, 04:36 PM
Yep, Tigg's idea is a good one. I've used that exact sort of system many times and it always works great. :yes

bobbie
02-07-2006, 08:05 PM
Thanks guys for the help. I will see if I can figure it out and maybe do that .
Not sure if I can . lol

Corey
02-07-2006, 08:12 PM
Hi. I think there's a working example around here somewhere. Try this one:
http://indigorose.com/forums/attachment.php?attachmentid=2928&d=1137407351

bobbie
02-07-2006, 08:33 PM
So you think maybe have a button for the adults to click that is password protect that opens a input box that they could add a link to the file that would show on the main page?
I like that one how it work..

Corey
02-07-2006, 08:56 PM
Sure, that could work. I'm no expert on how to implement passwords but the general idea is that you encrypt it when they set it, and only store the encrypted password. Then whenever you need to authenticate the user, you encrypt their input and compare that to the stored password. That way you never have the unencrypted password stored anywhere on the system. :yes

bobbie
02-07-2006, 10:17 PM
Is this a bug or me doing something wrong?
I have 9 pages that use the menu to jump to. so if you start from the main page and say jump to page 6 it works fine.
But if you try to jump to anyother page from that page it won't move to any page.
If I go back to the main page it will work again to one page and you have to go back to the main page again. I'm using a button on each page that takes to back to the main .
And the code
if e_ID == 101 then
Application.Exit();
elseif e_ID == 201 then
File.OpenURL("http://http://gbcgames.proboards79.com/index.cgi?", SW_SHOWNORMAL);
elseif e_ID == 301 then
Page.Jump("Page2");
elseif e_ID == 302 then
Page.Jump("Page3");
elseif e_ID == 303 then
Page.Jump("Page4");
elseif e_ID == 304 then
Page.Jump("Page5");
elseif e_ID == 305 then
Page.Jump("Page6");
elseif e_ID == 306 then
Page.Jump("Page7");
elseif e_ID == 307 then
Page.Jump("Page8");
elseif e_ID == 308 then
Page.Jump("Page9");
elseif e_ID == 309 then
Page.Jump("Page10");
end

bobbie
02-08-2006, 10:27 AM
Is that a bug? or me doing something wrong.

TJ_Tigger
02-08-2006, 11:07 AM
Where in the project did you paste the above code. There is an On Menu event for each page and if you pasted the above code only on the first page it will only work from that page. There is an On Menu event in the Project-Actions dialog too. Those will be applied for the entire project.

tigg

bobbie
02-08-2006, 11:12 AM
Oh god I didn't know that. I'm sorry.. I will add it to each page.

Thanks I added it to the Project-Actions dialog and works now .

TJ_Tigger
02-08-2006, 11:15 AM
Oh god I didn't know that. I'm sorry.. I will add it to each page.

Or just move it to the Project -> Actions dialog On Menu event and it will be available globally within your project.

bobbie
02-08-2006, 11:22 AM
I edited my last post to show I did and now it works fine . thank you for all the help .

bobbie
02-08-2006, 07:06 PM
If anyone would care to look and try it I have the website live now for the program . little as it may. lol
I call it kids Playground webbrowser .
The website is here. Feel free to download it as it is freeware and virus free.
I hope to add more to it as I get better with this coding.
Do let me know what you think. you will be the first to see the site. :p

http://www.candles-weblog.us/kidsplayground

Corey
02-08-2006, 07:38 PM
Hey, that's *awesome* bobbie. Give yourself an extra pat on the back from me, I like the way you operate. FWIW Download.com offers a way for you to upload stuff for free if you ever want to get more downloads. Anyhow, fantastic work!

:yes :yes :yes :yes :yes :yes :yes :yes :yes :yes

bobbie
02-08-2006, 07:43 PM
Thank you for the kind words. I will go head over to download dot com and see what I can do .

Corey
02-08-2006, 08:00 PM
It takes them few weeks from the time you sign up and upload to get your software online using the free submission system, but it really helps get your stuff out there... :)

bobbie
02-08-2006, 08:18 PM
Yep just went through the whole thing . looks like around the 23 it will be online there .
Thanks again for pointing that out to me . Feel free to use my browser for anything you guys would like to do or on your website. or me if needed . :yes

Corey
02-08-2006, 08:22 PM
Sounds good. :yes