window.open() does not work in mozilla

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

    window.open() does not work in mozilla

    Hi,

    i use window.open to display the result of polls

    window.open('../poll.php?schid= ".$schid."&perm it=1&pollid=".$ dbpoll[1]['poll
    id']."&answ='+opt,' ','menubar=no,w idth=250,height =230');

    it work fine in IE but does not work with firefox, is there error in the
    code?

    Thanks & Regards

    Robert Ngo


  • John Bokma

    #2
    Re: window.open() does not work in mozilla

    "Jorn TK" <jorntk@yahoo.c om> wrote in news:413fcec2_1 @news.tm.net.my :
    [color=blue]
    > Hi,
    >
    > i use window.open to display the result of polls
    >
    > window.open('../poll.php?schid= ".$schid."&perm it=1&pollid=".$ dbpoll[1][
    > 'poll id']."&answ='+opt,' ','menubar=no,w idth=250,height =230');
    >
    > it work fine in IE but does not work with firefox, is there error in
    > the code?[/color]

    You think:

    '../poll.php?schid= ".$schid."&perm it=1&pollid=".$ dbpoll[1]['poll
    id']."&answ='+opt,' ','menubar=no,w idth=250,height =230'

    Is a valid URI?

    Looks like bad PHP or very bad Perl to me...

    --
    John MexIT: http://johnbokma.com/mexit/
    personal page: http://johnbokma.com/
    Experienced programmer available: http://castleamber.com/
    Happy Customers: http://castleamber.com/testimonials.html

    Comment

    • Jorn TK

      #3
      Re: window.open() does not work in mozilla

      i just started working, this script have been created by another developer,
      how to change the url so it work with firefox?

      "John Bokma" <postmaster@cas tleamber.com> wrote in message
      news:Xns955EF10 64D17Bcastleamb er@130.133.1.4. ..[color=blue]
      > "Jorn TK" <jorntk@yahoo.c om> wrote in news:413fcec2_1 @news.tm.net.my :
      >[color=green]
      > > Hi,
      > >
      > > i use window.open to display the result of polls
      > >
      > > window.open('../poll.php?schid= ".$schid."&perm it=1&pollid=".$ dbpoll[1][
      > > 'poll id']."&answ='+opt,' ','menubar=no,w idth=250,height =230');
      > >
      > > it work fine in IE but does not work with firefox, is there error in
      > > the code?[/color]
      >
      > You think:
      >
      > '../poll.php?schid= ".$schid."&perm it=1&pollid=".$ dbpoll[1]['poll
      > id']."&answ='+opt,' ','menubar=no,w idth=250,height =230'
      >
      > Is a valid URI?
      >
      > Looks like bad PHP or very bad Perl to me...
      >
      > --
      > John MexIT: http://johnbokma.com/mexit/
      > personal page: http://johnbokma.com/
      > Experienced programmer available: http://castleamber.com/
      > Happy Customers: http://castleamber.com/testimonials.html[/color]


      Comment

      • Colin McKinnon

        #4
        Re: window.open() does not work in mozilla

        Jorn TK wrote:
        [color=blue]
        > i just started working, this script have been created by another
        > developer, how to change the url so it work with firefox?
        >[/color]

        Use + to concatenate strings in JS.

        Note that window.open will only work in certain contexts within Mozilla
        unless you disable the popup blocker.

        HTH

        C.

        Comment

        • Robert

          #5
          Re: window.open() does not work in mozilla

          In article <413fcec2_1@new s.tm.net.my>, "Jorn TK" <jorntk@yahoo.c om>
          wrote:

          [color=blue]
          > window.open('../poll.php?schid= ".$schid."&perm it=1&pollid=".$ dbpoll[1]['poll
          > id']."&answ='+opt,' ','menubar=no,w idth=250,height =230');
          >[/color]

          Not all of us are familiar with how to program on the server.

          It is best if you go to the client and post the generated source.

          In IE, you can just right click on the page then select view source.
          Post that line here. As a bonus, you will see if your server program is
          generating the line of code you assumed.

          Robert

          Comment

          • Jorn TK

            #6
            Re: window.open() does not work in mozilla

            thanks colin
            "Colin McKinnon" <colin.deleteth is@andthis.mms3 .com> wrote in message
            news:chpagr$ctk $1$8302bc10@new s.demon.co.uk.. .[color=blue]
            > Jorn TK wrote:
            >[color=green]
            > > i just started working, this script have been created by another
            > > developer, how to change the url so it work with firefox?
            > >[/color]
            >
            > Use + to concatenate strings in JS.
            >
            > Note that window.open will only work in certain contexts within Mozilla
            > unless you disable the popup blocker.
            >
            > HTH
            >
            > C.
            >[/color]


            Comment

            Working...