« first day (3549 days earlier)      last day (1384 days later) » 

12:17 AM
Does anyone know networking relativity well?
 
12:33 AM
anybody here?
 
12:44 AM
console.log("I got here.");
		this.handleXML(xmlDoc);
		return true;
	   },

		handleXML: function(xmlDoc) {
		console.log("I also got here.");
		this.handleInfoMessages(xmlDoc.getElementsByTagName('info'));
		//this.handleOnlineUsers(xmlDoc.getElementsByTagName('user'));
		//this.handleChatMessages(xmlDoc.getElementsByTagName('message'));
		//this.channelSwitch = null;
		//this.setChatUpdateTimer();
	},


	handleInfoMessages: function(infoNodes) {
		console.log("trying to get here");
		var infoType, infoData;
 
@JustinHarris Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq. You have 25 seconds to edit and format your message properly before it will be removed. Please separate code blocks from your actual question. Put your question in 1 message and then your code in a 2nd and format it.
For posting large code blocks, use a paste site like like gist.github.com, hastebin.com, pastie.org or a demo site like jsbin.com
 
Any reasons why "trying to get here" would not show up in console?
Very broad I know, but I can't seem to find out why it isn't running the function :(
 
is xmlDoc.getElementsByTagName('info') failing?
 
ill console log it one sec lol
its my goto
console.log("what is this???", xmlDoc.getElementsByTagName('info')); isn't showing up
so it's failing eh?
<?xml version="1.0" encoding="UTF-8"?><root><infos><info type="userID"><![CDATA[459150393]]></info><info type="userName"><![CDATA[639806]]></info><info type="userRole"><![CDATA[CHAT_GUEST]]></info><info type="channelID"><![CDATA[459150393]]></info></infos><messages></messages></root>
That is xmlDoc
 
is there an error?
 
12:51 AM
nope
But if xmlDoc.getElementsByTagName('info') isn't returning an array, that could be the problem
But then again, it should be....
oh i was using responseText instead of responseXML
maybe that's it
batta bing batta boom
That was it
Thanks for taking a peak
peek
XMLHttpRequest object is great but debugging is a pain
 
1:15 AM
Hello
Does anyone knows library or some prepared script that can do stuff like this? codepen.io/seanseansean/pen/XmZjRR
(The reason i'm not using this is because it's not responsive)
 
 
6 hours later…
6:58 AM
hey anyone there ??
whats with this ` react-app` template, what does it contain it took years to install
been learning react
 
 
4 hours later…
11:04 AM
react is UI javascript library.. it basically doesn't contain anything untill you develop one. the whole idea of using react is the efficiency of not refreshing the entire DOM, just part of it.
 
11:39 AM
hi
 
@user8625968 Welcome to the JavaScript chat! Please review the room rules. If you have a question, just post it, and if anyone's free and interested they'll help. If you want to report an abusive user or a problem in this room, visit our meta.
 
anybody there to check an issue?
how to work this as foreach? -with same id or class
 
give them different names
or use each()
in jquery
 
when use each, on change not working
 
11:55 AM
i dont understand why you keep using the same class or id..
the most easiest and correct way to do it is giving them different names
you can later on index them by tag names like this stackoverflow.com/questions/21478461/…
 
12:36 PM
thanks YotamDahan
 
 
2 hours later…
3:05 PM
we implemented time-on-site tracking for web. saleemkce.github.io/timeonsite Here is a demo that works purely based on JavaScript API for this time criritical component. Ideas are welcome.
 
 
8 hours later…
11:05 PM
Hi, when I copy a text with a link embedded if I copy it in a Notepad I only get the link. But in some other places you get the text with the link. What do I actually have in my clipboard? I want to send to my clipboard the text with the link embedded using JS, is that possible?
 

« first day (3549 days earlier)      last day (1384 days later) »