Re: links again

2006-11-06 Thread Timothy Miller

Never mind on my last question. I've got it now.

Several stacks provided by subscribers to this list have been very helpful.

--Tim

Timothy Miller wrote:

Thanks Mark, Sarah, Judy, and others, very much.

I'm afraid I haven't benefited from the sample stacks generously 
offered, because I haven't been able to find them on RevOnLine, but 
I'm working on that, and will soon succeed.


It sounds like the general idea is pretty straightforward. I didn't 
realize the linkText property exists, and that I can set it as I like.


Pending study of the stacks suggested...

How would I set the linkText if I wanted the link to send a message, 
possibly with parameters or global variables, or execute a script?


As I think about it, I suppose that if I give each link a unique 
linkText, I can simply use "if" or "case" statements further up the 
hierarchy to send messages, execute scripts or whatever. Is that the 
right approach? Is there another way? -- Well, there's always another 
way, but is there another standard way?


I'm still a little fuzzy on the HTMLtext.

I know you can export a formatted field as HTML. Is it also possible 
to set the HTMLtext of a chunk in a field, so it displays and behaves 
according to the HTML tags I specify? (I understand RR uses a subset 
of HTML.)


Tim

Judy Perry wrote:

Tim,

You can also check out a simple stack I have explaining how to do 
this up

on RevOnline in the Education category:  Hyperlinks in Transcript.

HTH,

Judy

  


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-revolution



___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: links again]

2006-11-06 Thread John Craig
I've uploaded my first attempt at a plugin for formatting field text 
(including links).  User = Jock_McTartan
I've only tested it a couple of times so far, so make sure your work is 
backed up up if you give it a try!

Feedback welcome  :-)

JC

Timothy Miller wrote:
As you might guess, I'm struggling with this topic -- links. I 
submitted a bz report that probably wasn't a bug. I asked a question 
on the list, thought I understood the helpful replies, but it turns 
out I don't understand very well after all. I've discovered several of 
my own misconceptions along the way. I've been reading the 
instructions as best I can.


Sorry to be a pest, but I've gotta ask somebody, and who else ya gonna 
call?


This time I'll try to ask small questions, one at a time. I have 
several, but they're related. If I understand a few things, I can 
probably figure out the rest.


Here's a basic one.

--Let's say I have several identical words in the same field (maybe 
it's a rather long treatise), each defined as a link, by textStyle, 
and I want each one to do something distinct when clicked.


In other words, is there a way to assign something like



to a specific link in RR? (I commented this example, so you might be 
able to read it in your HTML-enabled email client.)


What I mean is that the link would point to something that doesn't 
actually display in the field, which remains connected to the link, 
even if the link gets moved around. It probably wouldn't be a URL. 
More likely, the not-visible part of the link would be a handler, or a 
few lines of script.


In other, other words, is it possible to get a text link to work kind 
of like a button?


I understand how to do something simple like

on linkClicked theText
 if theText is not empty then revGoURL theText
end linkClicked

But that wouldn't work for the purpose I'm describing because the text 
and format of the links would be identical, so "theText" would also be 
identical.


I'm wondering if there's some way to do this sort of thing without 
referencing the clicked word or chunk function. That would be 
cumbersome, because every time I edited the field, all the chunk 
references would change.


Can someone give me a general idea of how to do it, or where to look 
it up? Or a sketch of a sample script might be helpful.


As I read over my question, I begin to suspect this sort of thing has 
to be exported to some HTML-capable application, like a web browser. 
But, maybe not...


Any assistance will be greatly appreciated. I'm taking my meds now, so 
I won't be querulous  :-)


Tim


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-revolution



___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: links again

2006-11-05 Thread Timothy Miller

Thanks Mark, Sarah, Judy, and others, very much.

I'm afraid I haven't benefited from the sample stacks generously 
offered, because I haven't been able to find them on RevOnLine, but I'm 
working on that, and will soon succeed.


It sounds like the general idea is pretty straightforward. I didn't 
realize the linkText property exists, and that I can set it as I like.


Pending study of the stacks suggested...

How would I set the linkText if I wanted the link to send a message, 
possibly with parameters or global variables, or execute a script?


As I think about it, I suppose that if I give each link a unique 
linkText, I can simply use "if" or "case" statements further up the 
hierarchy to send messages, execute scripts or whatever. Is that the 
right approach? Is there another way? -- Well, there's always another 
way, but is there another standard way?


I'm still a little fuzzy on the HTMLtext.

I know you can export a formatted field as HTML. Is it also possible to 
set the HTMLtext of a chunk in a field, so it displays and behaves 
according to the HTML tags I specify? (I understand RR uses a subset of 
HTML.)


