Delphi, EmbeddedWB/TWebbrowser - jQuery not executing

前端 未结 1 633
逝去的感伤
逝去的感伤 2021-01-24 17:35

I am using EmbeddedWB (A TWebbrowser extension) to do like a \"live preview\" of some dynamically generated content.

I am trying to add jQuery into the mix, so I can get

1条回答
  •  遥遥无期
    2021-01-24 18:16

    It seems to work if you use correct URL for the jquery.js file:

    
    
    

    or a relative path, you can also omit the file:// protocol:

    
    

    The above works when you load the HTML from a file. The question is however, if content from memory and javascript from file system is not considered crossing a security context boundary and rejected for that reason by the embedded browser. In that case, embedding jquery directly in the HTML content (using the

提交回复
热议问题