Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

Posts: 93
Registered: ‎08-18-2011
My Device: 9550
My Carrier: At&T

How to send xml string along with POST requst to load a page in WebView?



I am working on HTML5WebWorks application. I need to send xml string along with POST requst to load a page in WebView. I surfed in the forum and net but not finding any idea how to implement it.


here is the code that i tried:


        <script type="text/javascript">

            function log (text) {
                document.getElementById("contents").innerHTML = document.getElementById("contents").innerHTML + "<br />" + text;
            function ready() {
                var xmlhttp = new XMLHttpRequest();

                xmlhttp.onreadystatechange = function () {
                if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {


            xmlhttp.open("POST", "https://xyz.login.htm", true);
                xmlhttp.send("<?xml version='1.0' encoding='UTF-8' ?><Request><Operation>ID</Operation</Request>");
                window.removeEventListener('DOMContentLoaded', ready, false);
            window.addEventListener('DOMContentLoaded', ready, false);



This code is working but it is not loading .CSS and .JS file when page is displaying.


Please help me.




Shwarup Biswas