Tim

Judy Perry wrote:

Tim,

You can also check out a simple stack I have explaining how to do this up
on RevOnline in the Education category:  Hyperlinks in Transcript.

HTH,

Judy

  


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: links again

2006-11-05 Thread Wilhelm Sanke

Hi Timothy,

Another addition to the various recommendations and sample stacks you 
have received:


Check out my "HypertextAnnotations" stack (already two years old, but 
still usable) on page "Tools and Samples for Development" of my website




From the text:

"Two versions of "annotations" using "linkclicked" or "clicktext". 
Clicking on words set to "bold" or "link" will display an "annotation" 
field near the word containing additional information (translation, 
definition etc.). The annotated words are defined in a glossary field."


Two different approaches are explained and implemented: One using 
"linktext", "bold", and "clicktext", the other relying on "linktext" and 
"linkclicked".


Regards,

Wilhelm Sanke



___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: links again

2006-11-05 Thread Judy Perry
Tim,

You can also check out a simple stack I have explaining how to do this up
on RevOnline in the Education category:  Hyperlinks in Transcript.

HTH,

Judy

On Sun, 5 Nov 2006, Sarah Reichelt wrote:

> Hi TIm,
>
> Yes there is a way to do what you want, but it is a bit clumsy to
> implement. You need the property called "linkText". However you cannot
> set it using the property inspector, so you have to set it manually,
> either using a button or the message box.
>
> I usually do it by entering the following in the message box,
> selecting the relevant text, then pressing Enter to make the message
> box script happen.
>
> set the textStyle of he selectedText to link
> set the linkText of the selectedText to "http://www.runrev.com";
>
> When I lock the field's text and click on the text that I selected
> before running this script, the linkClicked message will have the
> parameter "http://www.runrev.com";, regardless of the actual text of
> the link.
>
> HTH,
> Sarah
>
>
>
> On 11/5/06, Timothy Miller <[EMAIL PROTECTED]> wrote:
> > As you might guess, I'm struggling with this topic -- links. I submitted
> > a bz report that probably wasn't a bug. I asked a question on the list,
> > thought I understood the helpful replies, but it turns out I don't
> > understand very well after all. I've discovered several of my own
> > misconceptions along the way. I've been reading the instructions as best
> > I can.
> >
> > Sorry to be a pest, but I've gotta ask somebody, and who else ya gonna call?
> >
> > This time I'll try to ask small questions, one at a time. I have
> > several, but they're related. If I understand a few things, I can
> > probably figure out the rest.
> >
> > Here's a basic one.
> >
> > --Let's say I have several identical words in the same field (maybe it's
> > a rather long treatise), each defined as a link, by textStyle, and I
> > want each one to do something distinct when clicked.
> >
> > In other words, is there a way to assign something like
> >
> > 
> >
> > to a specific link in RR? (I commented this example, so you might be
> > able to read it in your HTML-enabled email client.)
> >
> > What I mean is that the link would point to something that doesn't
> > actually display in the field, which remains connected to the link, even
> > if the link gets moved around. It probably wouldn't be a URL. More
> > likely, the not-visible part of the link would be a handler, or a few
> > lines of script.
> >
> > In other, other words, is it possible to get a text link to work kind of
> > like a button?
> >
> > I understand how to do something simple like
> >
> > on linkClicked theText
> >   if theText is not empty then revGoURL theText
> > end linkClicked
> >
> > But that wouldn't work for the purpose I'm describing because the text
> > and format of the links would be identical, so "theText" would also be
> > identical.
> >
> > I'm wondering if there's some way to do this sort of thing without
> > referencing the clicked word or chunk function. That would be
> > cumbersome, because every time I edited the field, all the chunk
> > references would change.
> >
> > Can someone give me a general idea of how to do it, or where to look it
> > up? Or a sketch of a sample script might be helpful.
> >
> > As I read over my question, I begin to suspect this sort of thing has to
> > be exported to some HTML-capable application, like a web browser. But,
> > maybe not...
> >
> > Any assistance will be greatly appreciated. I'm taking my meds now, so I
> > won't be querulous  :-)
> >
> > Tim
> >
> >
> > ___
> > use-revolution mailing list
> > use-revolution@lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your 
> > subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-revolution
> >
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: links again

2006-11-05 Thread Mark Schonewille

Tim,

You can use standard html links such as click here and get the actual link in the  
parameter sent with the linkClicked message.


I have uploaded an example to RevOnline. User space Mark, name of the  
stack is 4Tim. I will remove the stack tomorrow.


Best,

Mark

--

Economy-x-Talk
Consultancy and Software Engineering
http://economy-x-talk.com
http://www.salery.biz

