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


<p>TEST</p>

<p><a 
href:"https://livecode.dermattes.de/uselist/br/JustHello.livecode";>https://livecode.dermattes.de/uselist/br/JustHello.livecode</a></p>

<p>TEST2</p>



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 
<https://livecode.dermattes.de/uselist/br/br.livecode> 


Regards,

Matthias



> Am 20.08.2021 um 03:41 schrieb Sannyasin Brahmanathaswami via use-livecode 
> <use-livecode@lists.runrev.com>:
> 
> 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

Reply via email to