HTML Seite mit JS anzeigen

Post a reply


In an effort to prevent automatic submissions, we require that you complete the following challenge.
Smilies
:D :) ;) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :!: :?: :idea: :| :mrgreen: :geek: :ugeek: :arrow: :angel: :clap: :crazy: :eh: :lolno: :problem: :shh: :shifty: :sick: :silent: :think: :thumbup: :thumbdown: :salute: :wave: :wtf: :yawn: :facepalm: :bravo: :dance: :beard: :morebeard: :xmas: :HeHe: :trollface: :cookie: :rainbow: :monkeysee: :monkeysay: :happybday: :headwall: :offtopic: :superhappy: :terms: :beer:
View more smilies

BBCode is ON
[img] is OFF
[flash] is OFF
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: HTML Seite mit JS anzeigen

HTML Seite mit JS anzeigen

Post by Conny » 26 Jan 2024, 06:59

Hi,

ich habe eine HTML Datei mit JS (diese zeigt einen aktuellen Börsenkurs an)
Diese möchte ich in einem Fenster anzeigen.
Das klappt soweit, bis auf JS. Da meckert er.

Hier meine beiden Scripte:

test.ahk

Code: Select all

#SingleInstance, Force
#NoEnv
SplitPath,A_ahkPath,,Root
Menu,tray,icon,%A_WinDir%\system32\netshell.dll,86

Display_HTML:
Clipboard:=path:=A_WorkingDir . "\test.html"
gui, new
Gui Add, ActiveX, w980 h640 vWB, Shell.Explorer  ; The final parameter is the name of the ActiveX component.

WB.Navigate(Path)  ; This is specific to the web browser control.
Gui Show
testHTML:="" , html_page:="" ;clear variables

return

meine TEST.HTML

Code: Select all

<!-- TradingView Widget BEGIN -->
<div class="tradingview-widget-container" style="height:100%;width:100%">
  <div class="tradingview-widget-container__widget" style="height:calc(100% - 32px);width:100%"></div>
  <div class="tradingview-widget-copyright"><a href="https://de.tradingview.com/" rel="noopener nofollow" target="_blank"><span class="blue-text">Alle Märkte bei TradingView verfolgen</span></a></div>
  <script type="text/javascript" src="https://s3.tradingview.com/external-embedding/embed-widget-advanced-chart.js" async>
  {
  "autosize": true,
  "symbol": "TVC:GOLD",
  "interval": "1",
  "timezone": "Etc/UTC",
  "theme": "light",
  "style": "2",
  "locale": "de_DE",
  "enable_publishing": false,
  "withdateranges": true,
  "allow_symbol_change": true,
  "support_host": "https://www.tradingview.com"
}
  </script>
</div>
<!-- TradingView Widget END -->
Jemand eine Idee was ich machen muss, damit es funktioniert?

Top