DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: Can I???

  1. #1
    LisaW Guest

    Can I???


    Hi - XML newbie here
    Is there a way to surround HTML input boxes with XML tags to give more meaning
    to the values submitted in those input boxes?

    ie
    <UserName>
    <INPUT.....>
    </UserName>

    thanks in advance!

  2. #2
    Russell Jones Guest

    Re: Can I???

    You can do that, but I'm a little confused about the "more meaning" part of
    your message. You already have id attributes for the input controls. What
    are you trying to accomplish by adding the <UserName> tag that you don't
    already have by naming the control "UserName"? e.g. <input type="textbox"
    id="UserName">


    "LisaW" <lisadisc@aol.com> wrote in message news:3a8148c4$1@news.devx.com...
    >
    > Hi - XML newbie here
    > Is there a way to surround HTML input boxes with XML tags to give more

    meaning
    > to the values submitted in those input boxes?
    >
    > ie
    > <UserName>
    > <INPUT.....>
    > </UserName>
    >
    > thanks in advance!




  3. #3
    LisaW Guest

    Re: Can I???


    Russell -
    Think it would make life easier to know after a submit that a textbox is
    an element of XML- here is how I'm using the id of inputs now:


    I am developing ASP pages for a select group of users to do some serious
    data entry.

    I have all input boxes within tables - for instance:
    Acct # | Beg Year Bal | End Year Bal
    212 | <INPUT> | <INPUT>

    There could be hundreds of controls per form.

    At the moment I have the IDs of each input control created to give me an
    indication of their row position, the Primary Key into the data and the column
    name. for exampe an Input ID could be 212_BegYrBal_0

    On submit I strip apart these lengthy names and create my own pseudo XML
    <ITEM>
    <ROW ID>
    212
    </ROW ID>
    <RAW ID>
    0
    </RAW ID>
    <COL>
    BegYrBal
    </COL>
    <VALUE>
    200000
    </VALUE>
    </ITEM>


    from the pseudo XML - I can get the data into a recordset and then update/insert
    the correct data into financial information system.




    "Russell Jones" <arj1@northstate.net> wrote:
    >You can do that, but I'm a little confused about the "more meaning" part

    of
    >your message. You already have id attributes for the input controls. What
    >are you trying to accomplish by adding the <UserName> tag that you don't
    >already have by naming the control "UserName"? e.g. <input type="textbox"
    >id="UserName">
    >
    >
    >"LisaW" <lisadisc@aol.com> wrote in message news:3a8148c4$1@news.devx.com...
    >>
    >> Hi - XML newbie here
    >> Is there a way to surround HTML input boxes with XML tags to give more

    >meaning
    >> to the values submitted in those input boxes?
    >>
    >> ie
    >> <UserName>
    >> <INPUT.....>
    >> </UserName>
    >>
    >> thanks in advance!

    >
    >



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


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center