Ask a Question related to Macromedia Dynamic HTML, Design and Development.
-
Andre #1
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
-
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... -
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... -
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... -
[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... -
Navigation Bar Question
Hello The site isn't posted yet but here is the javascript: <script language="JavaScript" type="text/JavaScript"> <!-- function... -
Badlands webforumsuser@macromedia.com #2
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
-
morksinaanab webforumsuser@macromedia.com #3
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
-
Badlands webforumsuser@macromedia.com #4
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
-
morksinaanab webforumsuser@macromedia.com #5
Re: Navigation Question
'top' should work.
how did you define your frameset? maybe you can show some source?
morksinaanab webforumsuser@macromedia.com Guest
-
Badlands webforumsuser@macromedia.com #6
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
-
morksinaanab webforumsuser@macromedia.com #7
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
-
morksinaanab webforumsuser@macromedia.com #8
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
-
Badlands webforumsuser@macromedia.com #9
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
-
morksinaanab webforumsuser@macromedia.com #10
Re: Navigation Question
try to use _top instead of _self
morksinaanab webforumsuser@macromedia.com Guest
-
Matt - Stamats #11
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
-
Murray *TMM* #12
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



Reply With Quote