Get your store on-line within minutes with Salery Web Store software.  
Download at http://www.salery.biz


Op 5-nov-2006, om 5:02 heeft Timothy Miller het volgende geschreven:

As you might guess, I'm struggling with this topic -- links. I  
submitted a bz report that probably wasn't a bug. I asked a  
question on the list, thought I understood the helpful replies, but  
it turns out I don't understand very well after all. I've  
discovered several of my own misconceptions along the way. I've  
been reading the instructions as best I can.


Sorry to be a pest, but I've gotta ask somebody, and who else ya  
gonna call?


This time I'll try to ask small questions, one at a time. I have  
several, but they're related. If I understand a few things, I can  
probably figure out the rest.


Here's a basic one.

--Let's say I have several identical words in the same field (maybe  
it's a rather long treatise), each defined as a link, by textStyle,  
and I want each one to do something distinct when clicked.


In other words, is there a way to assign something like




to a specific link in RR? (I commented this example, so you might  
be able to read it in your HTML-enabled email client.)


What I mean is that the link would point to something that doesn't  
actually display in the field, which remains connected to the link,  
even if the link gets moved around. It probably wouldn't be a URL.  
More likely, the not-visible part of the link would be a handler,  
or a few lines of script.


In other, other words, is it possible to get a text link to work  
kind of like a button?


I understand how to do something simple like

on linkClicked theText
 if theText is not empty then revGoURL theText
end linkClicked

But that wouldn't work for the purpose I'm describing because the  
text and format of the links would be identical, so "theText" would  
also be identical.


I'm wondering if there's some way to do this sort of thing without  
referencing the clicked word or chunk function. That would be  
cumbersome, because every time I edited the field, all the chunk  
references would change.


Can someone give me a general idea of how to do it, or where to  
look it up? Or a sketch of a sample script might be helpful.


As I read over my question, I begin to suspect this sort of thing  
has to be exported to some HTML-capable application, like a web  
browser. But, maybe not...


Any assistance will be greatly appreciated. I'm taking my meds now,  
so I won't be querulous  :-)


Tim



___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: links again

2006-11-05 Thread Viktoras Didziulis
Hi Tim, 
you can simply set theHtmltext of field to an html with links and use switch
linkClicked to do anything you need. This sample might help to clear up some
issues: 
execute this in a message box: go url http://ekoinf.net/tests/Links.rev 
 
All the best! 
Viktoras 
---Original Message--- 
 
From: Timothy Miller 
Date: 11/05/06 06:03:08 
To: use-revolution@lists.runrev.com 
Subject: links again 
 
As you might guess, I'm struggling with this topic -- links. I submitted 
a bz report that probably wasn't a bug. I asked a question on the list, 
thought I understood the helpful replies, but it turns out I don't 
understand very well after all. I've discovered several of my own 
misconceptions along the way. I've been reading the instructions as best 
I can. 
 
Sorry to be a pest, but I've gotta ask somebody, and who else ya gonna call?

 
This time I'll try to ask small questions, one at a time. I have 
several, but they're related. If I understand a few things, I can 
probably figure out the rest. 
 
Here's a basic one. 
 
--Let's say I have several identical words in the same field (maybe it's 
a rather long treatise), each defined as a link, by textStyle, and I 
want each one to do something distinct when clicked. 
 
In other words, is there a way to assign something like 
 
 
 
to a specific link in RR? (I commented this example, so you might be 
able to read it in your HTML-enabled email client.) 
 
What I mean is that the link would point to something that doesn't 
actually display in the field, which remains connected to the link, even 
if the link gets moved around. It probably wouldn't be a URL. More 
likely, the not-visible part of the link would be a handler, or a few 
lines of script. 
 
In other, other words, is it possible to get a text link to work kind of 
like a button? 
 
I understand how to do something simple like 
 
on linkClicked theText 
if theText is not empty then revGoURL theText 
end linkClicked 
 
But that wouldn't work for the purpose I'm describing because the text 
and format of the links would be identical, so "theText" would also be 
identical. 
 
I'm wondering if there's some way to do this sort of thing without 
referencing the clicked word or chunk function. That would be 
cumbersome, because every time I edited the field, all the chunk 
references would change. 
 
Can someone give me a general idea of how to do it, or where to look it 
up? Or a sketch of a sample script might be helpful. 
 
As I read over my question, I begin to suspect this sort of thing has to 
be exported to some HTML-capable application, like a web browser. But, 
maybe not... 
 
Any assistance will be greatly appreciated. I'm taking my meds now, so I 
won't be querulous :-) 
 
