Skip navigation

Link to javadoc doc folder in your webpage

361 Views 10 Replies Latest reply: Jul 1, 2012 12:10 AM by savanna3000 RSS
savanna3000 Calculating status...
Currently Being Moderated
Jun 29, 2012 1:10 PM

Hi all,

 

  I'm new to iWeb. I have a folder named "doc" filled with html pages that has been produced as an API for my project through Eclipse. My question , I created a new site and I want to add a hyperlink to this folder to show the project API.

 

Thank you,

Savanna

 

P.S.:

Here is an examlple of an API site : http://docs.oracle.com/javase/6/docs/api/java/util/TreeSet.html 

MacBook, Mac OS X (10.6.3)
  • Roddy Level 6 Level 6 (17,255 points)
    Currently Being Moderated
    Jun 29, 2012 1:54 PM (in response to savanna3000)

    Are you asking how to create a hyperlink in iWeb or do you want to be able to display a frame?

  • Roddy Level 6 Level 6 (17,255 points)
    Currently Being Moderated
    Jun 30, 2012 8:45 AM (in response to savanna3000)

    Can you give an example URL to a page you want to link to?

  • Jeff Nitschke Level 4 Level 4 (2,655 points)
    Currently Being Moderated
    Jun 30, 2012 1:05 PM (in response to savanna3000)

    With an ifame using an html snippet possibly.

  • Jeff Nitschke Level 4 Level 4 (2,655 points)
    Currently Being Moderated
    Jun 30, 2012 1:07 PM (in response to Jeff Nitschke)

    <iframe src="http://www.w3schools.com"></iframe>

  • Roddy Level 6 Level 6 (17,255 points)
    Currently Being Moderated
    Jun 30, 2012 2:06 PM (in response to savanna3000)

    You can't import anything in the way of HTML files into iWeb.

     

    You could do as Jeff has suggested and display it in an iFrame on a page of your iWeb built site. However, this is not advisable for a whole site and can end up causing problems.

     

    An iframe is a sort of a page within a page. When you create anything in an iWeb Snippet, the application creates another page for this content. So, you get a page within a page within a page!

     

    If you want to use this method its better to have the Home page of the other site in the iFrame and give visitors the option of opening it in a new window like this...

     

    http://www.iwebformusicians.com/Website-Email-Marketing/HTML-iFrame.html

     

    Its probably better to create a sub site in the same root folder on the server which holds your iWeb site. Then you can link to this sub site from the iWeb built sites navigation and vice versa. How you go about this will depend on whether you are using the iWeb default navigation or have created your own in a text box or an HTML Snippet.

     

    Here's some info about navigation and how to create your own main and sub navigation using text boxes...

     

    http://www.iwebformusicians.com/iWeb/Navigation.html

     

    This page is about sub sites...

     

    http://www.iwebformusicians.com/iWeb/Site-Layout.html

     

    Note that a sub site is not the same as a sub domain. The latter is another possibility when considering how to load the extra site on the server.

     

    You can also add items to the iWeb default navigation by using some javascript in an HTML Snippet.

     

    Create a blank page and give it the name of the other website - or anything you want. Paste this code into an HTML Snippet on that page...

     

    <script type="text/javascript">

    parent.window.location = "URL to the Home page of the other site";

    </script>

     

    The page name will appear in the default navigation and clicking it will take visitors to the other site.

  • Roddy Level 6 Level 6 (17,255 points)
    Currently Being Moderated
    Jun 30, 2012 2:13 PM (in response to savanna3000)

    Not to a local folder. Files need to be published to a server.

     

    You can do this on your Mac. Open System Preferences and click on "Sharing". Check "Web Sharing" to set this up. From Mac Help...

     

    Sharing a website on your computer

     

    You can use the Apache web server software included with Mac OS X to host a website on your computer. Before doing so, you should already know how to create HTML pages and build websites.

     

     

    To host a website on your computer:

      • Use the HTML editor of your choice to create your website. For your site’s homepage, use the filename “index.html” so that web browsers can locate and open it automatically.

       

       

      • Put all of your website’s pages, graphics, and any media files in your home directory’s Sites folder.The existing index.html page will be replaced with your new index.html page.

       

       

      • Choose Apple menu > System Preferences and click Sharing.

       

       

      • Select the Web Sharing checkbox.

       

     

    To view webpages you put in your Sites folder:

    Open a web browser and go to http://your.computer.address/~yourusername/.

    To find your computer’s address, choose Apple menu > System Preferences, and then select Web Sharing. The address is displayed in the window.

    For “yourusername,” use your account name, and make sure you include the ending slash (/). To find your account name, choose Apple menu > System Preferences, click Accounts, and then select your account in the list.

     

     

    You can also share a website on your computer by placing files in /Library/WebServer/Documents on your hard disk. To place files there, you must be logged in as an administrator. To view these pages, open a web browser and go to http://your.computer.address.

Actions

More Like This

  • Retrieving data ...

Bookmarked By (0)

Legend

  • This solved my question - 10 points
  • This helped me - 5 points
This site contains user submitted content, comments and opinions and is for informational purposes only. Apple disclaims any and all liability for the acts, omissions and conduct of any third parties in connection with or related to your use of the site. All postings and use of the content on this site are subject to the Apple Support Communities Terms of Use.