Web Images Videos Maps News Shopping Google Mail more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Create a hyperlink to a webpage
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  7 messages - Expand all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Follow-up To:
Add Cc | Add Follow-up to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers that you hear
 
Damo  
View profile   Translate to Translated (View Original)
 More options 26 July 2007, 05:48
Newsgroups: microsoft.public.visio.general
From: Damo <D...@discussions.microsoft.com>
Date: Wed, 25 Jul 2007 21:48:05 -0700
Local: Thurs 26 July 2007 05:48
Subject: Create a hyperlink to a webpage
We automatically convert our Organisation to html in Visio.  If you
CTRL-Click on a shape you get to see the "properties" of that shape over on
the left of the screen.  One of the fields is currently text and we want to
make it a hyperlink to a separate web page.

I can see where the text is stored after the html is created (a file called
data.xml)

<Prop ID="6" Name="Link" NameU="Link">
<Value Unit="STR">http://www.webpage.com</Value>
<Label>Link</Label>
</Prop>

What I need is http://www.webpage.com to be an HTML hyperlink, but I don't
need the shape to be a hyperlink.

Does anyone know how to do this?

Cheers


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Chris Roth [MVP]  
View profile   Translate to Translated (View Original)
 More options 26 July 2007, 08:53
Newsgroups: microsoft.public.visio.general
From: "Chris Roth [MVP]" <visioguy [at] hotmail [dot] com>
Date: Thu, 26 Jul 2007 17:53:48 +1000
Local: Thurs 26 July 2007 08:53
Subject: Re: Create a hyperlink to a webpage
Hi Damo,

I tried to trick the Save As Web by putting html in the shape property, ie:

Prop.Link = "<a href='http://www.visguy.com' title='Visio Guy'>Visio
Guy</a>"

but the export seems to be too clever and is escaping the link so that it
appears as text. I don't know if there are any cleverer ways to
"anti-escape" the property-text in order to fool the export. Kinda starts to
sound like a security risk at some point... : )

If your summer interns are still around, they might be able to massage the
Save As Web output with some sort of post-process utility that would make
your link a link again, but this is extra programming, and an extra step in
your publishing process...

Anybody else got any ideas?

--
Hope this helps,

Chris Roth
Visio MVP

Free Visio shapes:
  http://www.visguy.com/category/shapes
Visio programming info:
  http://www.visguy.com/category/programming/
Other Visio resources:
  http://www.visguy.com/visio-links/

"Damo" <D...@discussions.microsoft.com> wrote in message

news:EAE06D24-1113-4F0E-ADE1-8B04C2AE880A@microsoft.com...


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
John Goldsmith  
View profile   Translate to Translated (View Original)
 More options 27 July 2007, 09:51
Newsgroups: microsoft.public.visio.general
From: "John Goldsmith" <FirstName.LastN...@visualsignals.co.uk>
Date: Fri, 27 Jul 2007 09:51:25 +0100
Local: Fri 27 July 2007 09:51
Subject: Re: Create a hyperlink to a webpage
Hello Damo,

Inspired by Chris's suggestion I've been having a look at the frameset.js
file (which I'm assuming your reasonably ok with as you're looking in that
folder area already).

As Chris says there's an HTMLEscape function at the bottom of this file
which prevents the links from being links, however with a little editting
you can get the behaviour you're after:

Search the file for "if (oPropValue)" (there's only one instance of this)
and replace the following:

if (oPropValue)

{

strValueText = HTMLEscape (oPropValue.text);

}

....with:

if (oPropValue)

{

if (String(oPropValue.text).charAt(0) == "s")

{

strValueText =
String(oPropValue.text).substring(1,(String(oPropValue.text).length));

}

else

{

strValueText = HTMLEscape (oPropValue.text);

}
}

You can then use the following link text in the shapesheet:

="s<a href='http://www.bbc.co.uk' target='_blank'>BBC</a>"

If you always use the same Save as web page settings then you can just
replace the frameset.js file with your editted version so at least you won't
javascripting each time.  You may also want to choose a start character
other than "s" that will be unique within the Shape Data cells.

Anyway, hope that helps.

Best regards

John

John Goldsmith
www.visualSignals.co.uk

"Chris Roth [MVP]" <visioguy [at] hotmail [dot] com> wrote in message
news:eoxXrrA0HHA.3400@TK2MSFTNGP03.phx.gbl...


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Chris Roth [MVP]  
View profile   Translate to Translated (View Original)
 More options 27 July 2007, 10:35
Newsgroups: microsoft.public.visio.general
From: "Chris Roth [MVP]" <visioguy [at] hotmail [dot] com>
Date: Fri, 27 Jul 2007 19:35:51 +1000
Local: Fri 27 July 2007 10:35
Subject: Re: Create a hyperlink to a webpage
Oooh John!

It's nice to find smart folks like you out there! I'm glad you had the
patience to pore through the Visio/html-output and work this out! Tempted to
turn this one into an article/utility for my blog...

--
Thanks!

Chris Roth
Visio MVP
http://www.visguy.com

"John Goldsmith" <FirstName.LastN...@visualsignals.co.uk> wrote in message

news:%23B2%23VtC0HHA.600@TK2MSFTNGP05.phx.gbl...


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
John Goldsmith  
View profile   Translate to Translated (View Original)
 More options 27 July 2007, 11:22
Newsgroups: microsoft.public.visio.general
From: "John Goldsmith" <FirstName.LastN...@visualsignals.co.uk>
Date: Fri, 27 Jul 2007 11:22:31 +0100
Local: Fri 27 July 2007 11:22
Subject: Re: Create a hyperlink to a webpage
Thanks Chris.  Better get on with my own work now:)

Look forward to your next blog post.

Best regards

John

John Goldsmith
www.visualSignals.co.uk

"Chris Roth [MVP]" <visioguy [at] hotmail [dot] com> wrote in message
news:OwEoJGD0HHA.464@TK2MSFTNGP02.phx.gbl...


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Damo  
View profile   Translate to Translated (View Original)
 More options 27 July 2007, 21:34
Newsgroups: microsoft.public.visio.general
From: Damo <D...@discussions.microsoft.com>
Date: Fri, 27 Jul 2007 13:34:00 -0700
Subject: Re: Create a hyperlink to a webpage
Thanks to both of you.  I shall try this first thing on Monday & let you know
of the results :-)


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Damo  
View profile   Translate to Translated (View Original)
 More options 1 Aug 2007, 02:58
Newsgroups: microsoft.public.visio.general
From: Damo <D...@discussions.microsoft.com>
Date: Tue, 31 Jul 2007 18:58:10 -0700
Local: Wed 1 Aug 2007 02:58
Subject: Re: Create a hyperlink to a webpage
Yep, it worked perfectly.

Thank you so much!


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google