|
|
 |
Re: FN-FORUM: Javascript error
date posted 21st September 2007 15:17
ADH WebCreations wrote:
> Hi,
>
> I can see your page work but when I put it into my website it stops
> working.
>
> It's on this page - http://foundinkent.co.uk/test/registration.htm
>
> The sites still in development.
>
> The form I want it to work on also has some other JavaScript bits, which
> I've just realised have stopped working, so is it possible they're not
> all getting along with each other very well?
The div is being added and the code is being placed on the page, however
my code assumes that the text area will be the last element of it's
parent element (which is always the case using pages I write. So now
it's at the bottom of the screen. The correct fix is to make sure that
the div is added as the next element but I'm not sure how to do that off
the top of my head. A quick fix is to place a around the text area.
As for the other code not working I don't see why. Usually such clashes
happen with event handles and reuse of variables. I don't use global
variables in my function and have done the onload stuff through the body
tag. I do see an error in your code at which may have
something to do with it.
Regards
Richard
--
Artumi Systems, 58 Salmon Street, Sheffield, S11 8DD.
Tel 0114 250 7654, Web http://www.artumi.com
VAT Reg 889 0317 88
|
 |
|