Google Answers Logo
View Question
 
Q: Ipod ( Answered 5 out of 5 stars,   0 Comments )
Question  
Subject: Ipod
Category: Computers > Programming
Asked by: bailey111-ga
List Price: $20.00
Posted: 05 Feb 2005 10:02 PST
Expires: 07 Mar 2005 10:02 PST
Question ID: 469484
This is an easy one.  I know where to even find the answer but I need
some explanation regarding "how to."
Linking in notes in Ipod.  I am starting an extensive project and for
the life of me, i can't figure out how to link within folders, and
subsets.  The difference between absolute and relative.  I am looking
for help on how to do this.  podsites.com has the answers as does the
mac guide but i still can't link to folders as such.  I need a
straightforward examples on how to accomplish this.
Answer  
Subject: Re: Ipod
Answered By: wildeeo-ga on 07 Feb 2005 12:01 PST
Rated:5 out of 5 stars
 
Hi, bailey111. Thanks for your question.

In brief, relative links are links to files and where they are
relative to the current one, whereas absolute links are links that
remain the same no matter what file they are in or where they are.

To make it clearer, here are a few examples.

Notes
  Some Directory
    A file.txt
    Another File.txt
  A Different Directory
    Something.txt
    A Subdirectory
      Yet Another File.txt
      
In this example, the 'Notes' directory is the Notes directory on the
iPod, '.txt' files are the note files themselves, and indentation
means 'is inside of' - for example, 'Yet Another File.txt' is inside
'A Subdirectory', which is inside of 'A Different Directory', which is
in the main 'Notes' directory.


If I wanted to link 'A file.txt' to 'Another file.txt', I could do it
with the following code inside 'A file.txt':

<a href="Another file.txt">a link to another file</a>

I can do this since 'A file.txt' and 'Another file.txt' are in the
same directory. Because the link's reference does not start with
'file:///', it is a relative link.


To link 'Something.txt' to 'Yet Another File.txt', I could put the
following code in Something.txt:

<a href="A Subdirectory/Yet Another File.txt">yet another file</a>

This is a relative link pointing to a file inside another directory.
In this case, the '/' in the reference means 'inside this directory',
so this reference means 'Yet Another File.txt inside A Subdirectory'.


If I wanted to link 'Yet Another File.txt' to 'Something.txt', I could
do it as follows:

<a href="../Something.txt">a link to something</a>

This is another relative link, meaning 'link to the file called
Something.txt in the previous directory'. The '../' in the link's
reference means 'the parent directory', so the link means
'Something.txt in the parent directory'.


Linking 'Yet Another File.txt' to 'A file.txt' is a bit more complex,
since they are in very different directories. One way of doing it with
relative links would be:

<a href="../../Some Directory/A file.txt">a file</a>

...meaning 'A file in "Some Directory" in the parent directory's parent directory'.

Another - possibly easier - way of doing this would be to use an
absolute link. These links remain the same no matter where the file
containing the link is. In this example, the link would be:

<a href="file:///Some Directory/A file.txt">a file</a>

You can tell it is an absolute link as it starts with 'file:///'. This
example means '"A file" inside "Some Directory" inside the main
"Notes" directory'.

An absolute link to 'Yet Another File.txt' would be:

<a href="file:///A Different Directory/A Subdirectory/A file.txt">bla</a>

This would remain the same no matter where the file is located.


I hope this makes things clearer for you. If you have any questions,
please feel free to request a clarification.

--wildeeo

Request for Answer Clarification by bailey111-ga on 07 Feb 2005 16:28 PST
Thank you very much.  It certainly helps but i have a couple of quick
questions.  Can I link t a folder as I do notes.  Can I link to (as
per your example) Some Directory from "Yet another File.txt"
Second question is can i have just the name and not ".txt" in the
code? and last is there any number of directories or subdirectories i
can link too?
Thanks.  Great answer!

Clarification of Answer by wildeeo-ga on 07 Feb 2005 17:06 PST
Hi,

To answer your questions:

1. Yes, you can link to a directory. To link to 'Some Directory' from
'Yet Another File.txt', you could use either of the following:

<a href="../../Some Directory">some directory</a> or
<a href="file:///Some Directory">some directory</a>

(the first one being a relative link, the second absolute). This
provides a list of all notes inside that directory.

2. Yep, you can have just the name. I used the .txt extension simply
to make it clearer which were notes and which were directories.

3. I'm not completely sure what you meant with this question... If you
were asking if there are any limits to the number of directories you
can link to from one note, then no, as long as it fits inside the note
size limit. If you were asking if there is a limit on the total number
of directories you can put on the iPod, again no (or at least, not one
you are likely to hit). If it was neither of these, could you please
clarify it.

I hope that helps.

Clarification of Answer by wildeeo-ga on 07 Feb 2005 17:11 PST
Just to clarify: I was a bit unclear with regards to your second
question. If you don't want the '.txt' in the code, you would need to
rename the file to remove the '.txt' at the end. The name in the code
much match the name of the file on the iPod, but the file doesn't need
a '.txt' at the end.
bailey111-ga rated this answer:5 out of 5 stars and gave an additional tip of: $5.00

Comments  
There are no comments at this time.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy