472,779 Members | 1,707 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Transitional Doctype Takes Some JavaScript Functionality Away!

Hm... I used to have a function which drags some div element on
mousemove. After I added:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://
www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

it stopped dragging div element in Firefox only (IE7 is fine). Who can
explain? What doctype to use for AJAX website?

Apr 2 '07 #1
16 1479
vu******@gmail.com said the following on 4/2/2007 10:35 AM:
Hm... I used to have a function which drags some div element on
mousemove. After I added:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://
www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
Why are you telling IE to use a document type that it doesn't have a
clue what it is?
it stopped dragging div element in Firefox only (IE7 is fine).
Only because IE is in quirks mode.
Who can explain? What doctype to use for AJAX website?
It has nothing to do with "AJAX". It has to do with the document itself
and the browser. Use HTML4.01 Strict.
--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Apr 2 '07 #2
On Apr 2, 12:12 pm, Randy Webb <HikksNotAtH...@aol.comwrote:
vunet...@gmail.com said the following on 4/2/2007 10:35 AM:
Hm... I used to have a function which drags some div element on
mousemove. After I added:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://
www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

Why are you telling IE to use a document type that it doesn't have a
clue what it is?
it stopped dragging div element in Firefox only (IE7 is fine).

Only because IE is in quirks mode.
Who can explain? What doctype to use for AJAX website?

It has nothing to do with "AJAX". It has to do with the document itself
and the browser. Use HTML4.01 Strict.

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ -http://jibbering.com/faq/index.html
Javascript Best Practices -http://www.JavascriptToolbox.com/bestpractices/
I tried, but only /loose.dtd seems to work. WHy?

Apr 2 '07 #3
vu******@gmail.com said the following on 4/2/2007 2:51 PM:
On Apr 2, 12:12 pm, Randy Webb <HikksNotAtH...@aol.comwrote:
>vunet...@gmail.com said the following on 4/2/2007 10:35 AM:
>>Hm... I used to have a function which drags some div element on
mousemove. After I added:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://
www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
Why are you telling IE to use a document type that it doesn't have a
clue what it is?
>>it stopped dragging div element in Firefox only (IE7 is fine).
Only because IE is in quirks mode.
>>Who can explain? What doctype to use for AJAX website?
It has nothing to do with "AJAX". It has to do with the document itself
and the browser. Use HTML4.01 Strict.
I tried, but only /loose.dtd seems to work. WHy?
My stereo doesn't work when I push that button. Why?

My point being, you can't diagnose what you can't see. There is probably
something in the page that changes when you put the browser in strict
mode that causes it to fail. Without seeing the code it is impossible to
answer you.

How can you recognize a Google Groups poster without looking at the Headers?

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Apr 2 '07 #4
On Apr 2, 6:08 pm, Randy Webb <HikksNotAtH...@aol.comwrote:
vunet...@gmail.com said the following on 4/2/2007 2:51 PM:
On Apr 2, 12:12 pm, Randy Webb <HikksNotAtH...@aol.comwrote:
vunet...@gmail.com said the following on 4/2/2007 10:35 AM:
>Hm... I used to have a function which drags some div element on
mousemove. After I added:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://
www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
Why are you telling IE to use a document type that it doesn't have a
clue what it is?
>it stopped dragging div element in Firefox only (IE7 is fine).
Only because IE is in quirks mode.
>Who can explain? What doctype to use for AJAX website?
It has nothing to do with "AJAX". It has to do with the document itself
and the browser. Use HTML4.01 Strict.
I tried, but only /loose.dtd seems to work. WHy?

My stereo doesn't work when I push that button. Why?

My point being, you can't diagnose what you can't see. There is probably
something in the page that changes when you put the browser in strict
mode that causes it to fail. Without seeing the code it is impossible to
answer you.

