473,735 Members | 1,992 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

e.layerX problem on Macintosh browsers

I have developed a page with javascript which has a filmstrip look-
alike bar and a slideshow:
http://celtecbe.apache02.hostbasket....dia.php?id=268

It uses a "onmousemov e" event, which controls the strip's scrolling
according the mouse position.

This strip seems to work just fine on IE 6, IE 7, Opera, Firefox and
Safari for Windows. However, it's not working properly on Macintosh
platform browsers (Tested on Safari and Firefox).

I'm especially astonished that the OS platform is interfering with
this, meaning that it works perfectly in FF on windows, but not on
Mac.

Since I don't own a macintosh, it's really difficult to solve this
problem. Some help is greatly appreciated.

Kind regards,
Mathew
Oct 24 '08 #1
16 2002
Mathieu Maes wrote:
I have developed a page with javascript which has a filmstrip look-
alike bar and a slideshow:
There is no "javascript ".
http://celtecbe.apache02.hostbasket....dia.php?id=268

It uses a "onmousemov e" event, which controls the strip's scrolling
according the mouse position.
That's a `mousemove' event; `onmousemove' is the name of this event's
handler attribute.
This strip seems to work just fine on IE 6, IE 7, Opera, Firefox and
Safari for Windows. However, it's not working properly on Macintosh
platform browsers (Tested on Safari and Firefox).
[...]
Since I don't own a macintosh, it's really difficult to solve this
problem. Some help is greatly appreciated.
Your markup is far from being Valid in the first place. Don't use XHTML if
you don't know what you are doing.

<http://validator.w3.or g/check?uri=http://celtecbe.apache 02.hostbasket.c om/pdw/media.php?id=26 8&ss=1;verbose= 1>
HTH

PointedEars
--
realism: HTML 4.01 Strict
evangelism: XHTML 1.0 Strict
madness: XHTML 1.1 as application/xhtml+xml
-- Bjoern Hoehrmann
Oct 24 '08 #2
On 2008-10-24 20:49, Thomas 'PointedEars' Lahn wrote:
>I have developed a page with javascript which has a filmstrip look-
alike bar and a slideshow:

There is no "javascript ".
Wait, what now? I thought that in this group (comp.lang.*jav ascript*)
that was the most popular, or even "recommende d", variant of saying "an
unspecified implementation of ECMAScript in a browser environment".

I don't mean to start this discussion all over again, but after the
latest thread concerning this topic, I've been using the "javascript "
spelling here, even though I personally don't like it, because it's been
promoted in the FAQ and because it seems to be the majority opinion.

You've very recently accused another poster of splitting hairs, and now
you object to the use of "javascript "? Well what else should the OP call
it, in your opinion?
>It uses a "onmousemov e" event, which controls the strip's scrolling
according the mouse position.

That's a `mousemove' event; `onmousemove' is the name of this event's
handler attribute.
More hair-splitting. It's perfectly obvious what xdevel1999 was
referring to.
Your markup is far from being Valid in the first place.
ACK.
Don't use XHTML if you don't know what you are doing.
HTH
I sincerely doubt that helped anybody.

<side note>
Honestly, sometimes I wonder if you write your replies just to annoy and
infuriate the persons who asked the questions. In this specific case, an
appropriate and helpful reply would have been something like "check if
the problem still exists when you use valid XHTML". If you know anything
about why the problem appears to be Mac-specific, why didn't you mention
it? If you don't have a clue, why even bother to answer?
</>
- Conrad
Oct 25 '08 #3
There is no "javascript ".
>
That's a `mousemove' event; `onmousemove' is the name of this event's
handler attribute.
>
Your markup is far from being Valid in the first place. *Don't use XHTML if
you don't know what you are doing.
Thanks for those far from ontopic (but valid) remarks.
Oct 25 '08 #4
Mathieu Maes wrote:
>There is no "javascript ".
[...]
That's a `mousemove' event; `onmousemove' is the name of this event's
handler attribute.
[...]
Your markup is far from being Valid in the first place. Don't use XHTML if
you don't know what you are doing.

Thanks for those far from ontopic (but valid) remarks.
Those remarks are all very on-topic.

1. You are dealing with several ECMAScript implementations which behavior
differs from one another despite their similarities.

2. There is a difference between event, event handler, and event listener.

3. You cannot expect a DOM-related script to work properly from within or
on invalid markup.

Now either get yourself informed and learn to quote, or go away, please.
PointedEars
--
var bugRiddenCrashP ronePieceOfJunk = (
navigator.userA gent.indexOf('M SIE 5') != -1
&& navigator.userA gent.indexOf('M ac') != -1
) // Plone, register_functi on.js:16
Oct 26 '08 #5
Can't help re Mac, but you may find this useful. W3C has defined a
nice, clean opacity treatment. Just set element.style.o pacity to a
value between 0 and 1.

-------------------------------------------------

// set the opacity for different browsers
// Konqueror had, then lost, opacity capability
function setOpacity( opacity, id ) {
/* Stuff like this is vital to know and takes forever to ferret
out.
Thanks, brainerror. */

if ( opacity < 0 ) opacity = 0;
if ( opacity 1 ) opacity = 1;

object = document.getEle mentById( id )

if ( object && object.style ) {
var style_ = object.style;

style_.opacity = opacity;// most modern browsers
style_.MozOpaci ty = opacity; // original Mozilla
style_.KhtmlOpa city = opacity; // older Konqueror, Safari
style_.filter = "alpha(opacity= " + (100*opacity) + ")"; //
guess who
}

} // end of setOpacity()

Oct 26 '08 #6
On Oct 24, 7:15*am, Mathieu Maes <mathieu.m...@g mail.comwrote:
I have developed a page with javascript which has a filmstrip look-
alike bar and a slideshow:http://celtecbe.apache02.hostbasket....dia.php?id=268

