Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / qt / 2009-06

LCLwebkit and javascript

5 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Antonio Sanguigni

Hi all,

I'm try to put a browser into my application migrating from delphi/windows to Lazarus/cross-platform. Of course, with Delphi I used TWebBrowser. Now, on the lazarus mailing list Osvaldo Filho pointed me to lclwebkit. I would like to know if there is a way to activate in this engine cookies and javascritpt that the site I should have to browse has.

Thank you
Antonio

Antonio Sanguigni alias slapshot ---------------------------------------------------------------------- GioveLUG (Linux User Group) - http://www.giovelug.org Edupup (Educational distro) - http://www.pieroni.biz/edupup

Reply by email

Den Jean
to Antonio Sanguigni
am Antonio Sanguigni wrote
activate in this engine cookies and javascritpt that the site I should

javascript: Yes. See lazarus webkit demo
http://lists.lazarus.freepascal.org/pipermail/qt/2009-May/001212.html this reminds me, did not get any feedback from aime2nice, he must be french ;-)
...
QWebSettings_setAttribute(Settings,QWebSettingsJavascriptEnabled,true); ...

cookies:
The binding lacks some calls due to not Qt
typical design of the WebKit headers. Will look into that. Will provide access to save and restore cookies. Do you need more ? For cookie policing see browser demo of Nokia Qt: demos/browser/cookiejar*

regards,

Den Jean

Reply by email

Unknown author
to Den Jean

2009/6/11 Den Jean :

javascript: Yes. See lazarus webkit demo http://lists.lazarus.freepascal.org/pipermail/qt/2009-May/001212.html this reminds me, did not get any feedback from aime2nice, he must be french ;-)

Yes, maybe :)

Show quoted text 9 lines
... QWebSettings_setAttribute(Settings,QWebSettingsJavascriptEnabled,true); ... cookies: ?The binding lacks some calls due to not Qt ?typical design of the WebKit headers. Will look into that. ?Will provide access to save and restore cookies. Do you need more ? ?For cookie policing see browser demo of Nokia Qt: demos/browser/cookiejar*

Thanks for your answer Den. This browser is really cool ! I really don't no what I need to view this website http://www.gruppobuffetti.it . Firefox and other browsers open to me a window request for usid and pw, but I don't know what is neede on the client side to have this window request in qt lclwebkit. Do you have an idea about that ?

Thank you.
Antonio

Antonio Sanguigni alias slapshot ---------------------------------------------------------------------- GioveLUG (Linux User Group) - http://www.giovelug.org Edupup (Educational distro) - http://www.pieroni.biz/edupup -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 270 bytes Desc: OpenPGP digital signature URL: <http://lists.lazarus.freepascal.org/pipermail/qt/attachments/20090612/05100b26/attachment.bin>

Reply by email