View Single Post
  #58 (permalink)  
Old 08-19-2008, 01:01 PM
digitaldon37 digitaldon37 is offline
Senior Member
 
Join Date: Jan 2008
Posts: 144
Default linking to a specific part of the page

I'm stumped on how to do this in the wiki program. One of tsteward's remaining features is to implement linking to a specific part of the page.

Example #1: The wiki markup language will look like this
Code:
[[help#bold][About bold font markup]]
Example #2: Which translates to HTML
Code:
<a href="help.htm#bold">About bold font markup</a>
The wiki parser reads the code in example #1 and produces something similar to example #2 (help.htm will be 'about:help#bold' since these are all local pages) The program builds a html string (similar to what you see when viewing a web page and click on "view source") and assigns that to the "DocumentText" property for the web browser library object that we are using.

There doesn't seem to be a way to make the page display as it would within a browser - that is to have the page jump to the section link. The navigate method didn't work for this application because these are local pages.

My question: how can section linking be implemented?
Reply With Quote