[SUMMARY] Re: issues with javascript

2002-09-18 Thread Barbara Post
Message - From: "Stan Dyck" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, September 11, 2002 6:01 PM Subject: Re: issues with javascript > Try rearranging the code so the the element is written after the > </form> tag. I suspect that t

Re: issues with javascript

2002-09-12 Thread Emmanuil Batsis (Manos)
Barbara Post wrote: > Hi Manos and the others who replied :-) > > The javascript code should be written only if I have an "error" tag for a > specific text input field. > > This error tag is produced by form validation. Then there is the classical > code : > > > > >

Re: issues with javascript

2002-09-12 Thread Barbara Post
and @Name attributes are used... So I cannot use "onLoad" method... Any other ideas ? Thanks a lot, Barbara - Original Message - From: "Emmanuil Batsis (Manos)" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, September 12, 2002 9:57 AM Subjec

Re: issues with javascript

2002-09-12 Thread Emmanuil Batsis (Manos)
Hi Barbara, Nothing to do with cocoon, but you are right; the document is not fully loaded and that's the problem. Try wrapping your code in a function and call it via the onload attribute of the body tag. BTW, you should be using DOM nowdays: function init() { document.getElementById('my_

RE: issues with javascript

2002-09-11 Thread Lai, Harry
11:01 AM To: [EMAIL PROTECTED] Subject: Re: issues with javascript Try rearranging the code so the the element is written after the </form> tag. I suspect that the javascript interpreter cannot resolve "my_form" because it has not been completely written to the browser yet. h

Re: issues with javascript

2002-09-11 Thread Stan Dyck
Barbara Post" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, September 11, 2002 8:53 AM Subject: issues with javascript > I know this is a bit offtopic but maybe it is due to cocoon ? I hope not ! I > posted in javascript newsgroup too... I admit that javascript is

issues with javascript

2002-09-11 Thread Barbara Post
I know this is a bit offtopic but maybe it is due to cocoon ? I hope not ! I posted in javascript newsgroup too... I admit that javascript is not complicated but I often have troubles with it... "I generate a page with xml and xsl : At a moment I have an input field, let's say "my_text", in "my_