/    Sign up×
Community /Pin to ProfileBookmark

Is Windows PostMessage Possible w/JS?

I will be updating a MySql table via PHP and have to alert an executable app somehow or other. I thought about sending a Windows message (PostMessage API) from MySql but that doesn’t seem possible. PHP also doesn’t seem to be able to do that. Can it be done from Javascript?

Or does anyone have any other ideas how I can alert the executable when a MySql table’s contents change? I’ve also posted on their forum.

I am running Windows XP.

Thanks,
+Les

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@MrNobodyDec 29.2008 — It can't be done from an Internet-based web page, because of security between the Internet zone and the local/intranet zone, but it can be done from a locally-executed HTML page. I can only advise you on such use in IE, though. In IE, you can instantiate the Windows Script Host, from JScript, in order to interact with your local network. Some examples:

var net = new ActiveXObject("WScript.Network");

var shell = new ActiveXObject("WScript.Shell");

http://msdn.microsoft.com/en-us/library/98591fh7(VS.85).aspx
×

Success!

Help @lnoll spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.16,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...