473,326 Members | 2,012 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Mac browser problems

i have a problem with Mac browsers. As can be seen from the following HTML
fragment i have some images that should, when clicked, open up a <div>. This
works fine on all window's browsers (that i've been able to test) but is
intermittent on macs. Sometimes the top level img works, sometimes it
doesn't (the exact same page). Usually it doesn't. The nested image never
works. Neither the onclick of the parent <a> tag nor the
onmouseover/onmouseout of the images work.
The script simply makes the div style display inline or none. I've tried
putting an alert inside the script for the onmouseover and sometimes it
fires and sometimes it doesn't.
In my onload code i have also written a little something that programaticaly
sets the onmouseover/out and onclick events and that too sometimes fires
sometimes not. This page has a repeater populated with HTML from a database.
I've checked the embedded HTML and it looks good.
I have two other pages where this same technique is working fine but for the
life of me can't see why this one page is giving me grief.

The doctype is 4.01 transitional and gets a clean bill of health from the
W3C validator. The css style sheet also meets W3C approval.
It's happening on OS9 with ie5.1 and netscape 7 and on OSX with safari and
ie5.2. Thats all i've been able to test so far.
Does anyone have any ideas?
TIA

<table>
<tr>
<td class="cpgGuideline" colspan="2">
<a id="Repeater1__ctl1_HyperLink1" class="cpgEmbeddedLink"
href="chapters.aspx?hypoglycemia.htm"><img alt="" border=0
src="../images/cpgbook.gif"></a>
<span id="Repeater1__ctl1_guide57">In hospitalized patients, a PRN
order for glucagon should be considered for any patient at risk for severe
hypoglycemia (i.e. Requiring insulin and hospitalized for concurrent
illness) when IV access is not readily available <i>[Grade D,
Consensus]</i>.</span>
</td>
</tr>
<tr>
<td class="cpgAddInfo">
Additional Info
<a class="cpgEmbeddedLink"
onclick='flip(document.getElementById("div157"),do cument.getElementById("img
157"))'><IMG class="cpgClickMe" id="img157" onmouseover="mOver(this)"
onmouseout="mOut(this)" alt="" src="../images/cpg_plus1.jpg"
border="0"></a>
<div id="div157" class="cpgAddInfoTable" >
<table>
<tr>
<td></td>
</tr>
<tr>
<td class="cpgAddInfoTitle">Risk factors for severe hypoglycemia
<a class="cpgEmbeddedLink"
onclick='flip(document.getElementById("div219x57") ,document.getElementById("
img219x57"))'><IMG alt="" class="cpgClickMe" id="img219x57"
onmouseover="mOver(this)" onmouseout="mOut(this)"
src="../images/cpg_plus1.jpg" border="0" ></a>
<div id="div219x57" class="cpgAddInfoTable">
<table border=1 style="font-size :8pt; text-align : center" >
<tr>
<td>
Prior episode of severe hypoglycemia
</tr>
<tr>
<td>
Current low A1C (<6.0%)<br>
Hypoglycemia unawareness<br>
Long duration of diabetes<br>
Autonomic neuropathy<br>
Adolescence<br>
Preschool-age children unable to detect and/or treat mild
hypoglycemia on their own
</tr>
</table>
<i>A1C = glycosylated hemoglobin</i>
</div>
</td>
</tr>
</table>
</div>
</td>
<td class="cpgAddInfo">
See Also
<a class="cpgEmbeddedLink" onclick='flip(div357,img357)'>
<IMG alt="" id="img357" onmouseover="mOver(this)"
onmouseout="mOut(this)" src="../images/cpg_plus1.jpg" border="0"
class="cpgClickMe">
</a>
<div id="div357" class="cpgAddInfo">
<table>
<tr>
<td></td>
</tr>
</table>
</div>
</td>
</tr>
<tr>
<td colspan="2"><hr width='100%'></td>
</tr>
</table>
</table>

Jul 20 '05 #1
4 1632
test

"Nigel Gomm" <ni*******@sympatico.ca> wrote in message
news:nH*********************@news20.bellglobal.com ...
i have a problem with Mac browsers. As can be seen from the following HTML
fragment i have some images that should, when clicked, open up a <div>. This works fine on all window's browsers (that i've been able to test) but is
intermittent on macs. Sometimes the top level img works, sometimes it
doesn't (the exact same page). Usually it doesn't. The nested image never
works. Neither the onclick of the parent <a> tag nor the
onmouseover/onmouseout of the images work.
The script simply makes the div style display inline or none. I've tried
putting an alert inside the script for the onmouseover and sometimes it
fires and sometimes it doesn't.
In my onload code i have also written a little something that programaticaly sets the onmouseover/out and onclick events and that too sometimes fires
sometimes not. This page has a repeater populated with HTML from a database. I've checked the embedded HTML and it looks good.
I have two other pages where this same technique is working fine but for the life of me can't see why this one page is giving me grief.

