View Full Version : Omni Slide Menu script - Question!

12-21-2008, 12:20 PM
1) Script Title:
Omni Slide Menu script

2) Script URL (on DD):

3) Describe problem:

My problem is that I would like to include the login of my Page into the Omni-Slide-Script (menu 1) but I have no clue how to do it!

The code for including the login is "<? include("login.php"); ?>" and it must be possible to include this code into the "menuItems.js"-File somehow... or not?

best wishes,

12-21-2008, 06:44 PM
What you would wanna do is:
1. Change menuItems.js to menuItems.php
2. At the top of menuItems.php add:

header('Content-type: text/javascript');

And then in the spot you want your login in the menu put:


This should work, if it doesn't post back. :D
Also: Male sure login.php doesn't contain double quotes, if it does back-slash them.