How can you recognize a Google Groups poster without looking at the Headers?

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ -http://jibbering.com/faq/index.html
Javascript Best Practices -http://www.JavascriptToolbox.com/bestpractices/
I understand. What is the advantage of using doctypes, anyway? If this
gives me so much problems, should I not use it at all?

Apr 3 '07 #5
Randy Webb wrote:
How can you recognize a Google Groups poster without looking at the Headers?
In my case it shows a little icon next to the subject line, that tells
me what the poster's user agent was. No real point in it tbh though :)

--
Dylan Parry
http://electricfreedom.org | http://webpageworkshop.co.uk

The opinions stated above are not necessarily representative of
those of my cats. All opinions expressed are entirely your own.
Apr 3 '07 #6
On Apr 3, 10:23 am, Dylan Parry <use...@dylanparry.comwrote:
Randy Webb wrote:
How can you recognize a Google Groups poster without looking at the Headers?

In my case it shows a little icon next to the subject line, that tells
me what the poster's user agent was. No real point in it tbh though :)

--
Dylan Parryhttp://electricfreedom.org|http://webpageworkshop.co.uk

The opinions stated above are not necessarily representative of
those of my cats. All opinions expressed are entirely your own.
If "loose" doctype fixes my Firefox dragging functionality, then it
removes CSS transparency of the element. I seem to have no ideal
doctype for my webpage. Suggestions?

Apr 3 '07 #7
vu******@gmail.com wrote:
If "loose" doctype fixes my Firefox dragging functionality, then it
removes CSS transparency of the element. I seem to have no ideal
doctype for my webpage. Suggestions?
URL? My crystal ball is at the cleaners.

--
Dylan Parry
http://electricfreedom.org | http://webpageworkshop.co.uk

The opinions stated above are not necessarily representative of
those of my cats. All opinions expressed are entirely your own.
Apr 3 '07 #8
Dylan Parry said the following on 4/3/2007 10:23 AM:
Randy Webb wrote:
>How can you recognize a Google Groups poster without looking at the Headers?

In my case it shows a little icon next to the subject line, that tells
me what the poster's user agent was. No real point in it tbh though :)
In my case it is people who don't trim signatures or don't quote what
they are replying to. It is as obvious as the sun rising in the morning.
Besides, it was more rhetorical than anything.
--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Apr 3 '07 #9
"Dylan Parry" <us****@dylanparry.comwrote in message
news:46*********************@news.gradwell.net...
Randy Webb wrote:
>How can you recognize a Google Groups poster without looking at the Headers?

In my case it shows a little icon next to the subject line, that tells
me what the poster's user agent was. No real point in it tbh though :)
Hey, do you know offhand if Thunderbird can bring older posts to the forefront?

For example, I recently responded to a post that I made several months ago. Does
Thunderbird possess any sorting method by which to show that post like "recent post?"

Otherwise, in Outlook Express I have to look back through the archive it makes and view a
post on December of 2006.

Make sense?

Here's hoping you know (because I do not want to register at mozillaZine).

-Lost
Apr 4 '07 #10
On Apr 3, 8:51 pm, "-Lost" <missed-s...@comcast.netwrote:
Hey, do you know offhand if Thunderbird can bring older posts to the forefront?

For example, I recently responded to a post that I made several months ago. Does
Thunderbird possess any sorting method by which to show that post like "recent post?"
Yes:View-Sort-Date

if you want OE like sorting then use View-Sort-Order Received
Here's hoping you know (because I do not want to register at mozillaZine).
????

use free [ news.mozilla.org mozilla.support.thunderbird ]

Apr 4 '07 #11
"scripts.contact" <sc*************@gmail.comwrote in message
news:11*********************@d57g2000hsg.googlegro ups.com...
On Apr 3, 8:51 pm, "-Lost" <missed-s...@comcast.netwrote:
>Hey, do you know offhand if Thunderbird can bring older posts to the forefront?

For example, I recently responded to a post that I made several months ago. Does
Thunderbird possess any sorting method by which to show that post like "recent post?"