The doctype is 4.01 transitional and gets a clean bill of health from the
W3C validator. The css style sheet also meets W3C approval.
It's happening on OS9 with ie5.1 and netscape 7 and on OSX with safari and ie5.2. Thats all i've been able to test so far.
Does anyone have any ideas?
TIA

<table>
<tr>
<td class="cpgGuideline" colspan="2">
<a id="Repeater1__ctl1_HyperLink1" class="cpgEmbeddedLink"
href="chapters.aspx?hypoglycemia.htm"><img alt="" border=0
src="../images/cpgbook.gif"></a>
<span id="Repeater1__ctl1_guide57">In hospitalized patients, a PRN order for glucagon should be considered for any patient at risk for severe hypoglycemia (i.e. Requiring insulin and hospitalized for concurrent
illness) when IV access is not readily available <i>[Grade D,
Consensus]</i>.</span>
</td>
</tr>
<tr>
<td class="cpgAddInfo">
Additional Info
<a class="cpgEmbeddedLink"
onclick='flip(document.getElementById("div157"),do cument.getElementById("img 157"))'><IMG class="cpgClickMe" id="img157" onmouseover="mOver(this)"
onmouseout="mOut(this)" alt="" src="../images/cpg_plus1.jpg"
border="0"></a>
<div id="div157" class="cpgAddInfoTable" >
<table>
<tr>
<td></td>
</tr>
<tr>
<td class="cpgAddInfoTitle">Risk factors for severe hypoglycemia
<a class="cpgEmbeddedLink"
onclick='flip(document.getElementById("div219x57") ,document.getElementById(" img219x57"))'><IMG alt="" class="cpgClickMe" id="img219x57"
onmouseover="mOver(this)" onmouseout="mOut(this)"
src="../images/cpg_plus1.jpg" border="0" ></a>
<div id="div219x57" class="cpgAddInfoTable">
<table border=1 style="font-size :8pt; text-align : center" >
<tr>
<td>
Prior episode of severe hypoglycemia
</tr>
<tr>
<td>
Current low A1C (<6.0%)<br>
Hypoglycemia unawareness<br>
Long duration of diabetes<br>
Autonomic neuropathy<br>
Adolescence<br>
Preschool-age children unable to detect and/or treat mild
hypoglycemia on their own
</tr>
</table>
<i>A1C = glycosylated hemoglobin</i>
</div>
</td>
</tr>
</table>
</div>
</td>
<td class="cpgAddInfo">
See Also
<a class="cpgEmbeddedLink" onclick='flip(div357,img357)'>
<IMG alt="" id="img357" onmouseover="mOver(this)"
onmouseout="mOut(this)" src="../images/cpg_plus1.jpg" border="0"
class="cpgClickMe">
</a>
<div id="div357" class="cpgAddInfo">
<table>
<tr>
<td></td>
</tr>
</table>
</div>
</td>
</tr>
<tr>
<td colspan="2"><hr width='100%'></td>
</tr>
</table>
</table>

Jul 20 '05 #2

"Nigel Gomm" <ni*******@sympatico.ca> schrieb im Newsbeitrag
news:nH*********************@news20.bellglobal.com ...
i have a problem with Mac browsers. As can be seen from the following HTML
fragment i have some images that should, when clicked, open up a <div>. This works fine on all window's browsers (that i've been able to test) but is
intermittent on macs. Sometimes the top level img works, sometimes it
doesn't (the exact same page). Usually it doesn't. The nested image never
works. Neither the onclick of the parent <a> tag nor the
onmouseover/onmouseout of the images work.
The script simply makes the div style display inline or none. I've tried
putting an alert inside the script for the onmouseover and sometimes it
fires and sometimes it doesn't.
In my onload code i have also written a little something that programaticaly sets the onmouseover/out and onclick events and that too sometimes fires
sometimes not. This page has a repeater populated with HTML from a database. I've checked the embedded HTML and it looks good.
I have two other pages where this same technique is working fine but for the life of me can't see why this one page is giving me grief.

The doctype is 4.01 transitional and gets a clean bill of health from the
W3C validator. The css style sheet also meets W3C approval.
It's happening on OS9 with ie5.1 and netscape 7 and on OSX with safari and ie5.2. Thats all i've been able to test so far.
Does anyone have any ideas?
TIA

