Send Web-dev mailing list submissions to
email@hidden
To subscribe or unsubscribe via the World Wide Web, visit
http://lists.apple.com/mailman/listinfo/web-dev
or, via email, send a message with subject or body 'help' to
email@hidden
You can reach the person managing the list at
email@hidden
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Web-dev digest..."
Today's Topics:
1. Re: window.onload not working in xhtml (Andrew Sorensen)
----------------------------------------------------------------------
Message: 1
Date: Tue, 28 Feb 2006 10:10:40 +1000
From: Andrew Sorensen <email@hidden>
Subject: Re: window.onload not working in xhtml
To: Jakub Pawlowicz <email@hidden>
Cc: email@hidden
Message-ID: <email@hidden>
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
Hi Jakub,
Oops, sorry, cut and paste mistake.
The problem still remains.
Cheers,
Andrew.
On 27/02/2006, at 6:41 PM, Jakub Pawlowicz wrote:
Hi Andrew,
Have you noticed that your code is not valid XHTML?
There's an unnecessary '-->' string in line which begins with '<html'
You can check it out at http://validator.w3.org/.
IMHO there lies the problem.
Hope this helps.
Regards,
Jakub
On Mon, 27 Feb 2006 18:28:21 +1000, Andrew Sorensen wrote
Hi everyone,
window.onload doesn't seem to work in safari 2.0.3 when using xhtml
(not sure about earlier versions).
The example below works fine when using html but does nothing when
using xhtml.
I should add that the xhtml version works fine in mozilla.
-------------------------------------- mytest.xhtml file
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"
lang="en"> -
-> <head> <meta http-equiv="Content-Type" content="text/html;
charset=utf-8"/> <title>My Test</title> <script
type="text/javascript" src="mytest.js"/> </head> <body> <p>A
Hello World</p> </body> </html>
-------------------------------------- mytest.js file
function myfunc()
{
window.alert("HELLO WORLD");
}
window.onload = myfunc;
--------------------------------------
I would love to know if others have the same problem.
I'm pretty new to this so I'm hoping it's something stupid that I'm
doing??
Cheers,
Andrew.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Web-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/web-dev/contact%
40jakubpawlowicz.com
This email sent to email@hidden
------------------------------
_______________________________________________
Web-dev mailing list
email@hidden
http://lists.apple.com/mailman/listinfo/web-dev
End of Web-dev Digest, Vol 3, Issue 44
**************************************