Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Rate Thread Display Modes
Old 07-10-2011, 08:19   #16
Registered User
 
HappySeagull's Avatar

Join Date: Dec 2010
Location: B.C.,Canada
Boat: 29'
Posts: 2,395
Re: Cruising Guide with Additional Information Links

..you're right,though.It doesn't work in OpenCPN with the "#" and whatever follows.It just opens the page at top.
Code:
<link href="file:///D:/DownloadedStuff/tabtrick.html#dupes"><text>down page</text></link>
        <link href="file:///D:/DownloadedStuff/tabtrick.html"><text>source page</text></link>
didn't work.although it looks ok...
Click image for larger version

Name:	Clipboard01.jpg
Views:	56
Size:	22.4 KB
ID:	32442
ps.I just copied and pasted from the browser address
__________________

__________________
HappySeagull is offline   Reply With Quote
Old 07-10-2011, 08:26   #17
Registered User

Join Date: May 2011
Posts: 847
Re: Cruising Guide with Additional Information Links

I don't have any problem with the coding, that all exists and works.. what doesn't work is the links to a location from OpenCPN.

This is the link as coded into the GPX file for a waypoint

Code:
file:///C:/NavWeb/SGNotes.html#CobblersCove
But when clicked in the OpenCPN additional info window it takes me to

Code:
file:///C:/NavWeb/SGNotes.html
Attachment 32440

The link is correctly formated. If I right click on the link and copy and paste into the browser it takes me to the correct location

Code:
file:///C:/NavWeb/SGNotes.html#CobblersCove
Attachment 32441

OpenCPN doesn't seem to be passing the location name part of the link to the browser.
__________________

__________________
Littlechay is offline   Reply With Quote
Old 07-10-2011, 08:39   #18
Registered User
 
HappySeagull's Avatar

Join Date: Dec 2010
Location: B.C.,Canada
Boat: 29'
Posts: 2,395
Re: Cruising Guide with Additional Information Links

Chay,can any other program pass such a command to a browser?is it just OpenCPN that can't do it?
__________________
HappySeagull is offline   Reply With Quote
Old 07-10-2011, 09:21   #19
Registered User
 
HappySeagull's Avatar

Join Date: Dec 2010
Location: B.C.,Canada
Boat: 29'
Posts: 2,395
Re: Cruising Guide with Additional Information Links

..it's interesting that though Opencpn won't go down the page per the"#" link,it highlights it, at least.
__________________
HappySeagull is offline   Reply With Quote
Old 07-10-2011, 12:39   #20
Senior Cruiser
 
sinbad7's Avatar

Cruisers Forum Supporter

Join Date: Sep 2003
Location: Ubatuba,SP,Brazil (Ex Norway)
Boat: (Ex) Alu. 60' yacht-"Eight Bells"
Posts: 2,717
Images: 57
Send a message via Skype™ to sinbad7
Re: Cruising Guide with Additional Information Links

Quote:
file:///C:/NavWeb/SGNotes.html#CobblersCove
URLs for "anchors" on the same page start with "#" followed immediately by the label of the anchor (for example, "#my_tag")


If you have to have a separate command line for each item,why not use the following:

file:///C:/NavWeb/SGNotes/CobblersCove.html

Find it hard to believe it has anything to do with OCPN as the link simply relinquishes the command to the called .html file.

Tore
__________________
"And all I ask is a tall ship and a star to steer her by."
sinbad7 is offline   Reply With Quote
Old 07-10-2011, 13:32   #21
Registered User

Join Date: May 2011
Posts: 847
Re: Cruising Guide with Additional Information Links

I have never said it had anything to do with OpenCPN, only that what I am trying to do doesn't work with OpenCPN.

Sinbad. I'm not sure what you mean by a seperate command line for each item.. My notes are organised into Geographical areas. I have one HTML page for each area; South Georgia, Falkland Islands, Tierra del Fuego, Antarctic Peninsula, South Sandwich Islands, etc. etc. .

