473,398 Members | 2,125 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,398 software developers and data experts.

Am I really the only one

who can't get onload to fire at all in IE on a Mac? Iım about to try the
suggestion of adding the script after the body tag. Iıd really rather do it
some ³right² way, if thereıs a right way that works . . .

I have to admit that itıs annoying to have to code around something that
doesnıt work in a browser thatıs no longer being supported on the platform.
Unfortunately, we have a couple of labs full of Macs, and a lot of people
like to use IE on them.

Tery

Jul 23 '05 #1
11 1389
Lee
Tery Griffin said:
This message is in MIME format. Since your mail reader does not understand

this format, some or all of this message may not be legible.

--B_3165943671_121966
Content-type: text/plain; charset="ISO-8859-1"
Content-transfer-encoding: 8bit

who can't get onload to fire at all in IE on a Mac? Iım about to try the
suggestion of adding the script after the body tag. Iıd really rather do it
some ³right² way, if thereıs a right way that works . . .


You've posted in MIME format to a text newsgroup and provided
a truly worthless subject line, and then continued your message
from the subject, so who knows what other sorts of mistakes you
might be making.

Jul 23 '05 #2
My sincerest and most humble apologies. I was unaware that Entourage posted
in MIME format. I guess I'll have to stop reading newsgroups with my e-mail
program -- no matter what it claims about its ability to handle them
properly.

I don't think the problem is mistakes in the code. At least, no one here or
on the IE/Mac group can find any. It just seems so unlikely that onload
wouldn't work -- it's not exactly an esoteric command. I figured if IE is
truly unhappy with onload, someone somewhere might have found a "legal"
workaround.

Back to the drawing board. But thanks so much for your assistance, Lee!

Tery


On 4/27/04 9:09 PM, in article c6*********@drn.newsguy.com, "Lee"
<RE**************@cox.net> wrote:
Tery Griffin said:
This message is in MIME format. Since your mail reader does not understand

this format, some or all of this message may not be legible.

--B_3165943671_121966
Content-type: text/plain; charset="ISO-8859-1"
Content-transfer-encoding: 8bit

who can't get onload to fire at all in IE on a Mac? Iım about to try the
suggestion of adding the script after the body tag. Iıd really rather do it
some ³right² way, if thereıs a right way that works . . .


You've posted in MIME format to a text newsgroup and provided
a truly worthless subject line, and then continued your message
from the subject, so who knows what other sorts of mistakes you
might be making.


Jul 23 '05 #3
who can't get onload to fire at all in IE on a Mac?


Please provide a link to the file or post the source.

This is a sign of a syntax error in the file. Bad quotes will do it.

Try running tidy on the html file. See:
http://tidy.sourceforge.net/

Robert
Jul 23 '05 #4
Hi Robert,

The page is at http://www.wsc.ma.edu/webstudents/Co.../CommSite8.htm .

I'll try running tidy, too.

Tery

On 4/27/04 11:47 PM, in article
rc*****************************@news...arthli nk.net, "Robert"
<rc*******@my-deja.com> wrote:
who can't get onload to fire at all in IE on a Mac?


Please provide a link to the file or post the source.

This is a sign of a syntax error in the file. Bad quotes will do it.

Try running tidy on the html file. See:
http://tidy.sourceforge.net/

Robert


Jul 23 '05 #5
Tery Griffin wrote:
Hi Robert,

The page is at http://www.wsc.ma.edu/webstudents/Co.../CommSite8.htm .

I'll try running tidy, too.

Tery

On 4/27/04 11:47 PM, in article
rc*****************************@news...arthli nk.net, "Robert"
<rc*******@my-deja.com> wrote:

who can't get onload to fire at all in IE on a Mac?


Please provide a link to the file or post the source.

This is a sign of a syntax error in the file. Bad quotes will do it.

Try running tidy on the html file. See:
http://tidy.sourceforge.net/

Robert



You are not even doing anything with the onLoad handler.

<BODY onLoad="code();">
Brian

Jul 23 '05 #6
"Tery Griffin" <te********@cox.net> wrote:
View/source shows me:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
Try removing the doctype and see what happens.
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">


Try removing this and see what happens.

Maybe IE on Mac is doing something weird with your doctype or content-type.

--
Matt Kruse
Javascript Toolbox: http://www.mattkruse.com/javascript/
Jul 23 '05 #7
In article <BC**********************@cox.net>,
Tery Griffin <te********@cox.net> wrote:
http://www.wsc.ma.edu/webstudents/Co.../CommSite8.htm


