I am trying to combine using MathML and javascript in the same page,
running under Firefox 1.5.
I needed to have it called index.xhtml, as it seems to make a
difference for the MathML part, but, when I do this, scriptaculous is
not available.
Here is what I do for the beginning of my document, and I am curious
what I need to do to get this to work.
Thank you.
<?xml version="1.0"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0//EN"
"http://www.w3.org/TR/MathML2/dtd/xhtml-math11-f.dtd" [
<!ENTITY mathml "http://www.w3.org/1998/Math/MathML">]>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"
/>
<script type="text/javascript" src="prototype. js"></script>
<script src="scriptacul ous.js" type="text/javascript"></script> 5 1337
James Black wrote: I needed to have it called index.xhtml, as it seems to make a difference for the MathML part
On the WWW the filename is irrelevent, you need to send the document with an
application/xhtml+xml content-type (although most servers will send that
content type for files with a .xhtml extension).
, but, when I do this, scriptaculous is not available.
There are a number of differences with JavaScript support in XHTML
documents, they are described in the Mozilla XHTML FAQ: http://www.mozilla.org/docs/web-deve...html#xhtmldiff
I would expect one of these to be the cause of your problem, but I don't
know my way around the internals of scriptaculous and prototype.
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
This should not appear in XHTML documents served as application/xhtml+xml. http://www.w3.org/TR/xhtml1/#C_9
--
David Dorward <http://blog.dorward.me .uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
Thank you for your response, I will make the changes tonight.
David Dorward wrote: James Black wrote: <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
This should not appear in XHTML documents served as application/xhtml+xml. http://www.w3.org/TR/xhtml1/#C_9
If you read anything in C.9 as SHOULD NOT (recommendation against), you need
(new) glasses. It states:
| In order to portably present documents with specific character encodings,
| the best approach is to ensure that the web server provides the correct
| headers. If this is not possible, a document that wants to set its
| character encoding explicitly must include both the XML declaration an
^^^^
| encoding declaration and a meta http-equiv statement (e.g., <meta
| http-equiv="Content-type" content="text/html; charset=EUC-JP" />).
PointedEars
David Dorward wrote: I would expect one of these to be the cause of your problem, but I don't know my way around the internals of scriptaculous and prototype.
The scriptaculous problem was that it uses document.write, so I
changed that, and got it working.
Thomas 'PointedEars' Lahn wrote: If you read anything in C.9 as SHOULD NOT (recommendation against), you need (new) glasses.
Drat, I missed that. Blame it a combination of being incredibly frustrated
with the specs indecision and buck passing when it comes to Appendix C and
the assumption that writing an XHTML with the intention of never serving it
as anything but text/html as being stupid.
If a document is to be served as multiple media types, the HTTP server
must be used to set the encoding of the document.
--
David Dorward <http://blog.dorward.me .uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Mike Kamermans |
last post by:
I'm trying to determine where inside an XHTML's DOM a javascript function
is triggered, but when I use the construction of calling a function with
"this" as parameter and then checking the event target inside the
javascript function, I get very very little love from javascript in an
XHTML setting.... I have put up the file that demonstrates my problem at:
http://www.nihongoresources.com/downloads/test/test.xml
(the jscript bit is...
|
by: Trvl Orm |
last post by:
I am working with 2 frames, Left and Right and the main code is in the
left frame, which has been attached.
Can someone please help me with this code. I am new to JavaScript and
can't figure it out.
What needs to happen is this:
On the left frame you should have a series of buttons, which when pushed
makes things happen on the right frame.
|
by: jason |
last post by:
I have a very simple asp.net 2.0 page with one textbox that onkeyPress
is suppose to do some check of what was typed. Below is the source
showing the javascript function is available. The minute I strike a key
I get the error. Anybody know why?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script language="javascript" type="text/javascript ">
|
by: Frank |
last post by:
Hi,
I simply wish to code a JS function ONCE, in a .js file, include the .js
file in the Master page, and then in several but not all pages, I wish to
execute the function on pageload.
I don't want to use the
Page.ClientScript.RegisterStartupScript(this.GetType(),"displaymessage",
strScript, false);
|
by: SM |
last post by:
Hello,
Im trying to access elements in my XML file using the JavaScript DOM
but i'm not sure how. I use AJAX to access the XML and then use the
responseXML property to access the XML file data.
I want to extract all the tracks from a specific CD.
Right now, im using an array to stock all the data but its just a
question of time before everything blows up because of the size of the
array. Thats why im want to use an XML file (later i will...
| |
by: mohkb |
last post by:
If i run my javascript withen html using dreamweaver, it works perfectly well. But when i try to use 'src' command to run the script from another file it doesnt work.
Can anybody tell me why. and what i can do to correct it.
Java script withen html:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta...
|
by: dbsmilr |
last post by:
This is what I want to do:
<html>
<xml id="myXml">
<book title="book1" />
<book title="book2" />
</xml>
<div id="out"><!-- I would output the xml formatted nicely for the
user in this div</div>
|
by: liketofindoutwhy |
last post by:
I am learning more and more Prototype and Script.aculo.us and got the
Bungee book... and wonder if I should get some books on jQuery (jQuery
in Action, and Learning jQuery) and start learning about it too?
Once I saw a website comparing Prototype to Java and jQuery to Ruby...
but now that I read more and more about Prototype, it is said that
Prototype actually came from Ruby on Rails development and the creator
of Prototype created it...
|
by: swethak |
last post by:
hi,
i have a code to disply the calendar and add events to that. It works fine.But my requirement is to i have to disply a weekly and daily calendar.Any body plz suggest that what modifications i have to made in my code
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type"...
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |