Giter Club home page Giter Club logo

Comments (8)

PioneerDk avatar PioneerDk commented on June 30, 2024

Operating dcef3 directly with JS.

from dcef3.

lovemit avatar lovemit commented on June 30, 2024

@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.

PioneerDk avatar PioneerDk commented on June 30, 2024

No, you log in successfully and return the identification code. Let dcef3 access a success page with the successful ID code.

from dcef3.

lovemit avatar lovemit commented on June 30, 2024

@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.

a-sanders avatar a-sanders commented on June 30, 2024

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.

lovemit avatar lovemit commented on June 30, 2024

@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.

a-sanders avatar a-sanders commented on June 30, 2024

Take a look at my gist "How to set and delete cookies using CookieManager of CEF"

from dcef3.

lovemit avatar lovemit commented on June 30, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.