javascript, frames, and lamp

Discussion in 'JavaScript' started by kb3mkd, Jun 17, 2006.

  1. #1
    I'm trying to write an app which takes a partially completed form, then sends one element of that form to another frame where it is used to determine whether that element is already in the database. Server side scripting is in php, client side in js.

    i'm new to js, so i'm probably missing something simple, but i'm using the onChange event on the form element to trigger a js function, which then calls the other page in the other frame passing the text variable.

    Right now the variable is coming up as "[object HTMLInputElement]". what am i missing?

    <input type="Text" name="callsign" onChange="dupecheck(this)">

    I need this working in the next couple of days.

    Scott
     
    kb3mkd, Jun 17, 2006 IP
  2. torunforever

    torunforever Peon

    Messages:
    414
    Likes Received:
    36
    Best Answers:
    0
    Trophy Points:
    0
    #2
    In your dupecheck function try referencing the .value property of the parameter passed into the function.

    For example,
    function dupecheck(yourParameter)
    {
    alert(yourParameter.value);
    }
     
    torunforever, Jun 18, 2006 IP
  3. kb3mkd

    kb3mkd Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    thanks, i knew i was missing something simple
     
    kb3mkd, Jun 18, 2006 IP