Click here to Skip to main content
14,303,876 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.
 
GeneralRe: Programming in the 60s vs today... Pin
Kirk 1038982111-Dec-17 5:06
memberKirk 1038982111-Dec-17 5:06 
GeneralRe: Programming in the 60s vs today... Pin
VEMS11-Dec-17 5:18
memberVEMS11-Dec-17 5:18 
GeneralRe: Programming in the 60s vs today... Pin
SeattleC++11-Dec-17 5:32
memberSeattleC++11-Dec-17 5:32 
GeneralRe: Programming in the 60s vs today... Pin
jschell11-Dec-17 5:34
memberjschell11-Dec-17 5:34 
GeneralRe: Programming in the 60s vs today... Pin
Ken Utting11-Dec-17 5:43
memberKen Utting11-Dec-17 5:43 
JokePerfecting your company's Mission Statement PinPopular
Cornelius Henning8-Dec-17 6:50
professionalCornelius Henning8-Dec-17 6:50 
PraiseRe: Perfecting your company's Mission Statement Pin
CPallini8-Dec-17 11:08
mveCPallini8-Dec-17 11:08 
GeneralArgh. Javascript ID tags Pin
Marc Clifton8-Dec-17 6:16
protectorMarc Clifton8-Dec-17 6:16 
First, I readily admit I should have known better.

So I'm populating a jqxTree control with items, and I set the ID to the record's ID. There are multiple parents, and they relate to different tables (therein sort of lies one of my design flaws but I wanted separate tables even though the items are all basically similar, because at some point their similarities will diverge.)

Anyways, so of course, the record ID's can be the same because they are from different tables. Which means of course that a child under one parent can have the same id='19' as a child under a different parent.

Which means that when you click on one of the children, jqxTree's click even gives you the item you clicked on, but because the ID's are the same, it gives you the last item with that ID, which is a node in a different branch of the tree!

OK, I consider that a bug in jqxTree, it should give me the damn element I clicked on, whether they have the same ID or not.

So now I have to refactor the Javascript code, probably appending a unique character for each of the parent types, and strip it out when I do the POST back the server (which are different URL's based on the parent) to get the record ID back that's being updated.

For Elephant | [mastadon] sake, I wouldn't have to deal with this BS in a WinForm app.

I'll report it as a bug in jqxWidgets forum though. They tend to be good at either fixing things or responding with "it works as intended." Sigh | :sigh:
Latest Article - Class-less Coding - Minimalist C# and Why F# and Function Programming Has Some Advantages

Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny

Artificial intelligence is the only remedy for natural stupidity. - CDP1802

GeneralRe: Argh. Javascript ID tags Pin
Jeremy Falcon8-Dec-17 6:30
professionalJeremy Falcon8-Dec-17 6:30 
GeneralRe: Argh. Javascript ID tags Pin
Marc Clifton8-Dec-17 7:45
protectorMarc Clifton8-Dec-17 7:45 
GeneralRe: Argh. Javascript ID tags Pin
Jeremy Falcon8-Dec-17 7:48
professionalJeremy Falcon8-Dec-17 7:48 
GeneralRe: Argh. Javascript ID tags Pin
Mycroft Holmes9-Dec-17 0:28
memberMycroft Holmes9-Dec-17 0:28 
GeneralRe: Argh. Javascript ID tags Pin
Jeremy Falcon8-Dec-17 6:55
professionalJeremy Falcon8-Dec-17 6:55 
GeneralRe: Argh. Javascript ID tags Pin
kmoorevs8-Dec-17 7:41
memberkmoorevs8-Dec-17 7:41 
GeneralRe: Argh. Javascript ID tags Pin
Marc Clifton8-Dec-17 7:47
protectorMarc Clifton8-Dec-17 7:47 
GeneralRe: Argh. Javascript ID tags Pin
Jörgen Andersson8-Dec-17 8:44
protectorJörgen Andersson8-Dec-17 8:44 
GeneralRe: Argh. Javascript ID tags Pin
Slacker0078-Dec-17 8:17
professionalSlacker0078-Dec-17 8:17 
GeneralRe: Argh. Javascript ID tags Pin
ZurdoDev8-Dec-17 8:19
professionalZurdoDev8-Dec-17 8:19 
GeneralThat Linux praise?...I take at least part of it back. Pin
dandy728-Dec-17 6:01
memberdandy728-Dec-17 6:01 
GeneralRe: That Linux praise?...I take at least part of it back. Pin
OriginalGriff8-Dec-17 6:20
protectorOriginalGriff8-Dec-17 6:20 
GeneralRe: That Linux praise?...I take at least part of it back. Pin
pkfox8-Dec-17 6:22
professionalpkfox8-Dec-17 6:22 
GeneralRe: That Linux praise?...I take at least part of it back. Pin
madwilliamflint8-Dec-17 11:03
membermadwilliamflint8-Dec-17 11:03 
GeneralRe: That Linux praise?...I take at least part of it back. Pin
Cornelius Henning8-Dec-17 6:56
professionalCornelius Henning8-Dec-17 6:56 
GeneralRe: That Linux praise?...I take at least part of it back. Pin
Daniel Wilianto11-Dec-17 16:33
memberDaniel Wilianto11-Dec-17 16:33 
GeneralRe: That Linux praise?...I take at least part of it back. Pin
lopatir8-Dec-17 7:44
memberlopatir8-Dec-17 7:44 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.