It fails for me on MacOS 10.2.8 with IE 5.2.1. There seem to be lots of
little bugs in IE on the Mac.

A crude fix, would be to check for IE on the mac and put up a fixed
image.

I know onload works. It something to do with the minimalist form.

Why don't you just link to the real page. Do everything on the host. I
am not an expert on host programming, but when a page request gets to
your sever cannot you invoke php and have it pick a random image without
the need for redirection?

I think other posters have suggested the same thing.

Robert
Jul 23 '05 #8
Lee <RE**************@cox.net> wrote in message news:<c6*********@drn.newsguy.com>...
Tery Griffin said:

The actual code for the page in question seems to be:


Actually, I copyied this link in to Netscape 7.1 and IE. 5.2.1 on
MacOS 10.2.8 and I got a random set of images when I created a new
window and did the pastes.
http://www.wsc.ma.edu/webstudents/Co...s_2.pl?1234567

I added the numbers 1234567 just to see if it worked with the numbers
following.

Now, back to the original HTM file...

The problem seems to be that the form didn't contain a submit button.

I got this script to work in IE 5.2.1 and Netscape 7.1 on MacOS
10.2.8:

<html>
<head>
<title>redirection test</title>

<style type="text/css">
..hiddenStyle {position:relative; visibility:hidden;}
</style>

<SCRIPT language="JavaScript">
function submitform()
{
alert("in function submitform");
document.form.submit();
}
</SCRIPT>

</head>

<body onload="alert('in onload');submitform();">

<p>Hide the form so we do not see the submit button.</p>

<div id="formNotThere"

class="hiddenStyle">

<form name="form"
action=
"http://www.wsc.ma.edu/webstudents/CommWebSite/randomimages_2.pl">

<input type="submit" value="Submit form">

</form>
</div>

<p>Seems IE on the Mac expects a submit tag. Makes sense, if you
think about it.</p>
<p>I left the alerts in, so we can see what is going on.</p>
</body>
</html>
Jul 23 '05 #9
Thank you! You're right -- it does make sense. I made several changes that
people here suggested. The only one that worked was skipping the html
entirely and loading the perl program directly into that frame. That throws
a blank screen up once in a while, though.

If I can't figure out what's causing the blank screen, I'll try this
approach. I'm glad not to have to abandon the design.

Thanks to everyone for the help.

Tery

On 4/29/04 12:17 AM, in article
c6**************************@posting.google.com, "Robert"
<rc*******@my-deja.com> wrote:
Lee <RE**************@cox.net> wrote in message
news:<c6*********@drn.newsguy.com>...
Tery Griffin said:

The actual code for the page in question seems to be:


Actually, I copyied this link in to Netscape 7.1 and IE. 5.2.1 on
MacOS 10.2.8 and I got a random set of images when I created a new
window and did the pastes.
http://www.wsc.ma.edu/webstudents/Co...s_2.pl?1234567

I added the numbers 1234567 just to see if it worked with the numbers
following.

Now, back to the original HTM file...

The problem seems to be that the form didn't contain a submit button.

I got this script to work in IE 5.2.1 and Netscape 7.1 on MacOS
10.2.8:

<html>
<head>
<title>redirection test</title>

<style type="text/css">
.hiddenStyle {position:relative; visibility:hidden;}
</style>

<SCRIPT language="JavaScript">
function submitform()
{
alert("in function submitform");
document.form.submit();
}
</SCRIPT>

</head>

<body onload="alert('in onload');submitform();">

<p>Hide the form so we do not see the submit button.</p>

<div id="formNotThere"

class="hiddenStyle">

<form name="form"
action=
"http://www.wsc.ma.edu/webstudents/CommWebSite/randomimages_2.pl">

<input type="submit" value="Submit form">

</form>
</div>

<p>Seems IE on the Mac expects a submit tag. Makes sense, if you
think about it.</p>
<p>I left the alerts in, so we can see what is going on.</p>
</body>
</html>


Jul 23 '05 #10
Robert wrote:
Lee <RE**************@cox.net> wrote in message news:<c6*********@drn.newsguy.com>...
Tery Griffin said:

The actual code for the page in question seems to be:

Actually, I copyied this link in to Netscape 7.1 and IE. 5.2.1 on
MacOS 10.2.8 and I got a random set of images when I created a new
window and did the pastes.
http://www.wsc.ma.edu/webstudents/Co...s_2.pl?1234567

I added the numbers 1234567 just to see if it worked with the numbers
following.

Now, back to the original HTM file...

The problem seems to be that the form didn't contain a submit button.

I got this script to work in IE 5.2.1 and Netscape 7.1 on MacOS
10.2.8:

