« first day (3252 days earlier)      last day (1695 days later) » 

12:21 AM
Hello
 
12:46 AM
Anyone else ever stare at something too long and second guess if something is truly center and then takeout a ruler to measure just to make sure?
 
And then it's not, and you realize your life is a lie, then you second guess if you're actually real, then you realize that you are real but the world is indifferent to you in every way, yeah that happens to me too sometimes.
 
 
1 hour later…
1:53 AM
Anybody ever come across an issue with mobile sites as so: site loads fine on PC browser. Site renders on iOS, but data doesn't load? (specifically fetch). It's like my react app isn't updating the state on my phone
 
morn
 
evening
 
 
4 hours later…
6:17 AM
hello
 
@FahadAlmehaini 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.
 
i need a help on my question about Load More on page scroll with jquery/javascript stackoverflow.com/questions/57868945/…
 
 
1 hour later…
7:28 AM
et
 
cetera
 
ABC
Hi
1
Q: How to fix echart doesn't display in angular

ABCHere's the code. How to fix data doesn't display in yaxis or charts. kindly check if there's an error on my code. list.component.ts tempTrendOption: any = { title: { text: 'Temperature Chart', x: 'center', y: '3%' }, tooltip: { show: false, trigger: 'a...

can anyone help me
 
 
1 hour later…
8:36 AM
In the above image, when I click on Click Me button, the selection isn't disappeared
I wanna achieve the same behavior, but in my case selection is disappeared
Any pointers?
 
I don't know what yours problem is and what you want
those two sentences contradict each other
 
@KarelG Actually the snapshot is from some other website.
 
Hi my favorite associate from a swamp, named as London.
ah
 
I am trying to achieve the same behavior but I couldn't
 
that the selection disappears is because yours focus is on the "click me" button
that on the other site has probably added a script to work-around that
(or used an overlay div)
 
8:51 AM
Also, codemirror.net/index.html <-- try this. This one also lets you select inside the editor and then clicking on dropdown doesn't remove the selection
 
stackoverflow.com/questions/57868945/… Can somebody help me on it im stuck on it for all other pages also where i have to use it to load more pages.
 
9:17 AM
@KarelG do you know any workarounds related that?
 
hmm, a simple iframe is easy. But you can try to memorize the text selection on blur (=leave text area) event and when focus(= entered), set the selection
 
10:09 AM
when do you ever use a back-tick ?
 
in what context?
 
10:39 AM
My Boss's name is Neil
didn't know Neil is an indian name
 
Hi folks
 
@RémyTesta 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.
 
I'm here for the badge lol
 
badge?
 
@ARr0w that's news to me as well
 
10:45 AM
@KarelG But in that case, selection would still be not visually there as long as focus is on some other element. Did you check how CodeMirror does this job? I couldn't find any code they are running specifically for this situation
 
CodeMirror used an iframe
might have other page in mind
 
