[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Any samples of client-side XSLT to generate webpag

Subject: RE: Any samples of client-side XSLT to generate webpages?
From: "Daniel Joshua" <daniel.joshua@xxxxxxxxxxxx>
Date: Wed, 28 Jul 2004 12:51:37 +0800
form has no properties
Manos,

> (1) http://202.156.224.29:18080/shatteredspace/login.do
>   - works in IE
>   - unable to submit form in Mozilla

Thank you!

In Mozilla I was expecting the document to behave like it does in IE 
(treating it as the transformed output) and thus allowing me to use 
'document.[form name]' which works for html, but instead Mozilla 
returns a '[object XMLDocument]' for 'document'

> add an ID in the form (e.g. 'formId' ) and say
>
> document.getElementById('formId').submit()

By giving my form an 'id' and using DOM to submit it, it works.
I must remember to think XML and not HTML.

> This thread is out of scope already.
I am really sorry. But the is no separate list for disscussing using
XSLT in browsers with javascript and DOM.


Regards,
Daniel


-----Original Message-----
From: Emmanouil Batsis [mailto:Emmanouil.Batsis@xxxxxxxxxxx]
Sent: Wednesday, 28 July, 2004 12:01 AM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re:  Any samples of client-side XSLT to generate webpages?


Daniel Joshua wrote:

>Manos,
>
>I think you may have miss reading my original message.
>
>The javascript error is caused by the transformation.
>Mozilla seems to think 'document' = the untransformed 'XML Document'
>and not the output transformed HTML document.
>  
>

Again, the error is a script error, it says

=================================
Error: document.submitForm has no properties
=================================

 which means that submitForm is undefined and it will be fixed if you 
add an ID in the form (e.g. 'formId' ) and say

document.getElementById('formId').submit()

instead of  using the form name as

submitForm.submit();

or otherwise use any proper DOM scripting to submit the form. Just try 
it and you'll see. This thread is out of scope already.

Manos

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.