jquery - Javascript array datatable conditional -


I have a json string that is feeding the javascript page, I'm trying to render the screen, the following code , But my conditional argument is not working, what do I want to accomplish if the data is not returned, print the blank space, otherwise show and icon. Thank you.

"SCHEDULES": {"RCOUNT": 186, "SCHEDULE": [{"CASEID": 18397020.000000, "SCHEDAREA": "Serge", "LayIITEDRDA": "", "LastDetterStartTT": "",}

javascript

  var diets = []; DietTable.push ("table id = 'datable' class = 'datatable' cellpadding = 0 cell field = 0>", "& lt; tr id = 'dataTableTH' & gt;", "& lt; th class = 'Header' style = 'Text-align: left, white-space: aboper;' gt; diet & lt; / th & gt; "," & lt; th class = 'header' style = 'text-align : Left white space: aboper; 'gt; date time & lt; / th & gt; "," & lt; / tr & gt;); dietable. Push ("& lt; tr & gt;" , "& Lt; td style = 'vertical-align: top; text-align: left' & gt;", ptDiet, "& lt; / td>", "& gt; td style = 'vertical-align : Top; text-align: Left '& gt; ", ptDietDT,"  "," & lt; / tr & gt;); DietTable.push ('& lt; / table & gt;'); if (SCHEDULES.LASTDIETORDERSTARTDT! == faucet) {dietVal = ['& lt; img border = 0 src = "..////// Images // Diet Icon2.png "width =" 20px "height =" 20px "title =" '+ dietTable.join ("") +' '& gt;']; } And {dietVal = ["& amp; nbsp;"]; }  

it was, thanks

if (sequence LASTDIETORDERSTARTDT! == "")


Comments

Popular posts from this blog

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -