Ask a Question related to Macromedia Dynamic HTML, Design and Development.

  1. #1

    Default navigation question

    Hello,

    For my website I use some PHP code for navigation. Therefore I use a
    directory structure which contains some navigation files the visitor can
    open. The directory structure looks like this:

    my_domain
    |
    - /navigation
    | - file_1.html
    | - file_2.html
    | - file_3.html
    |
    -/images
    :
    :

    The name of the files the visitor can open (file_1....file_3) I detect from
    reading the files in the directory "navigation". The function I use is this:

    $handle=opendir("./navigation/");
    $counter=0;

    while ($file = readdir($handle)) {

    $the_type = strrchr($file, ".");
    $is_html = eregi("htm",$the_type);
    if ($file != "." and $file != ".." and $is_html) {
    $newsflash[$counter] = $file;
    $counter++;

    }
    }
    closedir($handle);
    rsort($newsflash);
    reset($newsflash);

    With some other code I can echo the different files, this code works on the
    same server. Now I want to read the navigation files from a different server
    (my_domain2), then I get an error and the name of the files are not shown.
    When I try it with Apache on my local computer an error is shown on the
    first line
    $handle=opendir("http://domain2/navigation/");

    Is there an other way of getting the filenames from a different server? The
    directory structure at my_domain is equal to my_domain2. Apparently the
    function opendir is not correct, can someone help me?

    Thanks in advance,

    André
    Andre Guest

  2. Similar Questions and Discussions

    1. CSS IE problem and navigation bar question
      Hi I have 2 questions: Is there a way to make all elements of an horizontal navigation bar the same size no matter the size of the word? i...
    2. Web Navigation Bar and URL Question
      New to web programming. I have some very basic questions regarding menu bars. What's the best way to implement menu bar navigation? I looked at...
    3. Question re Recordset Navigation
      Does anyone know whether there is a Recordset Navigation extention that allows you to display all of the pages or records at once with a "view all...
    4. [PHP] navigation question
      On Mon, 15 Sep 2003 08:41:31 -0500, Andre created an award-winning crop circle <20030915134110.25572.qmail@pb1.pair.com>, which, when translated...
    5. Navigation Bar Question
      Hello The site isn't posted yet but here is the javascript: <script language="JavaScript" type="text/JavaScript"> <!-- function...
  3. #2

    Default Navigation Question

    I have a site with frames and can successfully navigate between them. However what I would like to do is have one page on the site that opens without frames but at the same time does not open a new window. Is there anyway to do this successfully?


    Badlands webforumsuser@macromedia.com Guest

  4. #3

    Default Re: Navigation Question

    you want to open a whole page over the rest?

    use 'top' as a target in your anchor or jscript function or getURL function in Flash



    morksinaanab webforumsuser@macromedia.com Guest

  5. #4

    Default Re: Navigation Question

    what I want to do is have the page open with in the same site only without the navigation frame at the top. what I want to avoid is opening a new window.



    Badlands webforumsuser@macromedia.com Guest

  6. #5

    Default Re: Navigation Question

    'top' should work.

    how did you define your frameset? maybe you can show some source?



    morksinaanab webforumsuser@macromedia.com Guest

  7. #6

    Default Re: Navigation Question

    My frameset is a standard top and bottom frame as defined by Dreamweaver MX, my navbar is Flash MX.


    Badlands webforumsuser@macromedia.com Guest

  8. #7

    Default Re: Navigation Question

    maybe you can show the code which loads the page you want to get in your whole browser window...



    morksinaanab webforumsuser@macromedia.com Guest

  9. #8

    Default Re: Navigation Question

    if you are using getURL() :


    Usage
    getURL(url , window)

    Parameters
    url The URL from which to obtain the document.

    window An optional parameter specifying the window or HTML frame that the document should load into. You can enter the name of a specific window or choose from the following reserved target names:

    _self specifies the current frame in the current window.
    _blank specifies a new window.
    _parent specifies the parent of the current frame.
    _top specifies the top-level frame in the current window.



    morksinaanab webforumsuser@macromedia.com Guest

  10. #9

    Default Re: Navigation Question


    Here is my framset code. If I try a std html tag such as _self for the link it opens a new browser window which is what I am trying to avoid.


    <frameset rows="64,*" cols="*" framespacing="0" frameborder="NO" border="0">
    <frame src="navbar.htm" name="topFrame" scrolling="NO" noresize >
    <frame src="bottom.htm" name="mainFrame">
    </frameset>



    Badlands webforumsuser@macromedia.com Guest

  11. #10

    Default Re: Navigation Question

    try to use _top instead of _self


    morksinaanab webforumsuser@macromedia.com Guest

  12. #11

    Default Navigation Question

    Here is my question, it is a simple answer I think. I just have a brain freeze.
    So I am developing a site and I am on this page.

    [url]http://austria.stamats.com/admissions/majors/youthmin/default.asp[/url]

    You see on the left nav you can click on Student Profile which takes you to
    here
    [url]http://austria.stamats.com/admissions/majors/youthmin/student/default.asp[/url]

    THen try to click in the student profile link from the student profile page,
    it takes you to

    [url]http://austria.stamats.com/admissions/majors/youthmin/student/student/default.as[/url]
    p

    Notice the second /students. The page is not there. I can't think of how to
    fix this. I want have it page relative b/c I have these same left nav links on
    pages for 30 diff majors in a css. Any ideas?


    Matt - Stamats Guest

  13. #12

    Default Re: Navigation Question

    Make your links root relative instead of document relative. In other words,
    change this -

    <a href="student/default.asp">

    to this -

    <a href="/admissions/majors/youthmin/student/default.asp">

    --
    Murray --- ICQ 71997575
    Team Macromedia Volunteer for Dreamweaver
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    [url]http://www.dreamweavermx-templates.com[/url] - Template Triage!
    [url]http://www.projectseven.com/go[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.dwfaq.com[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.macromedia.com/support/search/[/url] - Macromedia (MM) Technotes
    ==================

    "Matt - Stamats" <webforumsuser@macromedia.com> wrote in message
    news:d8pi2a$qmf$1@forums.macromedia.com...
    > Here is my question, it is a simple answer I think. I just have a brain
    > freeze.
    > So I am developing a site and I am on this page.
    >
    > [url]http://austria.stamats.com/admissions/majors/youthmin/default.asp[/url]
    >
    > You see on the left nav you can click on Student Profile which takes you
    > to
    > here
    > [url]http://austria.stamats.com/admissions/majors/youthmin/student/default.asp[/url]
    >
    > THen try to click in the student profile link from the student profile
    > page,
    > it takes you to
    >
    > [url]http://austria.stamats.com/admissions/majors/youthmin/student/student/default.as[/url]
    > p
    >
    > Notice the second /students. The page is not there. I can't think of how
    > to
    > fix this. I want have it page relative b/c I have these same left nav
    > links on
    > pages for 30 diff majors in a css. Any ideas?
    >
    >

    Murray *TMM* Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139