Yes:View-Sort-Date

if you want OE like sorting then use View-Sort-Order Received
>Here's hoping you know (because I do not want to register at mozillaZine).
????

use free [ news.mozilla.org mozilla.support.thunderbird ]
Rock on. Thanks scripts.

-Lost
Apr 4 '07 #12
scripts.contact said the following on 4/3/2007 11:07 PM:
On Apr 3, 8:51 pm, "-Lost" <missed-s...@comcast.netwrote:
>Hey, do you know offhand if Thunderbird can bring older posts to the forefront?

For example, I recently responded to a post that I made several months ago. Does
Thunderbird possess any sorting method by which to show that post like "recent post?"

Yes:View-Sort-Date
Speaking of Thunderbird, a while back I installed some off the wall
fringe browser that made itself the default browser. When clicking a URL
in Thunderbird it would open it in that browser (I don't even remember
what browser it was). After un-installing the browser, whenever I click
a URL now, it will open IE but then IE hangs forever. It won't open the
URL. Any idea on how to make it start working again short of
reinstalling Thunderbird?

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Apr 4 '07 #13
Randy Webb wrote:
scripts.contact said the following on 4/3/2007 11:07 PM:
>On Apr 3, 8:51 pm, "-Lost" <missed-s...@comcast.netwrote:
>>Hey, do you know offhand if Thunderbird can bring older posts to the
forefront?

For example, I recently responded to a post that I made several
months ago. Does
Thunderbird possess any sorting method by which to show that post
like "recent post?"


Yes:View-Sort-Date


Speaking of Thunderbird, a while back I installed some off the wall
fringe browser that made itself the default browser. When clicking a URL
in Thunderbird it would open it in that browser (I don't even remember
what browser it was). After un-installing the browser, whenever I click
a URL now, it will open IE but then IE hangs forever. It won't open the
URL. Any idea on how to make it start working again short of
reinstalling Thunderbird?
Being windows, you'll probably have to sterilise the PC, reformat the
hard drive and reinstall :)

--
Ian Collins.
Apr 4 '07 #14
On Apr 3, 11:52 pm, Randy Webb <HikksNotAtH...@aol.comwrote:
Speaking of Thunderbird, a while back I installed some off the wall
fringe browser that made itself the default browser. When clicking a URL
in Thunderbird it would open it in that browser (I don't even remember
what browser it was). After un-installing the browser, whenever I click
a URL now, it will open IE but then IE hangs forever. It won't open the
URL. Any idea on how to make it start working again short of
reinstalling Thunderbird?
Thunderbird uses the windows setting so correct it-

Go to Control Panel-Folder Options-File types-
Select "URL:HyperText Transfer Protocol"-Click Advanced
Select Open-Click Edit
Make sure the path is correct in "Application" box (should be
[browserpath "%1"] without [] )
Uncheck use DDE and click ok ok ok

Apr 4 '07 #15
scripts.contact said the following on 4/4/2007 3:00 AM:
On Apr 3, 11:52 pm, Randy Webb <HikksNotAtH...@aol.comwrote:
>Speaking of Thunderbird, a while back I installed some off the wall
fringe browser that made itself the default browser. When clicking a URL
in Thunderbird it would open it in that browser (I don't even remember
what browser it was). After un-installing the browser, whenever I click
a URL now, it will open IE but then IE hangs forever. It won't open the
URL. Any idea on how to make it start working again short of
reinstalling Thunderbird?

Thunderbird uses the windows setting so correct it-

Go to Control Panel-Folder Options-File types-
Select "URL:HyperText Transfer Protocol"-Click Advanced
Select Open-Click Edit
Make sure the path is correct in "Application" box (should be
[browserpath "%1"] without [] )
Uncheck use DDE and click ok ok ok
Thank you. All I had to do was uncheck use DDE and it corrected it.

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Apr 4 '07 #16
Ian Collins said the following on 4/4/2007 2:03 AM:
Randy Webb wrote:
>scripts.contact said the following on 4/3/2007 11:07 PM:
>>On Apr 3, 8:51 pm, "-Lost" <missed-s...@comcast.netwrote:

