Results 1 to 2 of 2

Thread: Omni Slide Menu script - Question!

  1. #1
    Join Date
    Dec 2008
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Unhappy Omni Slide Menu script - Question!

    1) Script Title:
    Omni Slide Menu script

    2) Script URL (on DD):
    http://www.dynamicdrive.com/dynamici...lide/index.htm

    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,
    der-lukas
    Last edited by der-lukas; 12-21-2008 at 12:33 PM.

  2. #2
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    What you would wanna do is:
    1. Change menuItems.js to menuItems.php
    2. At the top of menuItems.php add:
    PHP Code:
    <?php
    header
    ('Content-type: text/javascript');
    ?>
    And then in the spot you want your login in the menu put:
    PHP Code:
    <?
    include("login.php");
    ?>
    This should work, if it doesn't post back.
    Also: Male sure login.php doesn't contain double quotes, if it does back-slash them.
    Last edited by Nile; 12-21-2008 at 06:56 PM.
    Jeremy | jfein.net

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •