[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]
Subject: DOCBOOK-APPS: AW: [QUESTION] using JavaScript within a section
the JavaScript does some document.write(); to produce dynamic content. it does not contain any functions etc.. i would like to display the output just at the point where i placed the JavaScript block. if i place the JavaScript logic within the </head> element, i have to wrapp it using a function, so i can call it at a later time. actually i am doing the following ... ----------8<-------------8<----------------8<-------------8<------------ <p> The iChilli web site was tested on systems running with a resolution of 800 x 600 pixels. Your screen resolution is currently set to <script language="JavaScript"> <!-- document.write(screen.width + ' x ' + screen.height); --> </script> pixels. </p> ---------->8------------->8---------------->8------------->8------------ but how would you call a javascript function from inline text if you just have text and no buttons etc. i just thought, that it is possible to place a JavaScript block within a html paragraph, so it might be also possible to do that with the website DTD. regards daniel s. haischt -- > -----Ursprüngliche Nachricht----- > Von: Norman Walsh [mailto:ndw@nwalsh.com] > Gesendet: Mittwoch, 2. Oktober 2002 19:19 > An: Daniel S. Haischt > Cc: docbook-apps@lists.oasis-open.org > Betreff: Re: [QUESTION] using JavaScript within a section > > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > / "Daniel S. Haischt" <sirabyss@gmx.net> was heard to say: > | i would like to use a </script> element within > | a </section> element to place some JavaScript within > | the body of a HTML document. unfortunatly i am > | getting the error message 'No template matches script'. > | > | so my question is - are </script> elements allowed > | within a section element? > > No, they're only allowed in the webpage head. Why do you need them in > a section? > > Be seeing you, > norm > > - -- > Norman Walsh <ndw@nwalsh.com> | We are afraid of the old age which > http://www.oasis-open.org/docbook/ | we may never attain.--La Bruyère > Chair, DocBook Technical Committee | > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.0.6 (GNU/Linux) > Comment: Processed by Mailcrypt 3.5.7 <http://mailcrypt.sourceforge.net/> > > iD8DBQE9mypxOyltUcwYWjsRAowbAJ9Wa7VY1W2RJkfDoCVYgEHnrg2O7ACeKKVH > vpSHXrgAN9p5K6OKnhbVuDc= > =UQ/b > -----END PGP SIGNATURE----- > >
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]
Powered by eList eXpress LLC