Fscommand in IE with dynamic publishing

From Birnam Designs Wiki

Jump to: navigation, search

Replace the normal VBScript->Javascript catch block:

<SCRIPT LANGUAGE=VBScript>
on error resume next
Sub myCom_FSCommand(ByVal command, ByVal args)
  call myCom_DoFSCommand(command, args)
end sub
</SCRIPT>

with:

<!--[if IE]>
<script type="text/javascript" event="FSCommand(command,args)" for="myCom">
  myCom_DoFSCommand(command, args);
</script>
<![endif]-->
Share This!
This page was last modified on 11 February 2010, at 19:48. This page has been accessed 700 times.