Page 1 of 1

Manipulate text inside WebGadget

Posted: Wed Nov 30, 2016 12:39 am
by plouf
i am trying to AutoFill a form .
have tried to use getgadgetitemtext/setgadgetitemtext, however it changes path of document (thefore document lost base path)

is there a way to manipulate text inside webgadget without changing path ?

Re: Manipulate text inside WebGadget

Posted: Wed Nov 30, 2016 9:33 am
by RSBasic
You can insert a Javascript code to set text.

Re: Manipulate text inside WebGadget

Posted: Wed Nov 30, 2016 9:51 am
by Mistrel
Interacting with JavaScript is the only way.

Re: Manipulate text inside WebGadget

Posted: Sat Dec 03, 2016 7:28 am
by plouf
Hi and thanks

is there a way to inject javascript code without infecting domain refferer
i mean i have try send a new page (read entire page , inject code, write it back via setgadgetext)

but because page no longer host from original domain, page's javascipt do not work

OR is there alternative way, than webgadget,(another dll) that can do this ?

Re: Manipulate text inside WebGadget

Posted: Sat Dec 03, 2016 7:47 am
by uweb
I think yes. But it is not easy.
May you google "debugging proxy" in the language of your choice.
They a member of the group of transparent proxies.

Example in englisch : https://www.charlesproxy.com/documentat ... s/rewrite/ or http://www.telerik.com/fiddler/web-session-manipulation

JHPJHP did already a lot of the necessary work to do this in PB:

http://www.purebasic.fr/english/viewtop ... 13&t=56696
http://www.purebasic.fr/english/viewtop ... 12&t=60888
http://www.purebasic.fr/english/viewtop ... 12&t=60965