Re: access DOM in browser widget?

2021-11-22 Thread Tim Selander via use-livecode
Sorry to pick up this thread half a year later, but I am 
searching for an answer to a related problem.


On the LiveCode Forums I learned that if the page is loaded in a 
Browser widget on the desktop version of LC, you can [get the 
htmltext of widget "browser"] and get the info JS provides that 
is not part of the page's HTML source code. (In my case, I want 
the number of plays of a track on Soundcloud.)


But I would like to get at this JS/DOM info through an LC Server 
script running on my on-rev.com server -- no browser widget there.


Does anyone know how to get the JS/DOM generated text from a web 
page using LC Server?


Any help appreciated!

Tim Selander
Tokyo, Japan



On 2021.04.29 3:44, Tore Nilsen via use-livecode wrote:

Have you had a look at "do in widget" in the Dictionary? You can actually 
perform JavaScript from LC on content in the browser widget.

Best regards
Tore


28. apr. 2021 kl. 20:33 skrev Ben Rubinstein via use-livecode 
:


Thanks for responding Tom


But if yoiu need any more of a direct way accessing itI don't know of one.

Yes, that's what I'm after: to have a browser widget in a LiveCode stack, and 
be able to access the DOM (not the htmlText) in LiveCode script.

It's not my page so I can't add javascript to it.

Does anyone know if this is possible?

TIA,

Ben

___
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



___
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: access DOM in browser widget?

2021-04-28 Thread Tore Nilsen via use-livecode
Have you had a look at "do in widget" in the Dictionary? You can actually 
perform JavaScript from LC on content in the browser widget.

Best regards
Tore

> 28. apr. 2021 kl. 20:33 skrev Ben Rubinstein via use-livecode 
> :
> 
> 
> Thanks for responding Tom
> 
>> But if yoiu need any more of a direct way accessing itI don't know of 
>> one.
> Yes, that's what I'm after: to have a browser widget in a LiveCode stack, and 
> be able to access the DOM (not the htmlText) in LiveCode script.
> 
> It's not my page so I can't add javascript to it.
> 
> Does anyone know if this is possible?
> 
> TIA,
> 
> Ben
> 
> ___
> 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


Re: access DOM in browser widget?

2021-04-28 Thread Ben Rubinstein via use-livecode



Thanks for responding Tom

But if yoiu need any more of a direct way accessing itI don't know of 
one.
Yes, that's what I'm after: to have a browser widget in a LiveCode stack, and 
be able to access the DOM (not the htmlText) in LiveCode script.


It's not my page so I can't add javascript to it.

Does anyone know if this is possible?

TIA,

Ben

___
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: access DOM in browser widget?

2021-04-28 Thread Tom Glod via use-livecode
Hi Ben.. You can run JS in the browser widget.

Found this 

https://forums.livecode.com/viewtopic.php?t=31730

But if yoiu need any more of a direct way accessing itI don't know of
one.


On Wed, Apr 28, 2021 at 1:34 PM Ben Rubinstein via use-livecode <
use-livecode@lists.runrev.com> wrote:

>
> Is there a way to access the DOM from the browser widget?
>
> TIA,
>
> Ben
>
> ___
> 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
>


-- 
Tom Glod
Founder & Developer
MakeShyft R.D.A (www.makeshyft.com)
Mobile:647.562.9411
___
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


access DOM in browser widget?

2021-04-28 Thread Ben Rubinstein via use-livecode



Is there a way to access the DOM from the browser widget?

TIA,

Ben

___
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