<table>
<tr>
<td class="cpgGuideline" colspan="2">
<a id="Repeater1__ctl1_HyperLink1" class="cpgEmbeddedLink"
href="chapters.aspx?hypoglycemia.htm"><img alt="" border=0
src="../images/cpgbook.gif"></a>
<span id="Repeater1__ctl1_guide57">In hospitalized patients, a PRN order for glucagon should be considered for any patient at risk for severe hypoglycemia (i.e. Requiring insulin and hospitalized for concurrent
illness) when IV access is not readily available <i>[Grade D,
Consensus]</i>.</span>
</td>
</tr>
<tr>
<td class="cpgAddInfo">
Additional Info
<a class="cpgEmbeddedLink"
onclick='flip(document.getElementById("div157"),do cument.getElementById("img 157"))'><IMG class="cpgClickMe" id="img157" onmouseover="mOver(this)"
onmouseout="mOut(this)" alt="" src="../images/cpg_plus1.jpg"
border="0"></a>
<div id="div157" class="cpgAddInfoTable" >
<table>
<tr>
<td></td>
</tr>
<tr>
<td class="cpgAddInfoTitle">Risk factors for severe hypoglycemia
<a class="cpgEmbeddedLink"
onclick='flip(document.getElementById("div219x57") ,document.getElementById(" img219x57"))'><IMG alt="" class="cpgClickMe" id="img219x57"
onmouseover="mOver(this)" onmouseout="mOut(this)"
src="../images/cpg_plus1.jpg" border="0" ></a>
<div id="div219x57" class="cpgAddInfoTable">
<table border=1 style="font-size :8pt; text-align : center" >
<tr>
<td>
Prior episode of severe hypoglycemia
</tr>
<tr>
<td>
Current low A1C (<6.0%)<br>
Hypoglycemia unawareness<br>
Long duration of diabetes<br>
Autonomic neuropathy<br>
Adolescence<br>
Preschool-age children unable to detect and/or treat mild
hypoglycemia on their own
</tr>
</table>
<i>A1C = glycosylated hemoglobin</i>
</div>
</td>
</tr>
</table>
</div>
</td>
<td class="cpgAddInfo">
See Also
<a class="cpgEmbeddedLink" onclick='flip(div357,img357)'>
<IMG alt="" id="img357" onmouseover="mOver(this)"
onmouseout="mOut(this)" src="../images/cpg_plus1.jpg" border="0"
class="cpgClickMe">
</a>
<div id="div357" class="cpgAddInfo">
<table>
<tr>
<td></td>
</tr>
</table>
</div>
</td>
</tr>
<tr>
<td colspan="2"><hr width='100%'></td>
</tr>
</table>
</table>


Just a guess: CSS style names that begin with a number or contain a _
(underscore) cause problems. So might also element IDs. Eliminate all the _
out of your IDs and try again.

HTH
Markus
Jul 20 '05 #3
tried it..... no joy
thanks anyway

N
"Markus Ernst" <derernst@NO#SP#AMgmx.ch> wrote in message
news:3f***********************@news.easynet.ch...

"Nigel Gomm" <ni*******@sympatico.ca> schrieb im Newsbeitrag
news:nH*********************@news20.bellglobal.com ...
i have a problem with Mac browsers. As can be seen from the following HTML fragment i have some images that should, when clicked, open up a <div>. This
works fine on all window's browsers (that i've been able to test) but is
intermittent on macs. Sometimes the top level img works, sometimes it
doesn't (the exact same page). Usually it doesn't. The nested image never works. Neither the onclick of the parent <a> tag nor the
onmouseover/onmouseout of the images work.
The script simply makes the div style display inline or none. I've tried
putting an alert inside the script for the onmouseover and sometimes it
fires and sometimes it doesn't.
In my onload code i have also written a little something that

programaticaly
sets the onmouseover/out and onclick events and that too sometimes fires
sometimes not. This page has a repeater populated with HTML from a

database.
I've checked the embedded HTML and it looks good.
I have two other pages where this same technique is working fine but for

the
life of me can't see why this one page is giving me grief.

The doctype is 4.01 transitional and gets a clean bill of health from the W3C validator. The css style sheet also meets W3C approval.
It's happening on OS9 with ie5.1 and netscape 7 and on OSX with safari

and
ie5.2. Thats all i've been able to test so far.
Does anyone have any ideas?
TIA

<table>
<tr>
<td class="cpgGuideline" colspan="2">
<a id="Repeater1__ctl1_HyperLink1" class="cpgEmbeddedLink"
href="chapters.aspx?hypoglycemia.htm"><img alt="" border=0
src="../images/cpgbook.gif"></a>
<span id="Repeater1__ctl1_guide57">In hospitalized patients, a

PRN
order for glucagon should be considered for any patient at risk for

