471,075 Members | 1,353 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,075 software developers and data experts.

question about openForm()

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
Jul 23 '05 #1
3 2730
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

Jul 23 '05 #2
Sorry it does work. window.showModalDialog() can open a php page.

Jack
"datactrl" <qu***@tpg.com.au> wrote in message
news:41********@dnews.tpgi.com.au...
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


Jul 23 '05 #3
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
Jul 23 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by nospam_stunter2001 | last post: by
2 posts views Thread by Daniel Hidalgo | last post: by
8 posts views Thread by SBC News Groups | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.