Mac IE ternary operator?

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

    Mac IE ternary operator?

    Hi all,

    I don't actually have a mac with which to test this, but I'm informed
    by a colleague that one of my scripts has failed in IE on the Mac;
    endless twiddling seems to point to the ternary operator as culprit.

    I asked him to check that javascript:aler t(true?"Yes":"N o"); gave an
    alert when pasted into the address bar and he's reported that it does
    not.
    javascript:aler t("someString") ; works quite happily.

    Can anyone confirm this bug or help narrow it to a single version? It
    seems a fairly large bug to have gone so under-reported, gooooogling
    for "mac ie ternary operator" doesn't return anything helpful.

    Cheers,

    -- Bob Gregory
  • Philip Ronan

    #2
    Re: Mac IE ternary operator?

    Bob Gregory wrote:
    [color=blue]
    > javascript:aler t(true?"Yes":"N o");[/color]

    Works OK for me. (IE 5.1/Mac)

    --
    Philip Ronan
    phil.ronanzzz@v irgin.net
    (Please remove the "z"s if replying by email)


    Comment

    • Fred Oz

      #3
      Re: Mac IE ternary operator?

      Bob Gregory wrote:
      [snip][color=blue]
      > I asked him to check that javascript:aler t(true?"Yes":"N o"); gave an
      > alert when pasted into the address bar and he's reported that it does
      > not.[/color]

      Gives an alert with "Yes"
      [color=blue]
      > javascript:aler t("someString") ; works quite happily.[/color]

      Gives an alert with "someString "

      Tested in IE for Mac 5.2.2 (5010.1)

      Fred.

      Comment

      • Bob Gregory

        #4
        Re: Mac IE ternary operator?

        Hmmm, cheers for the help on this one. I contacted my colleague again
        to get a version number and, in his words: "We've recently run the Mac
        Software update and it's updated the OS as well as lots of other
        stuff. Whatever has happened, it's now bloody working so we may never
        know what happened."

        So I can't nail this down to a single version of /anything/, but it's
        something to keep an eye out for.

        Cheers,

        -- Bob Gregory

        Comment

        • Ian Sedwell

          #5
          Re: Mac IE ternary operator?

          Hi Bob

          I've just tried it on MSIE 5.2.2 on MacOS 10.2.8 and
          "javascript:ale rt(true?"Yes":" No")" works just fine.

          Maybe if you posted more of the code segment that is giving the grief?

          All the best

          Ian


          On 2004/10/27 12:52, in article
          aba9c4c4.041027 0452.513c8e0b@p osting.google.c om, "Bob Gregory"
          <bobgregory@pps ltd.net> wrote:
          [color=blue]
          > Hi all,
          >
          > I don't actually have a mac with which to test this, but I'm informed
          > by a colleague that one of my scripts has failed in IE on the Mac;
          > endless twiddling seems to point to the ternary operator as culprit.
          >
          > I asked him to check that javascript:aler t(true?"Yes":"N o"); gave an
          > alert when pasted into the address bar and he's reported that it does
          > not.
          > javascript:aler t("someString") ; works quite happily.
          >
          > Can anyone confirm this bug or help narrow it to a single version? It
          > seems a fairly large bug to have gone so under-reported, gooooogling
          > for "mac ie ternary operator" doesn't return anything helpful.
          >
          > Cheers,
          >
          > -- Bob Gregory[/color]

          Comment

          Working...