Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old July 19th, 2005, 11:39 AM
aa
Guest
 
Posts: n/a
Default passing a string to a function by mouse-click on it?

I have a section of a website which is heavily loaded with technical
terminoogy. I have a Glossary database running from ASP code which accepts a
string and returnd it's meaning (is there is meaning).
Now I want a cusotmer, instead of copying a word into a field, just click a
word. I do not make all the words hyperlink. Is there any smart way to
acheive this? I realise that this is a clent-side question, but perhaps
someone can direct me into correct direction?


  #2  
Old July 19th, 2005, 11:39 AM
William Morris
Guest
 
Posts: n/a
Default Re: passing a string to a function by mouse-click on it?

Well, what happens when the user clicks on a word? The smartest way to make
a word clickable is to hyperlink. If you wrap each word in a clickable
span with a style to simulate the look of a link, for instance, you have to
wait for the browser to apply the relevant styles to every span on the page,
where a hyperlink gets its formatting immediately with no waiting.

"aa" <aa@virgin.net> wrote in message
news:%233m1fIp6DHA.3648@TK2MSFTNGP11.phx.gbl...[color=blue]
> I have a section of a website which is heavily loaded with technical
> terminoogy. I have a Glossary database running from ASP code which accepts[/color]
a[color=blue]
> string and returnd it's meaning (is there is meaning).
> Now I want a cusotmer, instead of copying a word into a field, just click[/color]
a[color=blue]
> word. I do not make all the words hyperlink. Is there any smart way to
> acheive this? I realise that this is a clent-side question, but perhaps
> someone can direct me into correct direction?
>
>[/color]


  #3  
Old July 19th, 2005, 11:40 AM
aa
Guest
 
Posts: n/a
Default Re: passing a string to a function by mouse-click on it?

yes, hyperlinnk is hte first which comes to one's mind, but it is not to
smart wrapping each word into <a> tags.
I quess that is a word is clicked, there is a way to capture which word has
been clicked and pass it to a function.


"William Morris" <news.remove.this.and.the.dots@seamlyne.com> wrote in
message news:bvp5vs$v1rcn$1@ID-205671.news.uni-berlin.de...[color=blue]
> Well, what happens when the user clicks on a word? The smartest way to[/color]
make[color=blue]
> a word clickable is to hyperlink. If you wrap each word in a clickable
> span with a style to simulate the look of a link, for instance, you have[/color]
to[color=blue]
> wait for the browser to apply the relevant styles to every span on the[/color]
page,[color=blue]
> where a hyperlink gets its formatting immediately with no waiting.
>
> "aa" <aa@virgin.net> wrote in message
> news:%233m1fIp6DHA.3648@TK2MSFTNGP11.phx.gbl...[color=green]
> > I have a section of a website which is heavily loaded with technical
> > terminoogy. I have a Glossary database running from ASP code which[/color][/color]
accepts[color=blue]
> a[color=green]
> > string and returnd it's meaning (is there is meaning).
> > Now I want a cusotmer, instead of copying a word into a field, just[/color][/color]
click[color=blue]
> a[color=green]
> > word. I do not make all the words hyperlink. Is there any smart way to
> > acheive this? I realise that this is a clent-side question, but perhaps
> > someone can direct me into correct direction?
> >
> >[/color]
>
>[/color]


 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles