SIMPLE Javascript Calculator

M

mistral

Richard Cornford пиÑал(а):

mistral wrote:
<?xml version = "1.0"?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
SYSTEM "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<snip>

ret = window.showModalDialog("calculator.htm", "",
"dialogHeight:325px; dialogWidth:215px; resizable:yes;");
LOL. An XHTML document being written in the most IE dependent was
possible?

-------------------

Its not really important. Just when use this calculator with the
ShowModalDialog method, we can return a calculated value to the calling
page. Here's how it works: we provide a link to the calculator from a
Web page that references a JavaScript function that uses the
ShowModalDialog method; then when a user closes the calculator, the
total is returned to the first page through the JavaScript function
that called the ShowModalDialog method.

mistral
 
R

Richard Cornford

mistral said:
Richard Cornford пиÑал(а):
mistral wrote:

<snip>

ret = window.showModalDialog("calculator.htm", "",
"dialogHeight:325px; dialogWidth:215px; resizable:yes;");
Its not really important. Just when use this calculator ... called the
ShowModalDialog method.

That doesn't make using XHTML mark-up exclusively on a browser that can
never interpret it as XHTML any less funny.

Richard.
 
R

Randy Webb

Richard Cornford said the following on 7/12/2006 7:50 AM:
That doesn't make using XHTML mark-up exclusively on a browser that can
never interpret it as XHTML any less funny.

Hilariously funny at that.
 
R

Randy Webb

Jim Carlock said the following on 7/12/2006 7:00 PM:
mistral posted:

Richard Cornford stated:

Richard Cornford grunted:



I'm interested in the laughs. Do I need to encode Mistral's code
into a document to see it?

If you want. But, IE doesn't support xHTML in *any* way even remotely
resembling anything of use. If you server it as text/html then it will
render it as error-corrected tag soup. If you serve it as
application/xhtml+xml then IE prompts with a Save As dialog box.

So, trying to script a document that IE doesn't support using IE only
code is, well, Hilariously funny.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top