severe
hypoglycemia (i.e. Requiring insulin and hospitalized for concurrent
illness) when IV access is not readily available <i>[Grade D,
Consensus]</i>.</span>
</td>
</tr>
<tr>
<td class="cpgAddInfo">
Additional Info
<a class="cpgEmbeddedLink"

onclick='flip(document.getElementById("div157"),do cument.getElementById("img
157"))'><IMG class="cpgClickMe" id="img157" onmouseover="mOver(this)"
onmouseout="mOut(this)" alt="" src="../images/cpg_plus1.jpg"
border="0"></a>
<div id="div157" class="cpgAddInfoTable" >
<table>
<tr>
<td></td>
</tr>
<tr>
<td class="cpgAddInfoTitle">Risk factors for severe hypoglycemia
<a class="cpgEmbeddedLink"

onclick='flip(document.getElementById("div219x57") ,document.getElementById("
img219x57"))'><IMG alt="" class="cpgClickMe" id="img219x57"
onmouseover="mOver(this)" onmouseout="mOut(this)"
src="../images/cpg_plus1.jpg" border="0" ></a>
<div id="div219x57" class="cpgAddInfoTable">
<table border=1 style="font-size :8pt; text-align : center" >
<tr>
<td>
Prior episode of severe hypoglycemia
</tr>
<tr>
<td>
Current low A1C (<6.0%)<br>
Hypoglycemia unawareness<br>
Long duration of diabetes<br>
Autonomic neuropathy<br>
Adolescence<br>
Preschool-age children unable to detect and/or treat mild
hypoglycemia on their own
</tr>
</table>
<i>A1C = glycosylated hemoglobin</i>
</div>
</td>
</tr>
</table>
</div>
</td>
<td class="cpgAddInfo">
See Also
<a class="cpgEmbeddedLink" onclick='flip(div357,img357)'>
<IMG alt="" id="img357" onmouseover="mOver(this)"
onmouseout="mOut(this)" src="../images/cpg_plus1.jpg" border="0"
class="cpgClickMe">
</a>
<div id="div357" class="cpgAddInfo">
<table>
<tr>
<td></td>
</tr>
</table>
</div>
</td>
</tr>
<tr>
<td colspan="2"><hr width='100%'></td>
</tr>
</table>
</table>


Just a guess: CSS style names that begin with a number or contain a _
(underscore) cause problems. So might also element IDs. Eliminate all the

_ out of your IDs and try again.

HTH
Markus

Jul 20 '05 #4
Bernd van Oostrum wrote:
test
[TOFU: Text Over, Fullquote Under aka Top Post]


You failed the test.

Go to <http://www.netmeister.org/news/learn2quote.html>
Go there directly. Do not pass `Start' and do not draw
4000 bucks.

And please pay me a visit in alt.test next time.
Sincerely,
your friendly test bot (on Xmas vacation in cljs)
Jul 20 '05 #5

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

Similar topics

17
by: gokul | last post by:
Hi, Iam a newbie to dotnet and I experience problems in using the Browser control in VB .net. Though Iam able to use it with its basic features, I need to customise it. ...
13
by: Kai Grossjohann | last post by:
It seems that Ctrl-N in Mozilla opens a new empty browser window. That's fine, I don't need to do anything about it. But Ctrl-N in IE appears to clone the current window. Is there a way to...
16
by: Java script Dude | last post by:
To all Mozilla JS Guru's (IE dudes welcome), I have spent the last three years developing complex DHTML applications that must work in IE 5.5sp2+ but I use Mozilla 1.3+** to do all my...
17
by: lawrence | last post by:
How is it possible that the question "How do I detect which browser the user has" is missing from this FAQ: http://www.faqts.com/knowledge_base/index.phtml/fid/125 and is only here on this...
68
by: Steve | last post by:
Hi There, Prob a simple answer to this (I hope) but I can't quite work it out yet... I have this in a page: <map name="Map"> <area shape="rect" coords="43,68,52,77" href="map.html"...
2
by: J.Marsch | last post by:
Ok, so here's a problem you probably don't see every day: We are building an application that must run in a browser, but we need to do some things client-side that would be rather difficult to...
2
by: | last post by:
I am working on an ASP.NET application that seems to be limiting browser histories to only one entry. I am not using SmartNavigation on any of the pages, and that is the only thing that I have...
15
by: CMM | last post by:
So I'm half way through overseeing a large project in ASP.NET 2.0. My superiors have decided that it would be nice if we ensured the site worked on all the major platforms (as they see it: IE,...
5
by: FAQ server | last post by:
----------------------------------------------------------------------- FAQ Topic - How do I get my browser to report javascript errors?...
4
by: Nuno | last post by:
Hello, I'm trying to call some web services only using javascript from a html page. I succeeded on doind this in IE with the use of the behavior:url(webservice.htc); (technique founded in the...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.