DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Dan Guest

    Re: form element accessible from javascript

    Ever tried setting the input's bgcolor to the same as the body's and no
    borders? try

    <INPUT style="border: 0;background-color: #ffffff" NAME="test" VALUE="toto">
    on a white background or #000000 on a black one.

    Dan
    "tyris" <kea@mailcity.com> wrote in message
    news:3c03621e$1@147.208.176.211...
    >
    > i need to have an element in my form where i can modify the value thanks

    to
    > javascript. The problem is that i'd like to use something else than an

    input,
    > i don't want to use a box, i'd like to have an element that apears like

    simple
    > text
    >
    > i mean to have something like :
    >
    > value : <some element value="toto">
    >
    > and not like
    >
    > value : <INPUT NAME="test" VALUE="toto">
    >
    > so that the display result would be exactly like what you se here :
    >
    > value : toto
    > (no box, no input)
    >
    > where the toto field is an element i can access with javascript. is there
    > a way to have this ? i don't want to use a hidden input, i need a way to
    > have a visible element, like a label, a simple label, but accessible from
    > javascript




  2. #2
    tyris Guest

    form element accessible from javascript


    i need to have an element in my form where i can modify the value thanks to
    javascript. The problem is that i'd like to use something else than an input,
    i don't want to use a box, i'd like to have an element that apears like simple
    text

    i mean to have something like :

    value : <some element value="toto">

    and not like

    value : <INPUT NAME="test" VALUE="toto">

    so that the display result would be exactly like what you se here :

    value : toto
    (no box, no input)

    where the toto field is an element i can access with javascript. is there
    a way to have this ? i don't want to use a hidden input, i need a way to
    have a visible element, like a label, a simple label, but accessible from
    javascript

  3. #3
    Bronwyn Streeter Guest

    Re: form element accessible from javascript

    This will only work for IE. It won't work in Netscape

    Dan <dann@hotpop.com> wrote in message news:3c037ff7@147.208.176.211...
    Ever tried setting the input's bgcolor to the same as the body's and no
    borders? try

    <INPUT style="border: 0;background-color: #ffffff" NAME="test" VALUE="toto">
    on a white background or #000000 on a black one.

    Dan
    "tyris" <kea@mailcity.com> wrote in message
    news:3c03621e$1@147.208.176.211...
    >
    > i need to have an element in my form where i can modify the value thanks

    to
    > javascript. The problem is that i'd like to use something else than an

    input,
    > i don't want to use a box, i'd like to have an element that apears like

    simple
    > text
    >
    > i mean to have something like :
    >
    > value : <some element value="toto">
    >
    > and not like
    >
    > value : <INPUT NAME="test" VALUE="toto">
    >
    > so that the display result would be exactly like what you se here :
    >
    > value : toto
    > (no box, no input)
    >
    > where the toto field is an element i can access with javascript. is there
    > a way to have this ? i don't want to use a hidden input, i need a way to
    > have a visible element, like a label, a simple label, but accessible from
    > javascript






Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links