Home > Back-end >  Delphi WebBrowser novice problem solving.
Delphi WebBrowser novice problem solving.

Time:10-04

I use the Delphi generates a Json data, for example: stored in a string variable a, in my scripts in an HTML page also declares a Json, var Json=[] how to carry on the assignment?
I now have a stupid way: in a hidden DIV, write into the DIV innerHTML JSON using Delphi, and then use the script to this DIV innerHTML, eval can use again, but this is too much trouble, and others can see, is there any way in Delphi internal assignment,

Is like this: in the HTML json:=variable a?

For example: I use webbrowser loading is inside an HTML & lt; Div> 123 & lt;/div>
I'm in the webbrowser DocumentComplete
Get the HTML source code and modify successfully & lt; Div> 123456 & lt;/div>
But if I right-click refresh the page once again & lt; Div> 123 & lt;/div>
I think this not reload the page, why not trigger DocumentComplete?
Novice to solve, thank you.

CodePudding user response:

Unknown sleep and complete
  • Related