<html>
<head>
<title>redirection test</title>

<style type="text/css">
.hiddenStyle {position:relative; visibility:hidden;}
</style>

<SCRIPT language="JavaScript">
function submitform()
{
alert("in function submitform");
document.form.submit();
}
</SCRIPT>

</head>

<body onload="alert('in onload');submitform();">

<p>Hide the form so we do not see the submit button.</p>

<div id="formNotThere"

class="hiddenStyle">

<form name="form"
action=
"http://www.wsc.ma.edu/webstudents/CommWebSite/randomimages_2.pl">

<input type="submit" value="Submit form">

</form>
</div>

<p>Seems IE on the Mac expects a submit tag. Makes sense, if you
think about it.</p>
<p>I left the alerts in, so we can see what is going on.</p>
</body>
</html>


Wow. Why in the world are you doing it this way? This is the most
convoluted way of redirecting I have seen yet. It is like a Rube
Goldberg machine (www.rube-goldberg.com). I know you have been working
a while to get this working properly, but you really should just scrap
it, and use a better method.

If you need a redirect, why dont you just do this?

<HTML><HEAD><SCRIPT>document.location =
"http://www.wsc.ma.edu/webstudents/CommWebSite/randomimages_2.pl"</SCRIPT></HEAD></HTML>

Or use a META refresth tag in the head... it doesnt even require javascript:

<meta http-equiv="refresh"
content="1;url=http://www.wsc.ma.edu/webstudents/CommWebSite/randomimages_2.pl">

If you really want it to work, use both... but there is no reason at all
to redirect the way you are. What if the user doesnt even have
Javascript enabled?

Another solution without requiring Javascript, is to use a single frame
that takes up all of the browser window:

<frameset border=0 rows="100%,*" frameborder="no" marginleft=0
margintop=0 marginright=0 marginbottom=0>
<frame
src="http://www.wsc.ma.edu/webstudents/CommWebSite/randomimages_2.pl"
scrolling=auto frameborder="no" border=0 noresize>
<frame topmargin="0" marginwidth=0 scrolling=no marginheight=0
frameborder="no" border=0 noresize>
</frameset>

This method, of course, will not change the actual location, which is OK
if you like the looks of the first URL better than the second. It is
used in domain redirecting all the time. For instance, my website,
brian.genisio.org goes to a funny domain server that uses the mentioned
code to take me to my university site. The university site URL is
messy, so I use this method, and the user always seed brian.genisio.org
as the URL.

Brian
Jul 23 '05 #11
Matt Kruse wrote:
"Tery Griffin" <te********@cox.net> wrote:
View/source shows me:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">


Try removing the doctype and see what happens.


What happens is that it becomes invalid and
thus less interoperable content, if that.
PointedEars
Jul 23 '05 #12

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

Similar topics

1
by: Peter Young | last post by:
I'm seeing a problem with IE running on OS-X. When the user logs in to the website (ASP/IIS5), a Session is established properly, but somewhere along the line, a new Session is created and...
2
by: James | last post by:
Are there any style elements that work on select elements on Apple/IE? I want colored text, colored background, or just about anything colored in a select drop-down but can't seem to make it work...
35
by: Richard | last post by:
I finally got Mozilla installed and running just last week and wow... Nice work you Mozilla developers, you! And is it just me or does Mozilla really interpret/execute CSS code really well...
6
by: Zip Code | last post by:
"The large print giveth, and the small print taketh away.", so said Tom Waites in his classic rap, "Step Right Up", a paean about come ons and rip offs. Now, we have all explored the fact that...
9
by: vincent wang | last post by:
Microsoft has been pushing very hard behind .Net, but why haven't we seen any real action or plan that Microsoft is going to port its own software, especially Office onto .Net? If they don't want...
3
by: Roy Osherove | last post by:
Hi folks. I have an ASP.Net application that runs a .Net dll that uses WMI and ADSI(both managed) to connect to a given IIS root and search through it. When not using the ASP.Net client, but...
131
by: pemo | last post by:
Is C really portable? And, apologies, but this is possibly a little OT? In c.l.c we often see 'not portable' comments, but I wonder just how portable C apps really are. I don't write...
23
by: mike3 | last post by:
Hi. I seem to have made some progress on finding that bug in my program. I deactivated everything in the bignum package that was used except for the returning of BigFloat objects. I even...
0
by: raylopez99 | last post by:
I ran afoul of this Compiler error CS1612 recently, when trying to modify a Point, which I had made have a property. It's pointless to do this (initially it will compile, but you'll run into...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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...
0
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,...
0
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...

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.