datactrl wrote:
Sorry mistake!
The method should be window.showModalDialog() not openForm().
Jack
"datactrl" <qu***@tpg.com.au> wrote in message
news:41********@dnews.tpgi.com.au... Hi,
Using IE 6
I found it will fail to open a page.php with openForm() method. To open a
page.htm with openForm() works fine. Is there way to work arround? Thank
you in advance!
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).
--
Grant Wagner <gw*****@agricoreunited.com>
comp.lang.javascript FAQ -
http://jibbering.com/faq