using createpopup()

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

    using createpopup()

    if i got no problem with createpopup() function to fill a popup window with
    HTML, i am unable to insert script
    popupBody.inner HTML="<scriptla nguage='javascr ipt'></script>" gives me a "
    non-closed string" error message

    any idea ?
    thanks


  • Dag Sunde

    #2
    Re: using createpopup()

    "cexpert" <christian.expe rt@wanadoo.fr> wrote in message
    news:41c44f4b$0 $9540$8fcfb975@ news.wanadoo.fr ...[color=blue]
    > if i got no problem with createpopup() function to fill a popup window[/color]
    with[color=blue]
    > HTML, i am unable to insert script
    > popupBody.inner HTML="<scriptla nguage='javascr ipt'></script>" gives me a "
    > non-closed string" error message
    >[/color]

    Insert a space in <scriptlanguage ='... to read <script language='...

    --
    Dag.


    Comment

    • cexpert

      #3
      Re: using createpopup()

      thanks for your answer, but it doesnt change the message

      "Dag Sunde" <me@dagsunde.co m> a écrit dans le message de news:
      YjYwd.7367$HA5. 847228@juliett. dax.net...[color=blue]
      > "cexpert" <christian.expe rt@wanadoo.fr> wrote in message
      > news:41c44f4b$0 $9540$8fcfb975@ news.wanadoo.fr ...[color=green]
      > > if i got no problem with createpopup() function to fill a popup window[/color]
      > with[color=green]
      > > HTML, i am unable to insert script
      > > popupBody.inner HTML="<scriptla nguage='javascr ipt'></script>" gives me a[/color][/color]
      "[color=blue][color=green]
      > > non-closed string" error message
      > >[/color]
      >
      > Insert a space in <scriptlanguage ='... to read <script language='...
      >
      > --
      > Dag.
      >
      >[/color]


      Comment

      • Martin Honnen

        #4
        Re: using createpopup()



        cexpert wrote:
        [color=blue]
        > if i got no problem with createpopup() function to fill a popup window with
        > HTML, i am unable to insert script
        > popupBody.inner HTML="<scriptla nguage='javascr ipt'></script>" gives me a "
        > non-closed string" error message[/color]

        Syntactically the following works for me with IE 6:

        var popup = window.createPo pup();
        popup.document. body.innerHTML =
        '<div>' +
        '<script type="text/javascript" defer>function f ()' +
        '{alert(\'Kibol ogy\');}' +
        '<\/script>' +
        '<p onclick="alert( typeof f);">Kibology for all.<\/p>' +
        '<\/div>';
        popup.show(100, 100, 180, 25, document.body);

        however the function is not defined as the alert shows when you click
        the paragraph in the popup.

        I think it is easier and safer to call parent.function Name from your
        code in the popup.
        --

        Martin Honnen

        Comment

        • Richard

          #5
          Re: using createpopup()


          "Dag Sunde" <me@dagsunde.co m> wrote in message
          news:YjYwd.7367 $HA5.847228@jul iett.dax.net...[color=blue]
          > "cexpert" <christian.expe rt@wanadoo.fr> wrote in message
          > news:41c44f4b$0 $9540$8fcfb975@ news.wanadoo.fr ...[color=green]
          > > if i got no problem with createpopup() function to fill a popup window[/color]
          > with[color=green]
          > > HTML, i am unable to insert script
          > > popupBody.inner HTML="<scriptla nguage='javascr ipt'></script>" gives me a[/color][/color]
          "[color=blue][color=green]
          > > non-closed string" error message
          > >[/color]
          >
          > Insert a space in <scriptlanguage ='... to read <script language='...
          >[/color]

          Try using <script = "text/javascript"> method instead.



          Comment

          • Michael Winter

            #6
            Re: using createpopup()

            On Sat, 18 Dec 2004 13:26:06 -0600, Richard <Anonymous@127. 001> wrote:

            [snip]
            [color=blue]
            > <script = "text/javascript"> [...][/color]

            <script type="text/javascript">

            Mike

            --
            Michael Winter
            Replace ".invalid" with ".uk" to reply by e-mail.

            Comment

            Working...