So South Georgia is one page, each location is a paragraph or two, with a link to a sketch plan or photos. All of this is very readable, you can browse through it, it's in geographical order so you read in a natural direction along the coast, that way it's easy to compare anchorages in a particular area.

If you are suggesting that I link to each location without using #name then I'd have to cut each geographical area up into dozens, or hundreds, of files. I'm not going to do that for several reasons. The main two being that I'd have to maintain at least two sets of files, and I like it the way it is.

My information is very readable as it is I don't want to make it harder to read. Friends and colleages like the way it is.

I want to link OpenCPN into something that already exists not break something up just so that I can link to it from OpenCPN. It also has to remain simple to maintain.

One solution would be to have plugin for OpenCPN that was basically a HTML browser, then I am guessing that it would be easier to pass the links in both directions. For the cruising guide to be interactive it needs to work both ways...
a. a click on a link in the Waypoint info box takes you to the information document(s)
b. a click on a position in the navigation notes document takes you to the positon in OpenCPN.

There has been a lot of talk here about 'interactive cruising guides' but as far as I can see you can only link out of OpenCPN at this time and not in from a cruising guide.

I'm trying to solve the problem with simple technology that anybody can use without programming, which I don't have time for, and by sharing here I hope that my efforts will help others.
__________________
Littlechay is offline   Reply With Quote
Old 08-10-2011, 09:41   #22
Senior Cruiser
 
sinbad7's Avatar

Cruisers Forum Supporter

Join Date: Sep 2003
Location: Ubatuba,SP,Brazil (Ex Norway)
Boat: (Ex) Alu. 60' yacht-"Eight Bells"
Posts: 2,717
Images: 57
Send a message via Skype™ to sinbad7
Re: Cruising Guide with Additional Information Links

Dave..

Regarding Littlechay's problem initiating an 'extended' .html command with an # anchor:
file:///C:/NavWeb/SGNotes.html#CobblersCove

Could there be a possibility that your 'Additional information' feature in OCPN only accepts links ending with htm or html? The above command works perfectly when executed outside OCPN.

Tore
__________________
"And all I ask is a tall ship and a star to steer her by."
sinbad7 is offline   Reply With Quote
Old 08-10-2011, 11:04   #23
Registered User

Join Date: Dec 2005
Location: WNA
Boat: Dufour 35
Posts: 3,249
Re: Cruising Guide with Additional Information Links

Quote:
Originally Posted by sinbad7 View Post
Dave..

Regarding Littlechay's problem initiating an 'extended' .html command with an # anchor:
file:///C:/NavWeb/SGNotes.html#CobblersCove

Could there be a possibility that your 'Additional information' feature in OCPN only accepts links ending with htm or html? The above command works perfectly when executed outside OCPN.

Tore
It is not a general OpenCPN problem as this feature works OK in Linux/OpenCPN, while in windows (XP) the parser silently drops the html anchor. It could be an wx/win implementation problem. Please enter this as a bug in the tracker.
Thomas
__________________

__________________
cagney is offline   Reply With Quote
Reply

Tags
cruising, cruising guides

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cruising Guide to Long Island Sound and New England Helbent Atlantic & the Caribbean 5 06-09-2011 19:11
Recommendations on Western Caribbean Cruising Guides ? SoonToBe Atlantic & the Caribbean 10 30-08-2011 15:22
Cruising Guide to Aruba JARogers Cruising News & Events 1 29-06-2011 08:31
Aruba cruising guide testing! Tranquilo General Sailing Forum 0 25-06-2011 09:11



Copyright 2002- Social Knowledge, LLC All Rights Reserved.

All times are GMT -7. The time now is 03:13.


Google+
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Social Knowledge Networks
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2017, vBulletin Solutions, Inc.

ShowCase vBulletin Plugins by Drive Thru Online, Inc.