Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 2 of 2 total
Thread Window.External
Thu, Dec 15 2011 3:40 AMPermanent Link

Max Evans

There are a few my (win32 based) desktop apps that use embedded IE contained within a TForm within the app.
I communicate with the embedded IE instance via capturing window.external events from a url click.  

eg..the url could be  <a href=javascript:window.external.dothis(456)>Click here</a>

Would it be worthwhile or possibile to add "external" as a function or procedure to the TWindow class that can accept unknown parameters ?

So within an EWB app, say on a button click, I could call window.external('dothis(456)')

Thanks for a great product Tim...
Thu, Dec 15 2011 5:08 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Max,

<< There are a few my (win32 based) desktop apps that use embedded IE
contained within a TForm within the app. I communicate with the embedded IE
instance via capturing window.external events from a url click.

eg..the url could be  <a href=javascript:window.external.dothis(456)>Click
here</a>

Would it be worthwhile or possibile to add "external" as a function or
procedure to the TWindow class that can accept unknown parameters ? >>

Hmm, the unknown parameters bit is tough right now, since the compiler won't
allow it.  Something like this will most likely require variant support,
which isn't very hard to do and could be added rather easily.

--
Tim Young
Elevate Software
www.elevatesoft.com

Image