Re: SivaSiva: in htmltext, is there a link to a separate stack?

2021-08-20 Thread Sannyasin Brahmanathaswami via use-livecode
Great! I’ll give it a trial and will get back to you on testing


Svasti Astu – Be Well
Brahmanathaswami

Get SivaSiva.app – It free!
https://www.himalayanacademy.com/view/sivasiva



On 8/20/21, 8:50 AM, "use-livecode"  
wrote:

Matthias:

 > the linkClicked message should be your friend

Me:

... and a text link can do anything LiveCode can do.

It can trigger any code or handlers that you wish,
using the href with any logic or protocol you prefer.

Best wishes,

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


Re: SivaSiva: in htmltext, is there a link to a separate stack?

2021-08-20 Thread Curry Kenworthy via use-livecode


Sannyasin:

> So, in the htmltext
> set the htmltext of fld "helpField" to tNews
> in there a “link” that would take you, by example, to a stack called
> card “listen-collections” with in “listen.livecode” ??

Matthias:

> the linkClicked message should be your friend

Me:

... and a text link can do anything LiveCode can do.

It can trigger any code or handlers that you wish,
using the href with any logic or protocol you prefer.

Best wishes,

Curry Kenworthy

Custom Software Development
"Better Methods, Better Results"
LiveCode Training and Consulting
http://livecodeconsulting.com/

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


Re: SivaSiva: in htmltext, is there a link to a separate stack?

2021-08-20 Thread matthias rebbe via use-livecode
BR,

i am not sure about the last part of your post 

in there... to a stack called  card "listen-collections" with 
...


If i understand it right so far, you want to open/load a stack when clicking on 
a link in an LC field, right?

If so,

then the linkClicked message should be your friend.

Lets say the htmltext of a field looks like this


TEST

https://livecode.dermattes.de/uselist/br/JustHello.livecode";>https://livecode.dermattes.de/uselist/br/JustHello.livecode

TEST2



Then the following script would allow to load the stack JustHello.livecode when 
clicking on the html link.

on linkClicked pLink

if plink ends with ".livecode"

then

go stack URL plink

else

launch URL pLink

end if

end linkClicked



I've uploaded a sample stack for you. You can downloaded it here  
https://livecode.dermattes.de/uselist/br/br.livecode 
 


Regards,

Matthias



> Am 20.08.2021 um 03:41 schrieb Sannyasin Brahmanathaswami via use-livecode 
> :
> 
> In SivaSiva, we are going to another stack,
> 
> On mouseup
>portal_GoStack ("Siva-Siva-Portal")
> end mouseup
> 
> in a lib_SivaSivaPortal we have this handle:
> 
> command portal_GoStack cardOrStackObject
>   [snip]
>   put the short name of this stack into oStackName
>   go cardOrStackObject
> end portal_GoStack
> 
> Now, in case of
> 
> Siva-Siva-Portal.livecode
> 
> On mouseup
> put the short name of the target into tTarget
> switch tTarget
> 
> case "News"
> put url ("file:"& path_Documents()& "assets/info/siva-app-news.html") into 
> tNews
> set the htmltext of fld "helpField" to tNews
> 
> 
> So, in the htmltext
> 
> set the htmltext of fld "helpField" to tNews
> 
> in there a “link” that would take you, by example, to a stack called
> 
> card “listen-collections” with in “listen.livecode”
> 
> ??
> 
> BR
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

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


SivaSiva: in htmltext, is there a link to a separate stack?

2021-08-19 Thread Sannyasin Brahmanathaswami via use-livecode
In SivaSiva, we are going to another stack,

On mouseup
portal_GoStack ("Siva-Siva-Portal")
end mouseup

in a lib_SivaSivaPortal we have this handle:

command portal_GoStack cardOrStackObject
   [snip]
   put the short name of this stack into oStackName
   go cardOrStackObject
end portal_GoStack

Now, in case of

Siva-Siva-Portal.livecode

On mouseup
put the short name of the target into tTarget
switch tTarget

case "News"
put url ("file:"& path_Documents()& "assets/info/siva-app-news.html") into tNews
set the htmltext of fld "helpField" to tNews


So, in the htmltext

set the htmltext of fld "helpField" to tNews

in there a “link” that would take you, by example, to a stack called

card “listen-collections” with in “listen.livecode”

??

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