I see. They didn't even use contenteditable.
But don't know if that matters.
Nvm
 
  function selectionSnapshot(cm) {
    if (cm.hasFocus()) { return null }
    var active = activeElt();
    if (!active || !contains(cm.display.lineDiv, active)) { return null }
    var result = {activeElt: active};
    if (window.getSelection) {
      var sel = window.getSelection();
      if (sel.anchorNode && sel.extend && contains(cm.display.lineDiv, sel.anchorNode)) {
        result.anchorNode = sel.anchorNode;
        result.anchorOffset = sel.anchorOffset;
        result.focusNode = sel.focusNode;
I checked their javascript code
seems what I thought
that code you see is a copy of the textarea. When you adjust it, the textarea is being modified as well and ect. A mirror in code mirror 😀
 
SVG killed flash player
 
you meant canvas
Flash Player is just a nightmare security-wise.
 
11:01 AM
and video killed the radio star
 
11:23 AM
@KarelG I'm sorry but looks like that code is just to remember what user last selected. Are they handling how to keep selection visible while editor is not in focus?
 
 
1 hour later…
12:28 PM
Hello friends, can anyone tell me how to make the text value in the combo box centered in the middle?
 
@Glaucco 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.
 
12:44 PM
@Glaucco and a combo box is ... a select box? Or something specific? It really depends but text-align: center is sufficient
 
it's combo box I'm using in Foxit program
 
is this right chat room to discuss regarding suitecrm javascript error issue?
 
never heard of Foxit. So uhm
@Exception anything related to javascript is allowed 🙂
 
ok .. thanks
 
hi world!
anyone ever used nodejs to properly redact a PDF? (not just place a black box over the text)?
 
12:48 PM
I wonder if using a javascript code I can center in the middle?
 
I have 2 links in suitecrm->cases i.e., basic search and advance search.. when basic search link is clicked from adv search then basic search form opens and vice versa.. Currently when I move from adv search to basic then I am getting following error..
sugar_grp1.js?v=wc2L04d0ef6QRXCC9q1n1Q:formatted:2962 Uncaught TypeError: Cannot read property 'setAttribute' of null
    at handleDisplay (sugar_grp1.js?v=wc2L04d0ef6QRXCC9q1n1Q:formatted:2962)
    at Object.success (sugar_grp1.js?v=wc2L04d0ef6QRXCC9q1n1Q:formatted:3006)
    at Object.handleTransactionResponse (sugar_grp1_yui.js?v=wc2L04d0ef6QRXCC9q1n1Q:55)
    at sugar_grp1_yui.js?v=wc2L04d0ef6QRXCC9q1n1Q:55
 
@Exception have you got a pen showing this?
 
code is huge.So I can't show demo in pen..
 
got an example with working src maps we can see?
 
1:08 PM
@Exception your dom lookup failed.
 
ABC
1:53 PM
Hi
can anyone help me?
 
!!welcome ABC
 
@ABC 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.
 
ABC
[ErrorHandlerInterceptor] Request error HttpErrorResponse {headers: HttpHeaders, status: 200, statusText: "OK", url: "http://localhost/templogger/services/getData.php", ok: false, …}
 
you have to be more informative ...
 
ABC
@KarelG ok sir. sorry about that
can I post my question here
this echarts is custom component or any prebuild component? — Himanshu Bansal 7 hours ago
1
Q: How to fix echart doesn't display in angular

ABCHere's the code. How to fix data doesn't display in yaxis or charts. kindly check if there's an error on my code. list.component.ts tempTrendOption: any = { title: { text: 'Temperature Chart', x: 'center', y: '3%' }, tooltip: { show: false, trigger: 'a...

 
2:13 PM
@rlemon okay... is there any way around?
 
of course. fix the issue
I'd start by checking why the lookup is failing
 
2:26 PM
where is the network tab in node devtools chrome
 
2:58 PM
Hi mates
Can anyone help me on this ? stackoverflow.com/questions/57883657/…
 
3:15 PM
!!backup
 
@rlemon Donna Noble has left The Library Donna Noble has been saved.
 
Anyone there to help ?
 
depends
it seems like you're trying to parse html with regexp
see, the difficulty is that html can be used to display the end result desired with a wide variety of things between the characters that simply won't display, resulting in a mobile number or website url that isn't yours appearing in the content without it being laid out that way in the html itself
no regex is going to be able to catch all, or even most, of the possiblities
 
3:36 PM
I just want to validate if user entering any url other than the current site url should throw an error.
 
right
but it's not that simple
for example, <p>9524026761</p> can be represented by <p>9524<span>0</span>26761</p>
and your regexp will never catch that
What if a number is present that just happens to look like a phone number but isn't?
 
DOMParser
select all links
check hrefs
overkill, but safe (and easy)
 
 
2 hours later…
user11867329
5:20 PM
The bee called other bees.
 
!!wat3
 
:(
!!forget wat3
 
@KevinB Command wat3 forgotten.
 
user11867329
It's ok, it called it from one window, next to the screen, little fella was right on the other side. Then it went all the way to the sink window, I closed the first window. Then the lil buddy came back to the other windows. Closed the window with the bee between the screen and the window, small holes, it'll find a way out.
 
user11867329
5:26 PM
Now about this spider.
 
user11867329
This putrid, way-too-swift-for-its-size spider.
 
you've become towc
 
i have a git change that won't go away
i have tried git reset HEAD --hard
git checkout HEAD -- that/file
i even simply try to add the change, git add ., and it remains as an unstaged change
 
user11867329
5:44 PM
@KevinB Good.
 
6:29 PM
 
6:54 PM
@KevinB now, 2013 towc would be offended. 2019 towc has grown up and is still offended
 
:shrug:
 
7:55 PM
Hello there.
How are all of you?
 
customer service is "fun"
 
user11867329
8:13 PM
y-yes?
 
user11867329
man how awkward was elon & ma
 
9:04 PM
Is this channel as active as it used to be?
 
nope
occasionally there's an outburst of discussion and/or drama
 
9:24 PM
Where did everyone move to? Secret slack groups? Discord?
 
9:47 PM
yes
 
 
2 hours later…
11:29 PM
@OTLT-LCar thank you for referring me to that, this video is hilarious
jack ma is a ma-ron
 

« first day (3252 days earlier)      last day (1695 days later) »