It uses a "onmousemov e" event, which controls the strip's scrolling
according the mouse position.

This strip seems to work just fine on IE 6, IE 7, Opera, Firefox and
Safari for Windows. However, it's not working properly on Macintosh
platform browsers (Tested on Safari and Firefox).

I'm especially astonished that the OS platform is interfering with
The OS platform is not interfering. You have done something wrong and
it just happened to work in the five Windows browsers tested.
this, meaning that it works perfectly in FF on windows, but not on
Mac.
You should elaborate on that.
Oct 27 '08 #7
I managed to implement a workaround in the previously given address.

I used event.pageX instead of event.layerX. pageX seems to work just
fine if I simply extract the left margin from the returned value.
However, this is not a solution. I've been getting this
"script" (whatever you wish to call it) to work on a centered page,
where the pageX value can't be used for this purpose.

An example:
http://www.kalamu.be/nl/portfolio/bedrijfscommunicatie

Anyone here who could help me find a workaround ? Since I don't own a
mac (yes yes, boohoo, shame on me) it's very hard for me to do tests.

Kind regards,
Mathew
Oct 27 '08 #8
In comp.lang.javas cript message <49************ **@PointedEars. de>, Sun,
26 Oct 2008 11:41:15, Thomas 'PointedEars' Lahn <Po*********@we b.de>
posted:
>Mathieu Maes wrote:
>Now either get yourself informed and learn to quote, or go away, please.
Mathieu : Ignore the rudeness of the psychologically abnormal. He is
not representative of the rest of us, with one obvious possible
exception.

--
(c) John Stockton, Surrey, UK. ?@merlyn.demon. co.uk Turnpike v6.05 MIME.
Web <URL:http://www.merlyn.demo n.co.uk/- FAQish topics, acronyms, & links.
Proper <= 4-line sig. separator as above, a line exactly "-- " (SonOfRFC1036)
Do not Mail News to me. Before a reply, quote with ">" or "" (SonOfRFC1036)
Oct 27 '08 #9
I'm especially astonished that the OS platform is interfering with

The OS platform is not interfering. *You have done something wrong and
it just happened to work in the five Windows browsers tested.
this, meaning that it works perfectly in FF on windows, but not on
Mac.

You should elaborate on that.
The above script works fine on Firefox for windows, but not on Firefox
for mac. I meant to say that strangely enough there's a difference in
behavior between the PC version and the Mac version, even though (as
far as I know).
I've also made the page valid XHTML. Can anyone check if this has made
any difference ?
http://celtecbe.apache02.hostbasket....dia.php?id=289
Oct 28 '08 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
11913
by: Charles \Stretch\ Ledford | last post by:
Greetings, all. I'm trying to access a web page on my Macintosh, running OS-X. Using both IE and Safari browsers, I get the following message: "The Java Virtual Machine (JVM) installed on this system is not supported. JVM is required to display reports." Can anyone point me to a place where I can download JVM for IE or Safari for Macintosh OS-X?
5
2789
by: Mark Werner | last post by:
I'd like some suggestions on Macintosh software for creating one's own web page. Any help? Thanks!
1
1316
by: Jon Angel | last post by:
In the absence of MS IE for the Mac, does anyone have experience with available browsers that might allow Macintosh users to access an existing C# ..NET application? -- Jon Angel HHS (many Mac users at NIH)
0
937
by: Dave | last post by:
The public site I maintain is gathering the following 500 error: "The viewstate is invalid for this page and might be corrupted" Strangely enough, the only users seeing this error are Macintosh users, using IE. The problem is not isloated to a single page, it seems to be happening on any page, but not necessarily every page for that user. In some cases it is clear that the user was getting around fine (they were logged in as members to...
2
1825
by: Max Metral | last post by:
I get sporadic viewstate errors from Macintosh browsers. I get mailed the form values when this happens, and it appears that the problem is the encoding of the POST value from the browser. Something like: __EVENTTARGET=&__EVENTARGUMENT=&__VIEWSTATE=dDwxOTk2NDc2Nzk0OztsPFQ<more stuff cut out>hM%3d&T%3aH%3aR%3aAToken=&T%3aH.... As you may see, the arguments after viewstate are just a mess. The browser seems to be escaping stuff it...
0
918
by: Sacha Vieux-Roy | last post by:
I implemented several web reports using crystalreports in visual studio.Net. They work fine on windows browsers. On mac browsers such as Safari the layout of the report is all messed up. What can I do to make the reports appear correctly on Mac browsers such as safari?
7
1250
by: Jack | last post by:
Hello: We have a customer whose stuff are using Macintosh, and we just created an asp.net web application in windows 2003 server, but we met some strange problems when they visit the application, so I wonder are there any known issues and solutions about this? Thanks in advance! Jack
0
1133
by: Micah N | last post by:
Greetings, I have not confirmed or seen this myself, but I have been told that the ASP.NET 2.0 Menu Control is not working properly under Mac OS on IE and I guess Safari browsers. The issue described to me is that the menu control rendered links, which I have as image links and bound from a sitemap, do not take the user to the specified page. Does anyone know if the Menu control supports all of the adaptive rendering on Macintosh...
9
1992
by: dreamamit2001 | last post by:
Hi, I am new user to ASP.NET2.0? I would like to know can Macintosh users able to access ASP.NET 2.0 site ? I also want to know what are the features of ASP.NET2.0 which are not supported for Mancintosh pcs? what are the workarounds for them? Please guide me if anybody has accessed ASP.NET2.0 from Macintosh Pc.
0
8964
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8786
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9466
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9201
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8202
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6747
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6049
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
2
2740
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2190
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.