Open the right visio page from a html-page?

B

Blixten

When Visio creates HTML-pages you could get navigation for all visio pages
exported.

What I can see there are frames and javascript that handle the navigation. I
would like to link to a specfic visio-page instead for the defaultpage when
You open the html-pages.

Of course you could link to a specfic pages, but then you will miss the
navigation and search functions created by Visio.

Is there any smart way to set the default visio page by changing javascript
variablels or?
 
P

Paul Herber

When Visio creates HTML-pages you could get navigation for all visio pages
exported.

What I can see there are frames and javascript that handle the navigation. I
would like to link to a specfic visio-page instead for the defaultpage when
You open the html-pages.

Of course you could link to a specfic pages, but then you will miss the
navigation and search functions created by Visio.

Is there any smart way to set the default visio page by changing javascript
variablels or?

We have an addon for Visio that creates webpage output in a different
manner. It might suit your purposes. No frames, no javascript, just
plain HTML4, GIF, PNG, JPG or SVG images, header and footer files.
Address below.
 
B

Blixten

I don't think so. The thing that I want is to the abilty to show the
properties for shapes and the navigation for all visio-files. Or is there a
function in your adds-on that I have missed?
 
P

Paul Herber

Oh, sorry, I didn't realise that was part of your requirement. I don't
know how you'll be able to show the shape's properties from an HTML
page.
 
S

Scott Helmers

If you would like to link directly to a page and still have the navigation,
details and search panes available, you will need to make a minor
modification to the JavaScript code produced by Visio.

In the primary html file created by Visio for your published TaskMap,
replace this line
var g_CurPageIndex = 0;
with these lines:
var args = location.search.substr(1).split("?");
// show first page if called with no argument or
// if value of argument is greater than the number of pages
if ( args < 1 || args > g_FileList.length )
var g_CurPageIndex = 0;
else
var g_CurPageIndex = args - 1; // subtract 1; page list is zero
relative

To load a specific page, create a hyperlink with the following syntax:
http://<index page URL>?<page number>

For example, to load page 3 of a published TaskMap named example.htm:
http://example.htm?3
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top