input type text value

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • sebastien

    input type text value

    Hi,

    What does this always jumps to another page when I try to asign text in the
    input type text : titel

    <form id="formie" name="formie" method="post" action="/staff/news/news.php">
    <input type=hidden name="mijntabel " value="binnenla nd">
    <table>
    <tr>
    <td class="menuitem ">
    ID:
    </td>
    <td>
    <b class="id_titel "> </b>
    </td>
    </tr>
    <tr>
    <td class="menuitem ">
    Datum
    </td>
    <td class="klein">
    <input type="hidden" name="datum2" value="2003-09-07 16:01:24">2003-09-07
    16:01:24
    </td>
    </tr>
    <tr>
    <td class="menuitem ">
    Titel
    </td>
    <td>
    <input type="Text" name="titel" size="80" value=""> <a
    href="javascrip t:document.all. titel.value='Te st PRIKBORD: WEEK 37 (08-14
    September 2003) ' ">Prikbord</a>
    </td>
    </tr>
    </table>
    </form>


  • sebastien

    #2
    Re: input type text value

    found it
    "sebastien" <sebastien@myst ic.be> wrote in message
    news:LVG6b.6718 $Wh6.350278@pho bos.telenet-ops.be...[color=blue]
    > Hi,
    >
    > What does this always jumps to another page when I try to asign text in[/color]
    the[color=blue]
    > input type text : titel
    >
    > <form id="formie" name="formie" method="post"[/color]
    action="/staff/news/news.php">[color=blue]
    > <input type=hidden name="mijntabel " value="binnenla nd">
    > <table>
    > <tr>
    > <td class="menuitem ">
    > ID:
    > </td>
    > <td>
    > <b class="id_titel "> </b>
    > </td>
    > </tr>
    > <tr>
    > <td class="menuitem ">
    > Datum
    > </td>
    > <td class="klein">
    > <input type="hidden" name="datum2" value="2003-09-07 16:01:24">2003-09-07
    > 16:01:24
    > </td>
    > </tr>
    > <tr>
    > <td class="menuitem ">
    > Titel
    > </td>
    > <td>
    > <input type="Text" name="titel" size="80" value=""> <a
    > href="javascrip t:document.all. titel.value='Te st PRIKBORD: WEEK 37 (08-14
    > September 2003) ' ">Prikbord</a>
    > </td>
    > </tr>
    > </table>
    > </form>
    >
    >[/color]


    Comment

    • HikksNotAtHome

      #3
      Re: input type text value

      In article <iSH6b.6805$2T3 .160815@phobos. telenet-ops.be>, "sebastien"
      <sebastien@myst ic.be> writes:
      [color=blue][color=green]
      >> <input type="Text" name="titel" size="80" value=""> <a
      >> href="javascrip t:document.all. titel.value='Te st PRIKBORD: WEEK 37 (08-14
      >> September 2003) ' ">Prikbord[/color][/color]

      Probably totally unrelated to your problem (I didn't look hard after I read
      that you solved it), but, two potential problems in just that one line above.

      Use of the javascript: pseudo-protocol


      Use of document.all is predominantly IE only.

      document.formie .titel.value
      document.forms['formie'].elements['titel'].value

      will give you a reference to the field, and its cross-browser to the point
      where it works in any browser that supports js and forms.
      --
      Randy

      Comment

      Working...