Results 1 to 3 of 3

Thread: FORM problem...(also posted in ASP).

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Dec 2004
    Posts
    308

    FORM problem...(also posted in ASP).

    Hey chaps,

    I have a textarea on a web page. I place a button and onclick I call a javascript function to get the value of the textarea, the javascript works. I place a form object around the textarea and the javascript can no longer see the textarea raising "Error: Textareax Undefined"

    Any ideas ????? This looks simplistic but I've boiled the whole problem down to the simplest form to try and work out why this is happening...

    Cheers.

    Chubby..

  2. #2
    Frenzied Member sciguyryan's Avatar
    Join Date
    Sep 2003
    Location
    Wales
    Posts
    1,763

    Re: FORM problem...(also posted in ASP).

    Can you post your code here?

    Were you using the reference form? E.g. document.textboxname.value or, were you using the DOM method?

    Cheers,

    RyanJ
    My Blog.

    Ryan Jones.

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Dec 2004
    Posts
    308

    Re: FORM problem...(also posted in ASP).

    Quote Originally Posted by sciguyryan
    Can you post your code here?

    Were you using the reference form? E.g. document.textboxname.value or, were you using the DOM method?

    Cheers,

    RyanJ

    Thanks for the reply Ryan.

    I was using the reference form for this. It referenced the object with Intellisense fine but running the code threw the error. It definitely has something to do with the tables in the page, some of the content is Dynamic. The code is huge and I do have a workaround (placing a form at the top of the page with loads of hidden variables in it that I post from)...

    Thanks again for the reply..

    Chubby..

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width