Tim 
 
 
___ 
use-revolution mailing list 
use-revolution@lists.runrev.com 
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences: 
http://lists.runrev.com/mailman/listinfo/use-revolution
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: links again

2006-11-04 Thread Sarah Reichelt

Hi TIm,

Yes there is a way to do what you want, but it is a bit clumsy to
implement. You need the property called "linkText". However you cannot
set it using the property inspector, so you have to set it manually,
either using a button or the message box.

I usually do it by entering the following in the message box,
selecting the relevant text, then pressing Enter to make the message
box script happen.

set the textStyle of he selectedText to link
set the linkText of the selectedText to "http://www.runrev.com";

When I lock the field's text and click on the text that I selected
before running this script, the linkClicked message will have the
parameter "http://www.runrev.com";, regardless of the actual text of
the link.

HTH,
Sarah



On 11/5/06, Timothy Miller <[EMAIL PROTECTED]> wrote:

As you might guess, I'm struggling with this topic -- links. I submitted
a bz report that probably wasn't a bug. I asked a question on the list,
thought I understood the helpful replies, but it turns out I don't
understand very well after all. I've discovered several of my own
misconceptions along the way. I've been reading the instructions as best
I can.

Sorry to be a pest, but I've gotta ask somebody, and who else ya gonna call?

This time I'll try to ask small questions, one at a time. I have
several, but they're related. If I understand a few things, I can
probably figure out the rest.

Here's a basic one.

--Let's say I have several identical words in the same field (maybe it's
a rather long treatise), each defined as a link, by textStyle, and I
want each one to do something distinct when clicked.

In other words, is there a way to assign something like



to a specific link in RR? (I commented this example, so you might be
able to read it in your HTML-enabled email client.)

What I mean is that the link would point to something that doesn't
actually display in the field, which remains connected to the link, even
if the link gets moved around. It probably wouldn't be a URL. More
likely, the not-visible part of the link would be a handler, or a few
lines of script.

In other, other words, is it possible to get a text link to work kind of
like a button?

I understand how to do something simple like

on linkClicked theText
  if theText is not empty then revGoURL theText
end linkClicked

But that wouldn't work for the purpose I'm describing because the text
and format of the links would be identical, so "theText" would also be
identical.

I'm wondering if there's some way to do this sort of thing without
referencing the clicked word or chunk function. That would be
cumbersome, because every time I edited the field, all the chunk
references would change.

Can someone give me a general idea of how to do it, or where to look it
up? Or a sketch of a sample script might be helpful.

As I read over my question, I begin to suspect this sort of thing has to
be exported to some HTML-capable application, like a web browser. But,
maybe not...

Any assistance will be greatly appreciated. I'm taking my meds now, so I
won't be querulous  :-)

Tim


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


links again

2006-11-04 Thread Timothy Miller
As you might guess, I'm struggling with this topic -- links. I submitted 
a bz report that probably wasn't a bug. I asked a question on the list, 
thought I understood the helpful replies, but it turns out I don't 
understand very well after all. I've discovered several of my own 
misconceptions along the way. I've been reading the instructions as best 
I can.


Sorry to be a pest, but I've gotta ask somebody, and who else ya gonna call?

This time I'll try to ask small questions, one at a time. I have 
several, but they're related. If I understand a few things, I can 
probably figure out the rest.


Here's a basic one.

--Let's say I have several identical words in the same field (maybe it's 
a rather long treatise), each defined as a link, by textStyle, and I 
want each one to do something distinct when clicked.


In other words, is there a way to assign something like



to a specific link in RR? (I commented this example, so you might be 
able to read it in your HTML-enabled email client.)


What I mean is that the link would point to something that doesn't 
actually display in the field, which remains connected to the link, even 
if the link gets moved around. It probably wouldn't be a URL. More 
likely, the not-visible part of the link would be a handler, or a few 
lines of script.


In other, other words, is it possible to get a text link to work kind of 
like a button?


I understand how to do something simple like

on linkClicked theText
 if theText is not empty then revGoURL theText
end linkClicked

But that wouldn't work for the purpose I'm describing because the text 
and format of the links would be identical, so "theText" would also be 
identical.


I'm wondering if there's some way to do this sort of thing without 
referencing the clicked word or chunk function. That would be 
cumbersome, because every time I edited the field, all the chunk 
references would change.


Can someone give me a general idea of how to do it, or where to look it 
up? Or a sketch of a sample script might be helpful.


As I read over my question, I begin to suspect this sort of thing has to 
be exported to some HTML-capable application, like a web browser. But, 
maybe not...


Any assistance will be greatly appreciated. I'm taking my meds now, so I 
won't be querulous  :-)


Tim


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution