Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > Mac IE ternary operator?

Reply
Thread Tools

Mac IE ternary operator?

 
 
Bob Gregory
Guest
Posts: n/a
 
      10-27-2004
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:alert(true?"Yes":"No"); gave an
alert when pasted into the address bar and he's reported that it does
not.
javascript:alert("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
 
Reply With Quote
 
 
 
 
Philip Ronan
Guest
Posts: n/a
 
      10-27-2004
Bob Gregory wrote:

> javascript:alert(true?"Yes":"No");


Works OK for me. (IE 5.1/Mac)

--
Philip Ronan

(Please remove the "z"s if replying by email)


 
Reply With Quote
 
 
 
 
Fred Oz
Guest
Posts: n/a
 
      10-27-2004
Bob Gregory wrote:
[snip]
> I asked him to check that javascript:alert(true?"Yes":"No"); gave an
> alert when pasted into the address bar and he's reported that it does
> not.


Gives an alert with "Yes"

> javascript:alert("someString"); works quite happily.


Gives an alert with "someString"

Tested in IE for Mac 5.2.2 (5010.1)

Fred.
 
Reply With Quote
 
Bob Gregory
Guest
Posts: n/a
 
      10-28-2004
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
 
Reply With Quote
 
Ian Sedwell
Guest
Posts: n/a
 
      11-02-2004
Hi Bob

I've just tried it on MSIE 5.2.2 on MacOS 10.2.8 and
"javascript:alert(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
, "Bob Gregory"
<> wrote:

> 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:alert(true?"Yes":"No"); gave an
> alert when pasted into the address bar and he's reported that it does
> not.
> javascript:alert("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


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
B+ Tree versus Ternary Search Tree Ramkumar Menon Java 2 08-16-2005 08:13 PM
B+ Tree versus Ternary Search Tree Ramkumar Menon Java 1 08-16-2005 09:46 AM
B+ Tree versus Ternary Search Tree Ramkumar Menon Java 0 08-16-2005 09:01 AM
ternary trouble in datalist/repeater Darren ASP .Net 2 08-13-2004 04:12 PM
ternary operator error Jacob Java 12 07-02-2003 07:12 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57