delphi - Can TIdHTTP component handle javascript code? -
i using tidhttp component fetch web pages. works fine main page. not retrieve content generated embedded javascript code. example pages allow users add comments via disqus.
here example
in scenario tidhttp.get method not comments down on bottom of page.
is there anyway done indy component or other native component?
i have experimented using twebbrowser ole control. prefer use native delphi code.
idhttp not execute javascripts, idhttp not browser. need introduce javascript executor application execute scripts retrieved html source browser would.
your example displaying google analytics stats... you're trying in application? if so, you're being foolish (without meaning offensive) trying hack using pre-rendered result.
google analytics provides api can harvest information using http calls. once information retrieved, can display using native delphi components , code in imaginative or original way desire. because ga provides api, there's no excusable reason way appear attempting.
Comments
Post a Comment