Jump to content

Check out our Community Blogs


Member Since 04 Jul 2010
Offline Last Active Sep 06 2010 07:07 AM

Topics I've Started

Problem: XML, javascript e4x and trying to display the whole XML output

21 July 2010 - 12:15 AM

I have a service which churns out raw XML.
I have a javascript page with e4x enabled.
I am trying to get all the XML displayed into a div object.


<title>My Data</title>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" >
<script type="text/javascript">
function getInfo()
    var xhr; 
    try {  xhr = new ActiveXObject('Msxml2.XMLHTTP');   }
    catch (e) 
        try {   xhr = new ActiveXObject('Microsoft.XMLHTTP');    }
        catch (e2) 
          try {  xhr = new XMLHttpRequest();     }
          catch (e3) {  xhr = false;   }
   xhr.open("POST", "http://mysite:4321/select/?p=1&q=2", true);

    xhr.onreadystatechange  = function()
         if(xhr.readyState  == 4)
         	document.getElementById("ajax").innerHTML.value = xhr.responseText;
<body onLoad="getInfo();">
<div id="ajax">


I have tried e4x, but I'm still unsure how it works! i.e.
I have to add ";e4x" to the language type, but it seems to have issues with the declaration of getInfo.

I have googled around and can't seem to find anything which allows you to display the whole XML (only transfer data from specific elements).

Either, how do I get all the XML displayed on my page (in text format) in javascript (old style)?
Or, How do I do it in e4x? Is e4x worth embracing?

Ay guidance would be much appreciated.



What is the ultimate programming language to use for a graphical website?

04 July 2010 - 12:30 PM

Dear Programming gurus,

Please could you advise me on the best programming language for a graphical website.
I am a VB/ASP classic programmer, but can also do javascript and java. I've looked into Ruby, C++, and c#.

Ultimately it needs to be:

- able to dynamically react with user intervention
- preferably open source and not commercial based
- purely programmable with no WYSIWYG interface
- quick and easily programmable
- canvas drawing programmable objects
- integrated API

Any help would be much appreciated.



Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download