Acid
09-26-2005, 03:34 PM
I'm using the JavaScript Shell.Execute command to run applications from my organisations intranet when a link is clicked on. Our default email client is Novell GroupWise. The idea is I would like to create something that has the same kind of effect as a mailto: hyperlink. So rather than GroupWise simply opening, it opens and brings up a send email window with the email address entered for you like how Outlook does when you click a mailto: link as naturally you cannot set your email client to GroupWise in IE. The code I have so far is:
<script type="text/javascript">
var idShell = new ActiveXObject("Shell.Application");
function LaunchGroupWise() {
idShell.ShellExecute("GrpWise.exe");
}
</script>
<a href="javascript:void(0)" onClick="LaunchGroupWise();" title="Launch Novell GroupWise">GroupWise</a>What I was hoping is possible is that there is some type of send email parameter that could be added to automatically populate the To field of the email such as:
<script type="text/javascript">
var idShell = new ActiveXObject("Shell.Application");
function LaunchGroupWise() {
idShell.ShellExecute("GrpWise.exe", "", "mailto:some@one.com");
}
</script>
<a href="javascript:void(0)" onClick="LaunchGroupWise();" title="Launch Novell GroupWise">GroupWise</a>Naturally the above doesn't work, but does anyone know of something which might make this possible?
<script type="text/javascript">
var idShell = new ActiveXObject("Shell.Application");
function LaunchGroupWise() {
idShell.ShellExecute("GrpWise.exe");
}
</script>
<a href="javascript:void(0)" onClick="LaunchGroupWise();" title="Launch Novell GroupWise">GroupWise</a>What I was hoping is possible is that there is some type of send email parameter that could be added to automatically populate the To field of the email such as:
<script type="text/javascript">
var idShell = new ActiveXObject("Shell.Application");
function LaunchGroupWise() {
idShell.ShellExecute("GrpWise.exe", "", "mailto:some@one.com");
}
</script>
<a href="javascript:void(0)" onClick="LaunchGroupWise();" title="Launch Novell GroupWise">GroupWise</a>Naturally the above doesn't work, but does anyone know of something which might make this possible?