« first day (599 days earlier)      last day (4342 days later) » 

8:00 PM
only if you can get this drupal site working for me
(we all have work to do :P )
 
LOL poor @rlemon people need to just take a number :P
 
hhh
@rlemon Yes and hence tried to stringify the JSON to check whether it really was empty
 
ok @hhh the text content of the element is not being set because you never set it
 
haha.. I'm willing to learn about the rules of these chat rooms, just thought that I'd give it a try. I mentioned mIRC because obviously I was quite away from the chat rooms for quite some time that's all.
 
MG1
@rlemon in my defense you started to help me a few hrs. ago and then stopped in the middle
:(
 
8:01 PM
@MG1 you can still ask, but don't be too upset if i randomly stop again.
meetings, phone calls, clients, work, all of this hinders my time wasting
@hhh please google "dataset + javascript" and you'll understand what .data() is doing (well trying to mimic)
 
hhh
I see, I got it now filled ...thanks for the notice, have fight now the major puzzle -- I tried to separate things with "uid" -flag like li.data('uid', varMe)

now I got it running with li.text(varMe) <--- but that is not separation?!
 
to set the text you need to open the jQuery API documentation and see if you need .text(newValue) or .html(newValue)
 
MG1
@rlemon I am not able to get user input to be inserted into the object. Here's the code jsfiddle.net/m2zWZ/18
 
@hhh so you want to set the text content and an identifier so you can recall it later?
 
hhh
(I am trying to write readable and separatable code...)
@rlemon Yes
 
8:03 PM
LOL @ new update to Secrets of the JavaScript Ninja early access edition. I thought that book was vapor at this point. Updates have all been good reads in the past though.
 
ok well the li.text(varMe) is readable...
if you want to add identifiers add an id to the li
li[0].id = newID (must be unique)
 
hhh
...yes but it does not specify that it is UID
 
so you see ID you read UID
simple
 
hhh
trying to get <li id='uid'>2423432432</li>
Not
<li>334394839483</li>
(I believe or some other way to make it readable and separatable)
 
or you .data('uid', "foo").text("bar")
will give you <li data-uid="foo">bar</li>
VALUE IS NOT A VALID ATTRIBUTE FOR LI
 
hhh
8:06 PM
...ok so later I can access this LI with ?
I mean I had the problem with $('ul') because it accessed all UL -blocks so I want to separate things well...
li.foo?
 
$("li[data-uid=" + uid + "]");
which is why I said ADD AN ID
$("#someID")
 
hhh
You mean like this $('ul#uids')?
where <ul id='uids'>...?
(err dot may the cmd there to specify the block, not #)
 
no i mean

li.text(someText);
li.data('uid', uid); // this is a variable attached to the element... so you can recall it later.
li[0].id = someID; // this is now the LI identifier... you can access the LI using this.

then to access it later you can use
$('#'+someID);
anyways... meeting time
sorry chaps.
@MG1 if you are still having issues i'll look later.
 
hates idiots
that guy downvoted a perfectly acceptable answer
and his answer is shit
/me weird stuff makes me rage
 
8:25 PM
arr.any is indeed the most elegant solution; no need to use forEach
arrOfDomains.any(function ( domain ) { return href.indexOf(domain) > -1; })
 
MG1
@rlemon let us know when you're back
 
I retract what I said
@Zirak I see the error of my ways.
He didnt use some or any before
he added that later in an edit
but now I have to go with his answer.
 
That is wise, young grasshopper.
 
MG1
8:44 PM
Is it possible to update a JSON response based on user input?
 
9:02 PM
Anything is possible.
If you're talking about JSON coming back from an ajax call, you'd just have to send the input to the server, then do something with it.
 
hhh
9:19 PM
I can access the DOM -block with the identifiers but I am trying to get the ids such as 4398593959 from <li></li> without <li></li> or to add there something such as "Hello 349539485943895, you are nice!" -- basically just DOM manipulation -- tried googling "datasets +javascript" but returning HTPP Get -things, not this thing.

Anyway tried with Brute-force, not working, have to understand this DOM manipulation...
console.log(li[i])
console.log(li[i].tex)
console.log(li[i].data('uid'))
console.log(li[i].data)
 
9:35 PM
sup everyone
 
9:55 PM
Poopin
 
hhh
10:27 PM
@rlemon I moved my question here, I think it is mature enough for the main site. Thank you for your help!
 
Anyone feel like melting their brain, I could use a hand on something:
1
Q: Finding open contiguous blocks of time for every day of a month, fast

ChrisI am working on a booking availability system for a group of several venues, and am having a hard time generating the availability of time blocks for days in a given month. Given a venue_id, month, and year (6/2012 for example), I have a list of all events occurring in that range at that venue, ...

PHP tagged question, but the concept is language-agnostic
 
10:59 PM
ajax preloading seen everywhere in sites and etc.. but i lost about 7 hours to find a simple and well explained script for a div loading!
anyone know such address?
 
@W2S What exactly are you after? A basic AJAX tutorial?
 

« first day (599 days earlier)      last day (4342 days later) »