473,410 Members | 1,976 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,410 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 1502
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
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:
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...
0
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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
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
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...

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.