flash navbar linking riddle, please help with this one guys.

Discussion in 'HTML & Website Design' started by armansrsa, Aug 8, 2008.

  1. #1
    I am working on a exisitng site and have to add a new page. The site has a navbar linking to 7 or so different pages. There is a main folder with the main "index.html" file (home page) and components (images etc). Inside the main folder there are subfolders, each containing there individual html file for the corresponding page and ofcourse components. the one subfolder is for the chat page and the problem i am having is that the nav bar is located in that subfolder. When i link in flash to the other pages from the home page using the getURL, it works fine but if i want to go to say, the "faq" page, i cant link out from there to any other pages and heres why. If i am in the FAQ page and click "contact us" for example. the browser cant find the file because it is looking for a file within that subfolder (ie the subfolder of the faq page in this case) and not in another subfolder where the correct html page is located. this is the problem and i dont know how to solve it.

    any help would be greatly appreciated.
     
    armansrsa, Aug 8, 2008 IP
  2. dr.gonzo

    dr.gonzo Peon

    Messages:
    32
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Well I didn't quite get you completely so correct me if Im wrong...
    I suppose you are talking about the

    getURL(/blabla/blabla) command

    So if you are having trouble navigating out of a folder then try using

    getURL(../blabla/blabla)

    "../" navigates out of the directory you are in and puts you into the directory that is above.

    Otherwise you can always link to the absolute path rather then the relative one.
    Hope this helps you!
     
    dr.gonzo, Aug 8, 2008 IP
  3. armansrsa

    armansrsa Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    thanks for the reply, i know you can navigate outward by using ../ but that would only work if i was navigating from the subfolders into other subfolders. so if i was in the products page, which is in a subfolder in the root folder, i could navigate out of that folder and back down into another, but if i am in the home page and i want to go to the same page, it wont work, because i need to go down into the subfolder, not out and then back into...

    do you understand?

    the home page is in the root folder, all the other pages are in the subfolders
     
    armansrsa, Aug 10, 2008 IP
  4. armansrsa

    armansrsa Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    hmmm yeah i think it would be better to link to the absolute url, but would that mean i would have to use the live URL which already exsists? since the site is already online live and i am only adding a new page, can i use the domain/pagename/index.html link thats live on the web now to link the new navbar to.

    thanks again!
    A
     
    armansrsa, Aug 10, 2008 IP