Comments (8)
Operating dcef3 directly with JS.
from dcef3.
@PioneerDk My current idea is to use idhttp to login to the web page, and then to display the Login successful page in cef3.Is it possible to use JS?
from dcef3.
No, you log in successfully and return the identification code. Let dcef3 access a success page with the successful ID code.
from dcef3.
@PioneerDk
I don't know what you mean. I hope you can give me a DEMO code for reference.thank you
I have been using IDHTTP login cookies for a long time, and I will give the cookies to webbrowser to access the successful login page, but the Internet explorer browser is not very good for H5, so I want to use CEF in this project.
from dcef3.
If you want to navigate using predefined cookies then you have to use TChromium.CookieManager before LoadUrl/LoadRequest:
Take a look at my code please:
Chromium.CookieManager.SetCookie(fURL,
sCookieName, sCookieValue, sCookieDomain, sCookiePath, sCookieSecure,
False, False, 0.0, Now, 0.0, nil);
Chromium.Browser.MainFrame.LoadUrl(fURL);
from dcef3.
@a-sanders
I did this, but it prompted a memory error.
Do you have the successful case code for setcookie?
Can I refer to it?
Thank you very much!
from dcef3.
Take a look at my gist "How to set and delete cookies using CookieManager of CEF"
from dcef3.
@a-sanders
My friend, I don't know how to thank you, your code perfectly solved my problem.
Thank you very much for your help. I hope to have a better way to contact you and learn about Delphi technology.
from dcef3.
Related Issues (20)
- render command line HOT 1
- error in LoadLibrary call in ceflib.pas if dll is not in same directory as exe HOT 3
- visit large image crash HOT 1
- White screen and lags
- Newer builds compared to the build 1547 seems quite slowly/laggy
- Browser window stealing focus after loading HOT 1
- cef 3.2924.1570 cast_sender.js failed
- How to check which DCEF branch i have installed ? HOT 1
- How send data to <textarea> ?
- TChromium without Chrome installed. HOT 1
- Java plugin support in CEF3
- ceffmx not compatible to fmx HOT 1
- Lost cookie problem HOT 3
- Paste text into TChromiumFMX
- question: call window.external.MyMethod(); from JS HOT 1
- execute javascript
- Not load web.whatsapp.com HOT 1
- Hello everyone, the previous version can set independent cookies for each window through onGetCookieManager, but this time has been deleted in the new version, how can I achieve this problem?
- win64 problem
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dcef3.