Jump to content

boristsr

Active Members
  • Posts

    96
  • Joined

  • Last visited

Everything posted by boristsr

  1. well, being obsessive like i am, i wanted to see if it did work, so i wrote it out and chucked it on my apache server and it worked fine for me. Sample1.xml <?xml version="1.0" encoding="iso-8859-1"?> <root> No </root> index.html <html> <head> <title>Ajax Testing</title> </head> <script language="javascript"> //Set default http_request to false for initiation var http_request = false; function request(url) { http_request = false; // Mozilla, Safari, Opera and all other browsers use this request if (window.XMLHttpRequest) { http_request = new XMLHttpRequest(); /* NOTE: Some versions of the mozilla browsers won't work if the response from the **Missing comment** In order to fix this, we can use an extra function to override the header **missin comment** */ if (http_request.overrideMimeType) { http_request.overrideMimeType('text/xml'); } }//Only IE uses this, NOTE: Active X Object else if (window.ActiveXObject) { try { http_request = new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { try { http_request = new ActiveXObject("Microsoft.XMLHTTP"); } catch (e) {} } } //if still false, then XMLHTTP instance is not created if (!http_request) { alert('Cannot create an XMLHTTP instance'); return false; } http_request.onreadystatechange = readyState; http_request.open('GET', url, true); http_request.send(null); } function readyState() { //Displaying all http_request.readyState if(http_request.readyState == 1) { alert("1 (loading)"); } if(http_request.readyState == 2) { alert("2 (loaded)"); } if(http_request.readyState == 3) { alert("3 (interactive)"); } if(http_request.readyState == 4) { if (http_request.status == 200) { var xmldoc = http_request.responseXML; var root_node = xmldoc.getElementsByTagName('root').item(0); alert(root_node.firstChild.data); } else { alert('Error with request'); } } } </script> <body> <table width="200" border="0" align="center"> <tr><td> <span style="text-decoration: underline" onClick="request('sample1.xml')">Request XML</span> </td></tr> </table> </body> </html> try out that, if it doesn't work it's either your web server or your browser. it works for me with apache and firefox. now, to register and chuck it on the wiki!
  2. i unfortunately don't have the code. i can go through the episode and try and get it myself if you'd like? make sure though you are using a webserver for this, not just running it off a local file. you must be running it through apache or something.
  3. Jonathon Goldsboro i beleive. give me a little and i'll see if i can get the code
  4. call me crazy, but would it be possible to print them on a injet printer, in miniture size?
  5. yeah, me too. except for the fake diplomas part.
  6. sounds like a dev.5 community growth project to me :D
  7. there's no code on that episodes page. which episode are you talking about? **edit** btw, that's not to sound rude, i was going to have a look over it.
  8. a *nix variant. either FreeNAS as was used last episode, or any linux distro. something lightweight so it will run on older machines.
  9. http://www.hak5.org/wiki/index.php?title=Episode_1x05 <-- here ;) for future reference, all shownotes are now stored on the wiki.
  10. type "net help use" in the command prompt and build the command based on what you need but it'll be something along the lines of "net use x: servertheshare"
  11. you don't think they hire people without experience do you? they hire people who know the sites, the techniques, and who are going to enjoy their work. they hire virus writers! (lets just hope all of them now use their powers for good!)
  12. i have to say i disagree with learning c++ first, and saying that learning something like visual basic will make it harder later down the line. the thing with programming is, you need to understand how to break down a solution into steps that the computer will then process and come up with the correct solution. this is the ticket to all programming, once you have this mindset down, learning another language is extremely simple. i personally started with visual basic, and then moved onto c++ without much hassle. i don't think it is smart to learn something like c++ first off because during the hard enough phase on learning to program you are then distracted by annoying low level things such as memory management. i'd say go with a higher level language at first such as visual basic, python, c#, java or delphi (i haven't actually used this, but i have heard good things). also, i wouldn't get too caught up in what language to use first, it's pretty much guaranteed that you will learn a lot more than 1 language ;)
  13. Too many are essential for me to cut it down to 10, i've tried to narrow it down as best i can. i tried not to count O/S's and apps that come with the o/s (like apt-get) Must Have (no order) Firefox Notepad++ Subversion Visual Studio 2005 Steam OpenOffice Synergy Codeblocks Python VLC VMware Would like (no order) Free Download Manager Thunderbird Windows Messenger (man it blows, but unfortunately everyone else uses it, so i must use it to communicate, i WILL NOT install that bloody adware-filled crap MSN Messenger) GTalk iTunes
×
×
  • Create New...