datactrl said:
Sorry mistake!
The method should be window.showModalDialog() not openForm().
Jack
The way you serve your pages has no _direct_ impact on the way the client
supports, parses or executes client-side script. PHP simply generates an HTML
document which may or may not contain client-side script. Once that HTML
arrives at the browser it is parsed and the client-side script is (if no errors
are encountered) executed.
Usually the biggest problem with client-side script in programmically generated
HTML is quote mismatches and/or newlines where there shouldn't be any. The
easiest thing to do to trouble shoot a problem like this is to look at the
Javascript console (javascript: typed in the address bar of Gecko-based
browsers or double-click the yellow ! - if there is one - in the lower left
corner of IE) and determine if any client-side errors are occurring. Then View
-> Source of the output produced by the PHP and ensure the client-side script
is correct. Most often you'll find something like:
<script type="text/javascript">
var a = this is a string of text;
</script>
because you did something like:
<script type="text/javascript">
var a = <?php $somevar ?>;
</script>
Without an example of your code, I can't tell you precisely what you are doing
wrong, but simply using PHP to generate the HTML will not affect Internet
Explorer's ability to use window.showModalDialog() (which is *only* work in
Internet Explorer).