Click here to Skip to main content
15,911,132 members
Home / Discussions / JavaScript
   

JavaScript

 
AnswerRe: Elements hidden - if visible do something Pin
Member 1307408621-Mar-17 4:34
Member 1307408621-Mar-17 4:34 
GeneralRe: Elements hidden - if visible do something Pin
ZurdoDev27-Mar-17 1:59
professionalZurdoDev27-Mar-17 1:59 
Questiondataset with java Pin
Member 1307317120-Mar-17 22:01
Member 1307317120-Mar-17 22:01 
AnswerRe: dataset with java Pin
Richard MacCutchan20-Mar-17 23:06
mveRichard MacCutchan20-Mar-17 23:06 
QuestionDisplay PDF in iframe from base64 string using blob url Pin
ankit1819-Mar-17 6:03
ankit1819-Mar-17 6:03 
SuggestionRe: Display PDF in iframe from base64 string using blob url Pin
ZurdoDev20-Mar-17 1:15
professionalZurdoDev20-Mar-17 1:15 
QuestionA more efficient approach? Pin
samflex10-Mar-17 3:54
samflex10-Mar-17 3:54 
AnswerRe: A more efficient approach? Pin
Nathan Minier16-Mar-17 4:41
professionalNathan Minier16-Mar-17 4:41 
This is kinda rough. Do you have control over the web endpoint?

The biggest issue that I'm seeing is that you don't really have a plan for how the client and server sides will communicate in a consistent manner. It looks like you're likely building a dynamic page (with ASP.NET, JSP, PHP, whatever) and parsing it into JS objects, then sending those objects back up via AJAX. That's leveraging 2 totally different approaches (HTML Forms vs AJAX) to handle each leg of the model change pipeline.

The lack of a unified pipeline is why the JS is bulky, difficult, and not at all DRY. It will also make further development much more difficult as you try and keep track of how processing is handled for read vs update.

So my initial advice would be to pick a pipeline, and use it consistently. Regardless of which one you pick your code will clean up quickly.
"There are three kinds of lies: lies, damned lies and statistics."
- Benjamin Disraeli

GeneralRe: A more efficient approach? Pin
samflex17-Mar-17 3:01
samflex17-Mar-17 3:01 
AnswerRe: A more efficient approach? Pin
ZurdoDev16-Mar-17 5:38
professionalZurdoDev16-Mar-17 5:38 
QuestionOK, What Am I doing Wrong ???? Pin
Kevin Marois8-Mar-17 6:43
professionalKevin Marois8-Mar-17 6:43 
AnswerRe: OK, What Am I doing Wrong ???? Pin
Richard Deeming8-Mar-17 8:06
mveRichard Deeming8-Mar-17 8:06 
GeneralRe: OK, What Am I doing Wrong ???? Pin
Kevin Marois8-Mar-17 8:08
professionalKevin Marois8-Mar-17 8:08 
GeneralRe: OK, What Am I doing Wrong ???? Pin
Richard Deeming8-Mar-17 8:10
mveRichard Deeming8-Mar-17 8:10 
GeneralRe: OK, What Am I doing Wrong ???? Pin
Kevin Marois8-Mar-17 8:11
professionalKevin Marois8-Mar-17 8:11 
GeneralRe: OK, What Am I doing Wrong ???? Pin
Richard Deeming8-Mar-17 8:13
mveRichard Deeming8-Mar-17 8:13 
GeneralRe: OK, What Am I doing Wrong ???? Pin
Kevin Marois8-Mar-17 8:17
professionalKevin Marois8-Mar-17 8:17 
GeneralRe: OK, What Am I doing Wrong ???? Pin
Richard Deeming8-Mar-17 8:22
mveRichard Deeming8-Mar-17 8:22 
GeneralRe: OK, What Am I doing Wrong ???? Pin
Kevin Marois8-Mar-17 8:26
professionalKevin Marois8-Mar-17 8:26 
GeneralRe: OK, What Am I doing Wrong ???? Pin
Kevin Marois8-Mar-17 8:27
professionalKevin Marois8-Mar-17 8:27 
GeneralRe: OK, What Am I doing Wrong ???? Pin
Richard Deeming8-Mar-17 8:40
mveRichard Deeming8-Mar-17 8:40 
GeneralRe: OK, What Am I doing Wrong ???? Pin
Kevin Marois8-Mar-17 8:42
professionalKevin Marois8-Mar-17 8:42 
GeneralRe: OK, What Am I doing Wrong ???? Pin
Richard Deeming8-Mar-17 8:53
mveRichard Deeming8-Mar-17 8:53 
GeneralRe: OK, What Am I doing Wrong ???? Pin
Kevin Marois8-Mar-17 10:28
professionalKevin Marois8-Mar-17 10:28 
GeneralRe: OK, What Am I doing Wrong ???? Pin
Richard MacCutchan8-Mar-17 21:23
mveRichard MacCutchan8-Mar-17 21:23 

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.