"TotallyConfused" <Totally...@discussions.microsoft.com> wrote in
message news:4F2399FE-A9D1-47E9...@microsoft.com...
http://visualsignals.typepad.co.uk/vislog/2007/12/escaping-from-s.html
Best regards
John
John Goldsmith (Visio MVP)
www.visualSignals.typepad.co.uk
www.visualSignals.co.uk
"TotallyConfused" <Totally...@discussions.microsoft.com> wrote in
message news:BBCDAE14-E812-4685...@microsoft.com...
Can you please help figure out what is wrong. Because when the org chart
opens as web page the email address is not hyperlinked.
Thank you very much in advance for any help you can provide.
"John Goldsmith_Visio_MVP" wrote:
> .
>
if (String(oPropValue.text).substring(0,4) == "http")
...to...
if (String(oPropValue.text).substring(0,6) == "mailto")
Hope that helps.
Best regards
John
John Goldsmith (Visio MVP)
www.visualSignals.typepad.co.uk
www.visualSignals.co.uk
"TotallyConfused" <Totally...@discussions.microsoft.com> wrote in
message news:F1BA0E21-574D-402C...@microsoft.com...
if (oPropValue)
{
if (String(oPropValue.text).substring(0,6) == "mailto")
{
strValueText = "<a href='" + String(oPropValue.text)
+ "' target='_blank'>" + String(oPropValue.text) + "</a>";
}
else
{
strValueText = HTMLEscape (oPropValue.text);
}
}
I even made a couple of variations by changing the substring to (0,7) ==
"mailto:"
Not working!
I do not want to give up on this as this is needed. Do I need to reference
something? There has to be a way to be able to add email address and have
user click on it in the Value cell and it links to email. Do you have an
example? Is there one out there somewhere that I can look at to see what it
is I am not doing right? I am using Visio 2003. Thank you again in advance
for any other input you can provide.
"John Goldsmith_Visio_MVP" wrote:
> Sorry, I misled you saying it should work. My JavaScript is looking for
> strings beginning 'http' and so it won't find your 'mailto'. It's no
> problem however. All you need to do is change the if statement from:
>
> if (String(oPropValue.text).substring(0,4) == "http")
>
> ....to...
> .
>
Best regards
John
John Goldsmith (Visio MVP)
www.visualSignals.typepad.co.uk
www.visualSignals.co.uk
"TotallyConfused" <Totally...@discussions.microsoft.com> wrote in
message news:BF440F76-CF20-4FF1...@microsoft.com...
I hope this helps in determining why I cannot get a normal hyperlink. Thank
you.
"John Goldsmith_Visio_MVP" wrote:
> .
>
IE6, wow. Well I've just reverted a virtual pc image back to IE6 to check
and the mailto link does work.
If you want to zip up your web page and supporting files then I'd be happy
to take a look for you, otherwise I'm running out of answers as I'm not able
to reproduce the problem.
My address is:
JohnAddaDotHereGoldsmith
at
visualsignals.co.uk
Best regards
John
John Goldsmith (Visio MVP)
www.visualSignals.typepad.co.uk
www.visualSignals.co.uk
"TotallyConfused" <Totally...@discussions.microsoft.com> wrote in
message news:F70F532F-232F-4764...@microsoft.com...
Thank you again. One last question, what Visio 2003 book do you recommend?
I need something intermediant. Everything out there is 2007. Thank you
again. Have a great day!
"John Goldsmith_Visio_MVP" wrote:
> .
>
In terms of books, the main one I'd recommend for intermidiate is Developing
Visio Solutions
It's the print version of the 2002 online one here:
http://msdn.microsoft.com/en-us/library/aa245244(office.10).aspx
I think this is one of the best resources around, and of course there's
Graham Wideman's 'Visio 2003 Developer's Survival Pack':
...which I'd say is the experts book and still worth the money even thought
2010 is approaching.
David Parker's "Visualizing Information with Microsoft Office Visio 2007" :
All of the above lean towards the developer side of things, so if you never
want to open the ShapeSheet and just get to grips with the various solutions
in Visio then there's the Visio Bible series
http://www.amazon.com/Visio-2003-Bible-Bonnie-Biafore/dp/0764557246
I've only read the first three which I'd certainly recommend, and doubt the
others are good too....I've just not reviewed them.
Let me know how you get on with your Org Chart.
Best regards
John
John Goldsmith (Visio MVP)
www.visualSignals.typepad.co.uk
www.visualSignals.co.uk
"TotallyConfused" <Totally...@discussions.microsoft.com> wrote in
message news:D09B1690-406A-484D...@microsoft.com...
if (oPropValue)
{
if (String(oPropValue.text).substring(0,6) == "mailto")
{
strValueText = "<a href='" + String(oPropValue.text)
+ "' target='_blank'>" + String(oPropValue.text) + "</a>";
}
else
{
strValueText = HTMLEscape (oPropValue.text);
}
}
"John Goldsmith_Visio_MVP" wrote:
> Glad to hear that you've got a sample to work. Now it's just a case of
> tracking down the differences.
>
> In terms of books, the main one I'd recommend for intermidiate is Developing
> Visio Solutions
>
> http://www.amazon.com/Developing-Microsoft-Visio-Solutions-Pro-Documentation/dp/0735613532/ref=sr_1_1?ie=UTF8&s=books&qid=1259703733&sr=8-1
>
> It's the print version of the 2002 online one here:
>
> http://msdn.microsoft.com/en-us/library/aa245244(office.10).aspx
>
> I think this is one of the best resources around, and of course there's
> Graham Wideman's 'Visio 2003 Developer's Survival Pack':
>
> http://www.diagramantics.com/
>
> ....which I'd say is the experts book and still worth the money even thought
if (String(oPropValue.text).substring(0, 6) == "mailto" ||
String(oPropValue.text).substring(0, 4) == "http") {
If you want to poke around in JavaScript you might be interested in this
link:
http://www.w3schools.com/js/default.asp
Best regards
John
John Goldsmith (Visio MVP)
www.visualSignals.typepad.co.uk
www.visualSignals.co.uk
"TotallyConfused" <Totally...@discussions.microsoft.com> wrote in
message news:50590F91-2563-4050...@microsoft.com...