Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder
    Join Date
    Nov 2002
    Posts
    184
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Submit new info by using XML

    I am so new to XML. This is my very 1st project using XLM to get information from DB and Submit new information back to DBI need your help.

    Well, I am using XML method to retrieve information from DB.

    'Get Information from DB:
    Set mainNode = root.selectSingleNode("ID[@ID = '" & ID & "']")
    <% 'Get Information of given ID
    If mainNode.hasChildNodes = true Then
    Set ChildNode = mainNode.selectSingleNode("Property") %>

    <form action="InfoEdit.asp" method="post" name="SubmitForm" onsubmit="GiveDate()">
    <table>
    <tr>

    <td width="180">Name:&nbsp;</td>
    <td align="left">
    <% dim Name
    Name = ChildNode.attributes.getNamedItem("Name").nodeValue %>
    <INPUT type="text" id="Name" name="Name" value="<%= (Name) %>">
    </td>
    </tr>
    <tr>
    <input type="submit" value="Update">
    </tr>
    </table>
    </form>
    <% end if%>

    The question is: after I make a change....How can I submit new information back to DB from childnode to parentnode?

  • #2
    Moderator
    Join Date
    May 2002
    Location
    Hayward, CA
    Posts
    1,453
    Thanks
    1
    Thanked 21 Times in 19 Posts
    Two W3C proposals I recommend you look into: SOAP and XForms. XForms just became a Candidate Recommendation.
    "The first step to confirming there is a bug in someone else's work is confirming there are no bugs in your own."
    June 30, 2001
    author, Verbosio prototype XML Editor
    author, JavaScript Developer's Dictionary
    https://alexvincent.us/blog

  • #3
    Senior Coder
    Join Date
    Jun 2002
    Location
    41 8' 52" N -95 53' 31" W
    Posts
    3,660
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hopefully I will be helping out in this forum soon.
    Former ASP Forum Moderator - I'm back!

    If you can teach yourself how to learn, you can learn anything. ;)


  •  

    Posting Permissions

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