How to create hyperlink in the page already opened?

J

Jack

Hello,
I am looking for the way to invoke hyperlink functionality when
the user clicks on selected word.
Is that possible?
I can use javascript to retrieve the word clicked on. How can I embedd that
word into href = ???
Or is there another way?
Thanks,
Jack
 
T

Thomas A. Rowe

You have to select the word in FP, then right click and select hyperlink properties, then you can
create the link and manually add the word.

--
==============================================
Thomas A. Rowe
Microsoft MVP - FrontPage

http://www.Ecom-Data.com
==============================================
 
J

Jack

What I mean is:
adding hyperlink in real run-time of the web page. Not at the design stage.
Something similar what Skype is doing with its web toolbar.
It changes all phone numbers shown on the any web page into hyperlinks
responding to CallTo tag.
Jack
 
T

Thomas A. Rowe

Phone number is fairly easy since you can match a pattern, however with individual words, I have no
idea where to begin.

--
==============================================
Thomas A. Rowe
Microsoft MVP - FrontPage

http://www.Ecom-Data.com
==============================================
 
J

Jack

Yes, it can be any word (numeric) which after scanning the page and using
some assumptions and filtering the word will be found as a phone number.
When such word is found I want to change it into a callto: hyperlink.
(callto://<found phone number>
Thanks,
Jack
 
J

Jack

Yes.
I have written already programs. The solution can be embedded within it.
In fact that hyperlink will interact with my program. That is the whole
idea.
I want to do something similar what Skype did.
There is Skype plugin for IE, which does just that. It searches web page for
phone numbers, highlights them and turns them into hyperlink, which
interacts with Skype.
I would like the same but without a need for plugin.
Thanks,
Jack
 
S

Steve Easton

Well, I don't use Skype but I would assume that the Skype plug in adds an item
to the right click context menu in IE that the user clicks to grab the phone numbers.
If so, the plug in is either an .exe or .dll that contains a routine that searches the active document
for phone number "strings".

Something along the lines of a custom Web Browser control.
http://msdn2.microsoft.com/en-us/library/aa752040.aspx


--

Steve Easton
Microsoft MVP FrontPage
FP Cleaner
http://www.95isalive.com/fixes/fpclean.htm
Hit Me FP
http://www.95isalive.com/fixes/HitMeFP.htm
 
J

Jack

No. That is a wrong assumption.
I have already explained how that works.
It creates hyperlinks which with the single mouse click (as hyperlink
normally work) interact with the main Skype app.
Jack
 
S

Steve Easton

Ok I just went back and reread the original post.

You said you can use javascript to retrieve the "word" that was clicked on.

Assuming the variable name for the word clicked on is: str

Your hyperlink would be a new variable
var openit;

openit = new String<("http:// +str ")
or
openit = new String< ("http://www. "+ str + ".com")

and then you fire it with a function:
open(openit);


--

Steve Easton
Microsoft MVP FrontPage
FP Cleaner
http://www.95isalive.com/fixes/fpclean.htm
Hit Me FP
http://www.95isalive.com/fixes/HitMeFP.htm
 
J

Jack

Does Skype automatically scan the page for "numbers" and turn them into a
"clickable" link?
Steve, you got it!
Yes, thats right.
1.
User opens webpage
2.
Skype automatically (that what Skype plugin is for) scans that page,
evaluates the found numbers, decides which number can be a phone number,
then highlights it and making it clickable.

Jack
 
J

Jack

Yes, that is true but partially. I am able to run that java script on the
web page but on my computer only.
I do not have idea how to run it on any webpage, anywhere.
Skype plugin is able to do that!
Jack
 
S

Stefan B Rusynko

Because the Skype plug-in is written as a BHO (browser helper object), which each user has downloaded and installed
- the BHO parses the page (thru hooks in the browser) to look for the phone #

You can not do the same on anyone else's PC / browser w/ just a client side script (JavaScript)
You need to write a dll or com bho and the user needs to install it



| Yes, that is true but partially. I am able to run that java script on the
| web page but on my computer only.
| I do not have idea how to run it on any webpage, anywhere.
| Skype plugin is able to do that!
| Jack
|
| | > Ok I just went back and reread the original post.
| >
| > You said you can use javascript to retrieve the "word" that was clicked
| > on.
| >
| > Assuming the variable name for the word clicked on is: str
| >
| > Your hyperlink would be a new variable
| > var openit;
| >
| > openit = new String<("http:// +str ")
| > or
| > openit = new String< ("http://www. "+ str + ".com")
| >
| > and then you fire it with a function:
| > open(openit);
| >
| >
| > --
| >
| > Steve Easton
| > Microsoft MVP FrontPage
| > FP Cleaner
| > http://www.95isalive.com/fixes/fpclean.htm
| > Hit Me FP
| > http://www.95isalive.com/fixes/HitMeFP.htm
| >
| >
| >
| > | >> Hello,
| >> I am looking for the way to invoke hyperlink functionality when
| >> the user clicks on selected word.
| >> Is that possible?
| >> I can use javascript to retrieve the word clicked on. How can I embedd
| >> that word into href = ???
| >> Or is there another way?
| >> Thanks,
| >> Jack
| >>
| >
| >
|
|
 
J

Jack

No Steve, you never said that.
I am sorry to say that you did not have a clue, even suggesting it was done
by IE menu extention.
Jack
 

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