Hey, do you know offhand if Thunderbird can bring older posts to the
forefront?

For example, I recently responded to a post that I made several
months ago. Does
Thunderbird possess any sorting method by which to show that post
like "recent post?"

Yes:View-Sort-Date

Speaking of Thunderbird, a while back I installed some off the wall
fringe browser that made itself the default browser. When clicking a URL
in Thunderbird it would open it in that browser (I don't even remember
what browser it was). After un-installing the browser, whenever I click
a URL now, it will open IE but then IE hangs forever. It won't open the
URL. Any idea on how to make it start working again short of
reinstalling Thunderbird?
Being windows, you'll probably have to sterilise the PC, reformat the
hard drive and reinstall :)
I tried that, I even tried putting an egg sandwich in the hard drive and
it still didn't work. Only thing the egg did was give the HD some smelly
gas.

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Apr 4 '07 #17

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

Similar topics

8
by: Hostile17 | last post by:
Consider the following HTML. ---------- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd"> <html> <head> <meta...
20
by: Alan Silver | last post by:
Hello, I have read about the problems that IE has when using a doctype of HTML 4.01 Transitional. I was advised to use Strict wherever possible. My question is, does the same apply to XHTML...
2
by: Spartaco | last post by:
I think that the use of the treeview control built on asp.net 2.0 makes the page non xhtml 1.0 transitional compliant, in fact this control renders this html: <script> <!-- function...
6
by: Rolf Welskes | last post by:
Hello, if I have for example: <table style="width: 100%; height: 100%;" border="1"> <tr> <td style="width: 100px">k </td> <td style="width: 100px">k </td> </tr>
41
by: deko | last post by:
A web page can be created using either strict or transitional HTML. The DOCTYPE for strict is: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> And...
2
by: Radu | last post by:
Hi. I have been working at home on a web project (VSNET 2005 SP1). Now I have brought the project at work, and I suddenly have plenty of warnings like: Validation (XHTML 1.0 Transitional) -...
7
by: DesertPrince | last post by:
I like making pages with the XHTML strict doctype. So I was building a page where I have two images that need to be next to each other, one on top of the other, so the colors match up. In Firefox...
14
by: tader | last post by:
so i got script like that <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <title>Drag and Drop</title> <style> #slater { display:block;
1
by: rfr | last post by:
Apparently the Transitional Doctype kills this script because the script does not make proper use of units like "px". It works well without a doctype statement. But once someone adds a...
0
by: Rina0 | last post by:
Cybersecurity engineering is a specialized field that focuses on the design, development, and implementation of systems, processes, and technologies that protect against cyber threats and...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 2 August 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
linyimin
by: linyimin | last post by:
Spring Startup Analyzer generates an interactive Spring application startup report that lets you understand what contributes to the application startup time and helps to optimize it. Support for...
0
by: erikbower65 | last post by:
Here's a concise step-by-step guide for manually installing IntelliJ IDEA: 1. Download: Visit the official JetBrains website and download the IntelliJ IDEA Community or Ultimate edition based on...
0
by: kcodez | last post by:
As a H5 game development enthusiast, I recently wrote a very interesting little game - Toy Claw ((http://claw.kjeek.com/))。Here I will summarize and share the development experience here, and hope it...
0
by: Taofi | last post by:
I try to insert a new record but the error message says the number of query names and destination fields are not the same This are my field names ID, Budgeted, Actual, Status and Differences ...
14
DJRhino1175
by: DJRhino1175 | last post by:
When I run this code I get an error, its Run-time error# 424 Object required...This is my first attempt at doing something like this. I test the entire code and it worked until I added this - If...
0
by: Mushico | last post by:
How to calculate date of retirement from date of birth
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...

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.