sending javascript to browser widget?

Bob Sneidar bobsneidar at iotecdigital.com
Tue Jul 31 20:56:24 CEST 2018


I'm going to say that Javascript is written to prevent you from doing that. Javascript sandboxes their commands and functions so that only certain ones are visible from outside the applications "sandbox". They call it Scope and Context. 

Here is a good article on it which helped me understand why I could not access certain commands and functions outside Acrobat: 

http://ryanmorr.com/understanding-scope-and-context-in-javascript/

If you can set a username and password in a web page javascript control, then you can probably GET them too. The reason why plugins like password managers work is because they operate inside the context of the browser application itself. Of course, all of my posts are subject to scrutiny and correction. 

Bob S


> On Jul 31, 2018, at 11:03 , Tom Glod via use-livecode <use-livecode at lists.runrev.com> wrote:
> 
> Hi Peeps, can anyone clarify for me if its possible to have a browser
> widget on a card and send javascript commands to it?
> 
> Can I for example put text (login & password) into fields on the page if I
> know the names of the field controls?
> 
> Can I trigger the login button?
> 
> Looking for workarounds for the lack of cookie support in the browser
> widget. (so i'm trying to do auto login)
> 
> Unless it does support cookies?!?!!? Will it ever?
> 
> Thank you.




More information about the use-livecode mailing list