« Highlighting images using a mask | Main | Hiding Pages (with VBA) »

Sunday, 23 December 2007

TrackBack

TrackBack URL for this entry:
http://www.typepad.com/services/trackback/6a00e54ede3f24883300e54fc1be0f8834

Listed below are links to weblogs that reference Escaping from Save as Web Page links:

Comments

Bill

What shape are you using to create this diagram? In particular, the Server Image with the text next to it stating the properties of the server.

John Goldsmith

Hello Bill,

I've just used the IT Asset Management sample diagram (Help / Sample Diagrams), which is part of Visio Professional 2007.

The server shapes you can see are Database server shapes (File / Shapes / Network / Network / Servers), while the surrounding data and icons are 'Data graphic' shapes, which is a new feature in 2007 Pro.

There's an overview of Data graphics over at http://office.microsoft.com/en-gb/visio/HA100487841033.aspx, which deals with how to use the built-in set, or you can create your own custom data graphic shapes as per the Visio Insights blog:

Text Callouts - http://blogs.msdn.com/visio/archive/2007/05/01/make-your-own-data-graphic-text-callouts.aspx

Data Bars - http://blogs.msdn.com/visio/archive/2007/06/01/make-your-own-data-graphic-data-bars.aspx

Icon Sets - http://blogs.msdn.com/visio/archive/2007/07/20/make-your-own-data-graphic-icon-sets.aspx

and this article on MSDN:

http://msdn2.microsoft.com/en-us/library/aa468596.aspx

Best regards

John

Steve Bennett

Hi John,

Many thanks for the elegant solution and the clear concise way you dscribe things. This particular solution almost answers an issue that has been driving me mad for weeks - which is why I decided to write. Please accept my apologies if this is not the correct way to contact you, but I wondered if you would look into a similar problem as there seem to be quite a few people also looking for a fix.

As background - I publish various Visio docs on our company intranet using the "save as web page" facility in Visio. The reason I use this method is because of the elegant framing and zoom functionality; the Details functionality; and of course the ease of production - given that I am not a coder.

However, my issue is that although I can present my web pages produced from the Visio drawings into the correct web frame on my intranet, I cannot make hyperlinks from these pages to other documents publish to the same frame. Like many other people I currently have to make do with either using the whole IE window for the new hyperlink or target a totally separate window for my document. Whilst this works, it really frustrates me that I cannot continue to let users use the Index frame of the intranet to continue their navigation. All of my current research and attempts to cure this have been fruitless.

Hopefully this small issue will whet your appetite as a problem worthy of producing a solution for. Please feel free to contact me if more description is required, and thanks again for the teriffic resource pages.

Best regards
Steve B

John Goldsmith

Hello Steve,

Thanks for your comment. If I understand you correctly you want your external links to open in the main frame rather than in a new window. Is that right?

If that's the case then you can change the target attribute's value from '_blank' to a frame name, which in this case is 'frmDrawing'. However, this mucks up the browser's back button and subsequent links will still open in a new window.

I'm afraid I don't have a lot of spare time to investigate as I'm just about to head off on holiday, but have a look at this link, which may help and of course post a question in the Visio newsgroups.

http://www.456bereastreet.com/archive/200605/using_javascript_instead_of_target_to_open_new_windows/

Hope that helps.

Best regards

John


Steve

John,

Thanks for the prompt response. Your assumption is almost correct. I'll try and expand if I may. My Intranet has 3 frames. Title, Menu, and Content. I currently publish my Visio output webs to the Content frame which places the Visio frame set as a subset within Content. This method then leaves the Menu frame still available for Intranet navigation.

However, when I hyperlink to any other documents from the visio webs, I would like those documents to be published to my Intranet's Content frame. I'm happy to overwrite the Visio output as my users can then either "back out" of the new document, or re-navigate to the parent Visio web pages using the Menu.

At present the hyperlinked documents are either published over the top of all 3 of my intranet frames or of course to a new window. I have tried several attempts to edit the target frames of _blank and _top etc for my Hyperlinks in the visio produced code and of course the Frame cell in the Shapeheet - but to no avail. Also as you suggest I have tried to target the visio produced frame sets - again with no success.

Your solution published above does offer me a halway house, but relies on users having to "Ctrl-Click" then use the link I can now publish. I can even publish hyperlinked documents to the Content frame of the Intranet. Which is progress indeed.

I will investigate the link kindly offered. Thank you. In the mean time have a great holiday. I hope you come back to a post with the solution. If not - I'd appreciate any other guidance.

Best regards,
Steve B

Steve B

Hi John,

Due to you nudging me in the right direction, I managed to find a solution. The answer turned out to be quite simple in the end. Here's the full method for completeness.

Preparation: Design your Visio Drawing and add the Hyperlinks as usual. Then open the Stylesheet for the objects you wish to target the frames for, and amend NewWindow to True if a new window is required. Or in my case ensure that is still set to False (i.e. no new window required). Next save the drawing using the Save as Web Page option. During this phase I use the Publish button rather than the Save button, and I ensure that the settings are as I require. i.e. Details, Goto Page, Search Pages, and Pan and Zoom are the only selections I use in the General Tab. Also in the Advanced Tab I select VML, JPEG Alternate format, and I target the size of the drawing to 1024x768.

Fix: After publishing as a Save as Web Page we get the main HTM page and the Files directory. Open in an editor the "frameset.js" file within the Files directory as you explain above. Then search for "top.location" and replace with "self.location". I had 2 instances in all my tests.

You can now use the main.HTM page with a frame reference in your Intranet etc. and any Hyperlinks will open in the same frame.

I hope this helps. Thanks again for your assistance.

Regards,
Steve B

John Goldsmith

Hello Steve,

Well I'm back from holiday and glad to find that you've found a solution.

Thanks very much for taking the time to post the details.

Best regards

John

Michael Marriott

Hi,
I am publishing my Visio diagram to a web page.
I was wondering if you could tell me how to make a 'hint' come up when I run over a shape with my mouse (once it is published of course).

Regards,

Mike Marriott

John Goldsmith

Hello Michael,

Are you just looking for some kind of tooltip on mouseover or something more involved? I am planning a future post to look at full popups that will contain stylable html, but in the meantime, have you seen this post, which covers tooltips? http://visualsignals.typepad.co.uk/vislog/2009/02/changing-the-save-as-web-tooltip.html

Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Working...
Your comment could not be posted. Error type:
Your comment has been saved. Comments are moderated and will not appear until approved by the author. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.

Working...

Post a comment

Comments are moderated, and will not appear until the author has approved them.