question about openForm()

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • datactrl

    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


  • datactrl

    #2
    Re: question about openForm()

    Sorry mistake!
    The method should be window.showModa lDialog() not openForm().

    Jack

    "datactrl" <quals@tpg.com. au> wrote in message
    news:41062d95$1 @dnews.tpgi.com .au...[color=blue]
    > 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[/color]
    you[color=blue]
    > in advance!
    >
    >
    > Jack
    >
    >[/color]


    Comment

    • datactrl

      #3
      Re: question about openForm()

      Sorry it does work. window.showModa lDialog() can open a php page.

      Jack
      "datactrl" <quals@tpg.com. au> wrote in message
      news:410630fb$1 @dnews.tpgi.com .au...[color=blue]
      > Sorry mistake!
      > The method should be window.showModa lDialog() not openForm().
      >
      > Jack
      >
      > "datactrl" <quals@tpg.com. au> wrote in message
      > news:41062d95$1 @dnews.tpgi.com .au...[color=green]
      > > Hi,
      > > Using IE 6
      > > I found it will fail to open a page.php with openForm() method. To open[/color][/color]
      a[color=blue][color=green]
      > > page.htm with openForm() works fine. Is there way to work arround? Thank[/color]
      > you[color=green]
      > > in advance!
      > >
      > >
      > > Jack
      > >
      > >[/color]
      >
      >[/color]


      Comment

      • Grant Wagner

        #4
        Re: question about openForm()

        datactrl wrote:
        [color=blue]
        > Sorry mistake!
        > The method should be window.showModa lDialog() not openForm().
        >
        > Jack
        >
        > "datactrl" <quals@tpg.com. au> wrote in message
        > news:41062d95$1 @dnews.tpgi.com .au...[color=green]
        > > 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[/color]
        > you[color=green]
        > > in advance!
        > >
        > >
        > > Jack[/color][/color]

        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.showModa lDialog() (which is *only* work in
        Internet Explorer).

        --
        Grant Wagner <gwagner@agrico reunited.com>
        comp.lang.javas cript FAQ - http://jibbering.com/faq


        Comment

        Working...