Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Integrating jquery/javacript type UI's into dialog's
#6
Gintaras -

What is the most elegant way to have JavaScript call back into QM from a page that was launched from QM?

Suppose I load a web page in the following way:
Macro Internet Explorer
Code:
Copy      Help
SHDocVw.IWebBrowser2 ie=web("" 9) ;;works on Vista too
ie._setevents("ie_DWebBrowserEvents2")
ie.Navigate("https://www.google.com/")

If this page contained JavaScript (and it's completely under my control) - how can the JavaScript from this page send a message back to QM? The message might be from a UI element event or it might from something listening to the network for an event (a callback from the SignalR protocol).

What would be easy (for me :-) ) would be a COM interface that QM exposed to IE so that from JavaScript I could pass an action and parameter arguments back to QM. I looked at some of the event callbacks but the only one that seemed to get invoked was PropertyChange (BeforeScriptExecute, DocumentComplete, ProgressChange, and CommandStateChange don't seem to get called). But there might be a much more elegant way to do this. Any suggestions appreciated.

Thanks

Sean


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)