Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > JavaScript > Javascript
| Search | Today's Posts | Mark Forums Read
Javascript General Javascript discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old September 5th, 2004, 07:36 PM
Registered User
 
Join Date: Jul 2004
Location: hf, ah, China.
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to write a message board with javascript ?

Hi!Everyone.
I want to write a message board with javascript and XML.The client_side code is below,but I don't know how to write server_side code.Can you help me?Thanks!
Remark:server_side code is also javascript and XML.
         function clickHanlder()
        {

    var xml_dom = new ActiveXObject("MSXML2.DOMDocument");
        xml_dom.loadXML('<?xml version="1.0" ?> <root/>');


        xml_dom.documentElement.setAttribute("xmlns:dt", "urn:schemas-microsoft-com:datatypes");

        var l_node1 = xml_dom.createElement("words");
        l_node1.dataType = "string";

        l_node1.nodeTypedValue = document.all._message.value;
        xml_dom.documentElement.appendChild(l_node1);

var xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
    xmlhttp.open("POST","messages/file_recieve.htm",false);
        xmlhttp.send(xml_dom);

        div_message.innerHTML = xmlhttp.ResponseText;
        }




Similar Threads
Thread Thread Starter Forum Replies Last Post
How to build a message board jazzydonald Pro Visual Basic 2005 0 June 2nd, 2008 02:36 AM
message board feature zhugeliang ASP.NET 2.0 Basics 0 January 9th, 2007 09:21 PM
Message Board problem. Blackjack BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 1 January 27th, 2006 07:16 PM
Dynamic message board in C# lonestar General .NET 1 June 1st, 2005 08:41 AM
Message Board Troubles AMP_Engineer BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 3 September 29th, 2004 06:56 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.