Hexagora Forum
Hexagora Forum
Home | Profile | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Dynamic HTML Editor
 Dynamic HTML Editor
 Load GfxMenu using JavaScript
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

RCG
Novice

USA
10 Posts

Posted - 02 Jul 2008 :  20:08:04  Show Profile  Visit RCG's Homepage  Reply with Quote
Is if possible to display / load a GfxMenu using a Javascript? I have several levels of security built into our site and would like to display a different menu base of access level. The following is a rough example of my intentions:

Example:
<script type="text/javascript">
if ('%%seclvl%%' == '9')
{
show,GfxMenu9
}
else if ('%%seclvl%%' == '8')
{
Show,Gfxmenu8
}
else if ('%%seclvl%%' == '7')
{
Show,GfxMenu7
}
else
{
Show,GfxMenu1
}
</script>

s.dav
Site Admin

Italy
3364 Posts

Posted - 03 Jul 2008 :  09:11:07  Show Profile  Visit s.dav's Homepage  Reply with Quote
You can act on the "Custom Code" property and insert PHP or ASP code inside it.
Using Javascript it's not possible.

Regards, Davide
Go to Top of Page

RCG
Novice

USA
10 Posts

Posted - 03 Jul 2008 :  19:36:06  Show Profile  Visit RCG's Homepage  Reply with Quote
Well that leaves me in the black hole, appreciate the reply

Since my knowledge of PHP is limited, do you have an example I could follow or a good online reference to accomplish my task[2 ?:-|]
Go to Top of Page

s.dav
Site Admin

Italy
3364 Posts

Posted - 04 Jul 2008 :  09:59:37  Show Profile  Visit s.dav's Homepage  Reply with Quote
I suggest you to search on Google for PHP manuals, I'm not a PHP expert...

Regards, Davide
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Hexagora Forum © s.dav Go To Top Of Page
Snitz Forums 2000