I'm new to JavaScript.
I only have three entries in my database but when I run the code listed below I get six results. One entry shows up 3x while the other two entries show up 2x. What might I be doing wrong?
var tidyAppts='';
query.find({
success: function(results) {
// Do something with the returned Parse.Object values
for (var i = 0; i < results.length; i++) {
var object = results[i];
//alert(object.id + ' - ' + object.get('ZipCode'));
tidyAppts+='<tr><td>'
+ object.get('Name') + '<td><td>'
+ object.get('Phone') + '<td><td>'
+ object.get('Address') + '<td><td>'
+ object.get('ZipCode') + '<td><td>'
+ object.get('Frequency') + '<td><td>'
+ object.get('TIDY') + '</td><td>'
+ object.get('FirstTIDYDay') + '</td><td>'
+ object.get('TIDYTime') + '</td><td>'
+ object.get('SecondTIDYDay') + '</td><td>'
+ object.get('SecondTIDYApptTime') + '</td><td>'
+ object.get('ThirdTIDYDay') + '</td><td>'
+ object.get('ThirdTIDYApptTime') + '</td></tr>';
(function($) {
$('#tidy-appt-table').append(tidyAppts);
})(jQuery);
}
},
When I used this code, only the first 4 objects for each entry is displayed in the table but I get the correct amount of records which is 3.
(function($) {
$('#tidy-appt-table').append('<tr><td>'
+ object.get('Name')
+ '</td><td>'
+ object.get('Phone')
+ '</td><td>'
+ object.get('Address')
+ '</td></td>'
+ object.get('ZipCode')
+ '</td></td>'
+ object.get('Frequency')
+ '</td></td>'
+ object.get('TIDY')
+ '</td><td>'
+ object.get('FirstTIDYDay')
+ '</td><td>'
+ object.get('TIDYTime')
+ '</td><td>'
+ object.get('SecondTIDYDay')
+ '</td></td>')
+ object.get('SecondTIDYApptTime')
+ '</td></td>'
+ object.get('ThirdTIDYDay')
+ '</td></td>'
+ object.get('ThirdTIDYApptTime')
+ '</td></tr>';
})(jQuery);
}
i figured it out I removed the plus sign from tidyAppts+='' and made it tidyAppts=
Related
Here are all the code:
// jQuery is loaded already
var s = 'data:audio/mp3;base64,UQzAwAAAAAfdlRSQ0sAAAAEAAAAMTA5VENPUAAAAAUAAADJwbDJV1hYWAAAABAAAAAAd3d3LmZsYXNoOC5uZXRUSVQyAAAA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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFRBR9W+s6TL2LLEKHNjLmNoaW5hei5jb20pAAAAAAAAANW+s6TL2LLEKHNjLmNoaW5hei5jb20pAAAAAAAAANW+s6TL2LLEKHNjLmNoaW5hei5jb20pAAAAAAAAANW+s6TVvrOky9iyxChzYy5jaGluYXouY29tKSAgICAgAG0M';
// failed 1
var a = $('<audio>');
a.attr('src', s);
try{
console.log(a[0])
a[0].play();
}catch(e){console.log(e)}
// failed 2
var sound = new Audio(s)
sound.play();
The both ways are failed. Is there anything wrong with my code?
Thanks,
Your MP3 data is invalid. If you decode the base64 data and load the result in your browser, I doubt you'll hear anything.
If you replace the data with something valid, then it should work. Here's an example:
var s = 'data:audio/mp3;base64,//uQZAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' +
'AAAAAAAWGluZwAAAA8AAAA4AAAp9QACBQUHBwoKDxMTGBgcHCAgJSkpLi4yMjY7Oz8/RERKS' +
'lBVVVpaYGBlZWpvb3R0eXl+goKHh4uLkJCUmpqenqOjp6essbG1tbq6v8TEyMjNzdLS2Nzc4' +
'eHm5uzs8fX1+vr9/f8AAAA5TEFNRTMuOThyAksAAAAAAAAAABQwJAbATgAAMAAAKfXcScCrA' +
'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' +
'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' +
'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' +
'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' +
'AAAAAAAAAAA//sQZAAP8GUAPpAAElANIBegACIAAVABEgAASVAvgGLAAAgGAJAP/////8QO3' +
'qdw//////+o4+H6hgQDEEP/////XqS6vRfFv/////1LzL0ixOTIKgg//////bgwKUXPEYSV/' +
'X6X1Z3/+xBkCYzQbwBDiAEQCAiF+KAAAm+B1AMSQABAIC+AYcQACAQQzNEAEgH/////uoUpF' +
'q4vHBMP/////66yz9qjbiff1NuoNr/////+lz17lmyaEh/////+W64DdiBCTQf/////77elo' +
'v/7EGQTDdAqL8WAABP+C6AIsAACTYGIAQ4gBEAgLoAiBAAIBK1Yna4ADMeMbvjjf13/6+VgA' +
'UP0AE/ROAAhEI/c68JBn60Z+++gD5KvM00yEH/////25QBbligxEKAsBBUOiW32dug0//sgZ' +
'CCAAUchQZUEYAINwAhRoAgAinDHK7k5AAAAACODACAAAAAAaagDXgyOzB9C/rcWSHP3YVIP3' +
'91EkgPhS9lqjAAVwVgT5bTas+owEjGOLwNx2V9a6KRPDIiDxzhZv+/yBCBw2QPocFKB8aoA0' +
'hVRMAHzREtJALdZjczqtKXAnf/7QGQKAGG3LMzPJGACDoAYWOAIAIeksTUkmGnINIAhLACJM' +
'BcsnAjTO8bauViEfm5E3+3UvF6KRTxedAELjQjYWlDgltG0AUAAActZ/////v7GOvNgfJUyh' +
'AGDqNCbRtNAENji08nSwGMMCSZ5OPqH3zX9bODrellO1MAlq42DOk4VISMa3Qj0NAXMugusU' +
'T3pgAQBHOf/////o7ZSwP0AIEgCLKIDYapAQCADZtOAsGUwvXEL//tAZAsA4ekoTeEmGeIO4' +
'BhjACIAB7S5NCeYaMgogGIMAIgARsIO3JqDzjj0+dzUI8qIwIftFMpqe45wE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mm20xLoyb91i9UnecIcPsihmc2UtdkdtEwFe2YYR9upRjsTo48fjMCjABYD/////6CrNNCnv' +
'Qk+MuICAAQMdbAEWnzEswCsiUi6gcBphY4azzWJUWUmhsgsWz9RBXV6Wn/5TnWSAz82BtyNH' +
'chZkmODIpoHkAAR///////6FdWAgAEAo//7QGQDAOH5MFXp8htaCeAYsgACAIgQu1lHxMuYJ' +
'wBiBAAAAmgBEbWS2a5aykxWFXFx8AqJUQN31iGoVqTqGTb8co09PBfp3IlkCqVFbMjioW0KR' +
'UKiM9ajqZhxrAAMB///////0Zn0IAQW26AItrX3A0uCtxPd6y8BPn1pJaAnY8nU1Y/m/2RHh' +
'vJg4mYduN8A2a/6yd1se96LPjPhqM1FZOKXgH6FrH//////2vbnZJX4EAQU//tQZAIEYhEg1' +
'FFzG1INwBhjAAIACWTHSU1AdEgxAGH0AAgA2uADm+2uKQqFOS7h6JMgdpCwGxDbOiBRY4z96' +
'0h0iHpp2pmIuE+z84KhLzIC8mdQSc5HPB3aoU1KZ2Q28UaAADAB//////7nI84G0shAEEQAc' +
'+xar2IxGgcWlFqYzwf9uhlZQZkXhBGfKWSEAcupV5FJDdLsCYW00bTYU4abK/NAM55pAnkn6' +
'xLodHT0algx+0sjOp6CZAIABwBv//////+jYlVpgUABARp4Af/7UGQEAOJ4MdPrLTUSDAAYM' +
'QAiAInAu01NQRRIIQBjRAAIBHsM8ZmJU8sKBaeX1Mattupm1jVsQjlm/vKcKLIphMWfdYGc1' +
'Ne4mhCX6/okRWJzW2FdBnrKhC/vz53f18yCUvl6U/cpptIHAj/////9H6yjVvJpXCAABNrAD' +
'De7eNafiQQHs01LhuUNzMZZCB7hx+xnhTkgImWyzCtlyiCNPXdluJEpfbYaIkRxZLgpghqG8' +
'CFU9oS5UR02m2g9Iyzb6bBWx///////tfpVMoD/+2BkAQDiejHU6w9Dsg6gCFMAAkwJ7K1Np' +
'ekHyCmAYUgACADAAYMVlAHP1Vp79qusrVij/LlMYsFJj3X40uJQ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4fPIK2/0Rs2qskoapdGYpDblGi46OFSbCEITBYD/////' +
'/+tcCXBWnmhQEbJImwBWWD/+0BkBQDh8jFaaWNFTgpgGMEAAgEHkLlRLAyzaCwAIMAAiTB6c' +
'62EbVKv4BalGfwVkMbvHasxJHwlpKqwrSqfBYQjirVfdAAVW7+f93EUHUmYLjxa6YumAY///' +
'////uepzVtAAA3JgcyywvU224K7+/zLfPC9357IubwyZS55JfUiIt6e8ZTBHofFIsE2RzdBZ' +
'nfzSWd3AQztoaPkNvP//////ZlqJtItCVWWEUAmySNsAZlC3P/7QGQFgOH8MdpowEKODOAYq' +
'QAiAIhgrVXsDNUoIpjiSAGHxL54VyAXg5cz/lBc8sM06rOMSVOVfGjWuYSuL/tGjhHFB8v9j' +
'hq1nMpwsIZt3Vn2caw29C1gwAAABgNv//////0dAogAgABRa2UgBz87mNjOgThu2b/PzqFRE' +
'spMv/PsNuE+c82lFRs5Cid2ILLkx3pzblt6R57CuFc1hX9HONq8zxCpUrABc3v7QkzQG3Iwy' +
'CrJ//tAZAKA4fEyWekHMrwMQBhiAAIAh4SzVaY8bKg5gCFIAAkwImwAmrrDoF8WGvxLLIniE' +
'OQkxDJbZhmjkzHhJ5bC6KiPk4Glnz3Am6r5r7O9u1YmRtWFVmG7mZpmAAQH//////0rVXlyb' +
'hAYAFtbSgA76M/D49gK5Ten5cBtzu+L/pNxBM3WNdTDlTOKhn23MnbmUJlkEfPNo1qMRi41o' +
'haEjNcZWQP/////9fHpEgYFEh0mDYD/+1BkAQDh+StT4wsbugwACKIAAk0IUJlJI2BliCeAY' +
'sQACARAAncsBz8p25YxkxFm3Xyz1nJCGEmhZ87RRLFmaztxftZJkvzciCisQNpLuf27uZcFH' +
'mRbGiI4ekw9lAIGAEgH//////vTamHFEgAH1xgZIUU5KG1EizfJFyxf1AZny8laLc5SXVU8y' +
'He4IOBB0PhnO2wYlyhwmhigplAExA5nVEYYmj7HDaWaC4JYlj//////8gnS8VpxgIAuyOJQA' +
'VvAj6b1Q3hPTYm3vbWD//tAZAsA8hIt1WnmHKoKoBiwAAIBh8ipS4HgZYgjAGDAAIgAYaMRc' +
'+EwnAq4g/4xFb7bOxYYtt+sZmcoXDc2MmA/3MoDGPM19bDjUPvF9Fb///////KXKe0VNFAAA' +
'ARrlAEvIISqqmXcnJ2//9g0xxfLUi/memMWnXQGzsfZCwpZHlC8i18s4TjhRi73BKru7RBB2' +
'UWHpdTT//////9xi2svIAAC2SAVQ/GWBSmE6Mi5apt1mEj/+0BkCgTiDy1RyRkx0AvgGIMAA' +
'gAIDMVETAzTCDKAYYgACAIBiz17efv1j3u+7vnZl/PMLRmt3WSiL7F6izwXMuBqjtp3OnPve' +
'sxtaNcrEjQwAADAB///////9wohVHAxzlPfjzJxiBaGLyPcZ1XS0OXX8qPfP453FGO81yhU8' +
'qwI/Myhju8NH/f4cT31epi8nt2+whlaUmxSffMT7bAf//////cBkgKGRqWVSAXGgseWEIYOZ' +
'//7QGQFifIIJVEQejFiDUAYYwACAAhInUTMjTMILQBggACIAB+F0sc3egcpDPfXud3haSD78' +
'd69JKLKyEah77t6Tp9fPaUJu2EUplGNvkQrg+W0KcBC9JAj5wAAKAP//////y9AtUVDdXMdU' +
'/ZK3y9yOZ/amNXPShprPPL7y2berqsFvhOwoQTGOGMEFJqzWmLKVWYjcTampadJIIpgKflFz' +
'kDKhlz17yCP+r////2XkbaxGB2w//tQZACA4hQu0ssDNLoMgBjSACIBh/SVRsyM0wgkGOFMA' +
'IvBAApYIC9WpZvOhxLAUipyc7l9dogIbSYSPuP+23D04QaGrTYKu/d9mNsstVtkNXCYff5KA' +
'r/fNG6xeW0NYdzaVjcgAID//////2mk+pQAQBzIgWfufYuusVCx5ymot9zstbE6oXN45fhMJ' +
'sY99BxAgyiPVxGZvCP5uTnQ+YuAFKNb6IItRij8stBsBuHk2aAELQvmUxsTShAAAABUrAc1K' +
'bVbDq+RvFA9+qyAyf/7QGQKgOIFJlJjD0JCBwAY8AACAYgovUkh5MWIJJkhCACPwAF5hndRb' +
'ddFG7+byBBtvibFormOIj9oleUlnuVnS6uwgKc5cIILZrRWF6iv///////TTKAAPVUAJZ4TV' +
'UtAyWXT+v1bhgJBkGFP/90qhl7ntKO+v7qwmIem1p7tM6hnrMpfo+M1uaAn/rN+tBTw0eXYj' +
'hcgwG+NiIQ0FRB3wBypgCYDFy0JIUkXVkX5/XaUBw7m//tAZAqE4f0l0bB5QWILoBkBACIBi' +
'MzJQMTkxYAugCBAAIkw56/jhXWnY7u4EUYsY/RlWE557uFSajrs4d3Q82u0QDaKFbzFTojfb' +
'AsIUCH//////oe4XWVmYJQAAdRiNdcp0dUJ0nxhWOPZYKrnOBDecO3tWVE0RrfZKX0JI9mpx' +
'75sXWfPiuVEVLx/sXG/I9Ck7dnaSa9/bfszT/WO1Tf/////8gWN3HaFiaogAACUQaAL263/+' +
'0BkBIRiDjBRUwMssgxgGGEAIgAH2MdAQeRjyCuAYeQACAJHTX5SQgKfwbR3tXaQqXUK5+NjP' +
'SjdB6nPBav8QPzapXJsrWRmidrHst7giuuz3QRoRUYaOLMJzlQQ//////9UKnmNcRWipAALu' +
'Eu1vJCBs6CZ+pXrcEOLV9WuXuZjocC495AUwn6LgtDNQklImgRj1CINdk+gCmQGL+L1vJvUu' +
'nvBbh5ABAW///////2NogIICf/7UGQBgOIYKNAw2RliCwAYgQAiAIgcx0LsGHJIJYBjSAAIB' +
'IBGRafTphxwiqg23qthXBkIsnSYRul3mghdfz28cQaai8NwyIqdgOyYOMfm5nwDBqoGRDATC' +
'gQQ59TluqA8wnAEP//////oJE6TakAIoEQAXvp88qXAdkUThm3vHdx6xv9/l3meFMnn3vb9x' +
'saXJy9pvXIchcuzi+Zv5fUII9BIJcJg0k/r3J7JCYRJAH//////t7tK6kApogwAc12miNyVk' +
'qCi03IuYa4hzGz/+0BkCwjh/RzROw8zkg7AGGMAIgAIuMc+pORliCoAIUgAiAJd8GavRYvu0' +
'cveMu3+MAeVSYd3RRP2MmXSWin3Zk4r+3lejA9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Mh7RpY2ySrd4eJQx1ACB10VFeVnHxAggBAOUChtGdiApBTYzmchrxUrWgW/nPZS4v' +
'eUI5ZuPuwKguDIsvuVkfuTCHTdijMagwlRGH3d0jlH6KPJpQ+qM/9htu8emaErUB///////E' +
'aQAWgQL1VCCAiDGiCQBF3SHmBkONxtG/qmC//tAZAoA4icyUuniNIgLYBhjAAIACQjJPMNlB' +
'YArAGHMAAgA70n3S0ENtU4+0GwHXXpYSSzbPbNeFNiKdfw+l7ueP3z+LZhrp5Npi02dbWk0v' +
'LviDAAAUAf//////696wIQAAAQaMRMFdJoHvq401WxFyK63Yz38TGIU46TGiCsDhXNJVLMGz' +
'KdJcyiq5EQqJqJxuOtVSkWSsMCtnveijyBWbem0guLMgwAf//////31uOLVSAj/+1BkAQBiW' +
'jDPMwg1MgkgGFEAAgCIeK9HR+BwSDAAYjQACAABAS3CzUkEQjAPNDnIAwu8TvZdO55SShlRk' +
'AoXe1nl9xoNWozPHhQl63mWVRtsSsItywYQlOJtX2Xi7RraIF6ObJfYtLYLRcGBgI///////' +
'1VyFgoJNJA0ARI79giahARWWLDlxhQqeBuzxTuBEt7ubv58lUsEg7vYMQPLVHqF7QILiKHB+' +
'CJVn6eDBr6ovkwSFgbTePOIAAYALv//////68uqCBAAz4gBbWAb//tQZASFYjMwTyjYMXILo' +
'BhzAAIACWTLOAyhMwAugCGgAIkyqKliHKsxATXs6mpRVtAtE9zvddmoFx07tzoAou8gzWZ36' +
'9qnSoDw2l5DG5tNMAY4nLnxpGJtW2WnO4VtAeAADQB///////+bF5NUqxLUYdI6CYTF33tZX' +
'3whFW7hN4thD2529v2DAQ7ztd8j3FtSBxs1tVqVn2E7Xkno56/eqqIRrYppTIwNNQWpco+Em' +
'rE80ShC1gASPp//////2rSmQgACBABIFF2U/ueiAP/7UGQGAeJYMc9bJlzCDGAYMQAAAIj0y' +
'T8DYMWAOQBgzACIAPCjGrlLfpFEkgX5gC/9uqbgkIv/BtEg3RVrUveqTcXjGd8a7ap7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OgUvWY2IlZh2GumWPLQD//+X///fFGMcONPWv/////V/qBo8sNFQ0T' +
'EFNRTMuOTguMqqqqqqqqqqqqqqqqqr/+xBkC4/wAABpAAAACAAADSAAAAEAAAGkAAAAIAAAN' +
'IAAAASqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq' +
'qqqqqqqqqqqqqqqqqqqqqqqqg==';
var a = $('<audio>');
a.attr('src', s);
try {
a[0].play();
} catch(e){console.log(e)}
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<img src="https://i.stack.imgur.com/DkIzu.jpg" width="400"/>
I have this json data
somehow i displayed this part of data in html
and want to display this part of data
into div in html but i am unable to display it using for loop and don't to how to start each function from index 1 as index 0 in personal details data.
here is my code
var url = "http://localhost/ReadExchange/api.php";
$.getJSON(url, function(data) {
if (data) {
alert("hey got the data" + JSON.stringify(data));
var arr = data.length;
//$.each(data, function(i,element) {
var element = data[0];
$("#postjson").append(
'<div id="' + element.id + '">' + '<p>' + 'FirstName:' + element.FirstName + '<br/>'
+ 'MiddleName:' + element.MiddleName + '<br/>' + 'LastName:' + element.LastName + '<br/>' + 'Gender:' + element.Gender + '<br/>' + 'Location:' + element.Location + '<br/>' + 'Email:' + element.Email + '<br/>' + 'Mobile:' + element.Mobile + '<br/>' + '</p>' + '</div>'
);
for (var i = 1; i < arr; i++) {
$("#postjson").append(
'<div id="">' + '<p>' + 'BookTitle:' + data[i].data.BookTitle + '<br/>' + 'BookGenre:' + data[i].data.BookGenre + '<br/>' + 'BookWriter:' + data[i].data.BookWriter + '<br/>' + 'Gender:' + data[i].data.BookDescription + '<br/>'
+ '</p>' + '</div>'
);
}
} else {
return;
}
You can use Array.prototype.splice()
data.splice(0, 1);
then iterate data array at for loop, with i set to 0
var data = [{abc:123}, {def:456}];
data.splice(0, 1);
for (var i = 0; i < data.length; i++) {
alert(JSON.stringify(data))
}
I've a hidden field on order form that store guid of parent account of selected contact. Now, in following code snippet I am trying to compare an account guid with that stored in hidden field. But it is returning zero length.
function getOrdersDetail(accountId)
{
var query =
"<a:ColumnSet>" +
"<a:AllColumns>false</a:AllColumns>" +
"<a:Columns xmlns:b='http://schemas.microsoft.com/2003/10/Serialization/Arrays'>" +
"<b:string>createdon</b:string>" +
"</a:Columns>" +
"</a:ColumnSet>" +
"<a:Criteria>" +
"<a:Conditions />" +
"<a:FilterOperator>And</a:FilterOperator>" +
"<a:Filters>" +
"<a:FilterExpression>" +
"<a:Conditions>" +
"<a:ConditionExpression>" +
"<a:AttributeName>new_accountid</a:AttributeName>" +
"<a:Operator>Equal</a:Operator>" +
"<a:Values xmlns:b='http://schemas.microsoft.com/2003/10/Serialization/Arrays'>" +
"<b:anyType i:type='c:string' xmlns:c='http://www.w3.org/2001/XMLSchema'>"+ accountId +"</b:anyType>" +
"</a:Values>" +
"</a:ConditionExpression>" +
"</a:Conditions>" +
"<a:FilterOperator>And</a:FilterOperator>" +
"<a:Filters />" +
"</a:FilterExpression>" +
"</a:Filters>" +
"</a:Criteria>" +
"<a:Distinct>false</a:Distinct>" +
"<a:EntityName>salesorder</a:EntityName>" +
"<a:LinkEntities />" +
"<a:Orders/>" +
"<a:PageInfo>" +
"<a:Count>0</a:Count>" +
"<a:PageNumber>0</a:PageNumber>" +
"<a:PagingCookie i:nil='true' />" +
"<a:ReturnTotalRecordCount>false</a:ReturnTotalRecordCount>" +
"</a:PageInfo>" +
"<a:NoLock>false</a:NoLock>";
var orders = XrmServiceToolkit.Soap.RetrieveMultiple(query);
alert(orders.length);
}
i need to append a table but i do it the wrong way.. I have this:
$("#times").append('<table id="departure_' + i + '" width="50%"> <tbody><tr><td>' + data.times[i].destination.name + '</td><td id="appendLate' + i + '">' + time + '</td><td>' + data.times[i].track + '</td><td>' + data.times[i].train_type + '</td><td>' + data.times[i].company + '</td></tr></tbody></table>');
this masive line make no table but alot of tabels.. hard to style.
how can i fix this?
see in action here: http://codepen.io/shiva112/pen/JGXoVJ?editors=001
The problem is that you are appending the whole table in a for statement. You should do something like this
// Select or create a table here
var table = $("#my-target-table");
var tableContent = "";
for (var i = 0; i < data.times.length; ++i) {
tableContent += '<tr><td>' + data.times[i].destination.name + '</td><td id="appendLate' + i + '">' + time + '</td><td>' + data.times[i].track + '</td><td>' + data.times[i].train_type + '</td><td>' + data.times[i].company + '</td></tr>'
}
table.find('tbody').html(tableContent);
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
UPDATED CODE
CURRENT ERROR: Uncaught TypeError: Cannot read property 'id_cursa' of undefined
I really don't know which may be the problem ???
function locurilibere(data, callback) {
var URL = Path + 'rezervaribilete/locurilibere/' + data;
$.get(URL, function(obj) {
if (obj.raspuns === "nu") {
callback(true);
} else {
callback(false);
}
}, 'json');
}
function populateCurseDus(de_la, pana_la, data_plecarii) {
var data = de_la + "-" + pana_la + "-" + data_plecarii;
$.get(Path + 'rezervaribilete/listCurseDus/' + data, function(o) {
for (var i = 0; i < o.length; i++) {
var id_cursa = o[i].id_cursa;
var datalocuri = id_cursa + "-" + data_plecarii;
locurilibere(datalocuri, function(result){
if (result) {
$('#cursedus tbody').append('<tr style="background:red;"><td><input type="radio" name="id_cursadus" value="' + o[i].id_cursa + '" disabled></td><td>' + o[i].cod_cursa + '</td><td>' + o[i].de_la + '</td><td>' + o[i].pana_la + '</td><td>' + o[i].ora_plecare + '</td><td>' + o[i].ora_sosire + '</td><td>' + o[i].id_transportator + '</td><td>' + o[i].id_traseu + '</td></tr>');
} else {
$('#cursedus tbody').append('<tr><td><input type="radio" name="id_cursadus" value="' + o[i].id_cursa + '"></td><td>' + o[i].cod_cursa + '</td><td>' + o[i].de_la + '</td><td>' + o[i].pana_la + '</td><td>' + o[i].ora_plecare + '</td><td>' + o[i].ora_sosire + '</td><td>' + o[i].id_transportator + '</td><td>' + o[i].id_traseu + '</td></tr>');
}
});
}
}, 'json');
}
It will not work as expected because of asynchronous nature of ajax request, you a callback to fix it
function freeseats(data, callback) {
var URL = Path + 'bookings/freeseats/' + data;
$.get(URL, function(obj) {
if (obj.raspuns === "nu") {
// alert("no");
callback(true);
} else {
// alert("yes");
callback(false);
}
}, 'json');
}
// ********************************* second
// **************************************
function populateDepartures(from, to, departure) {
var data = from + "-" + to + "-" + departure;
$.get(Path + 'booking/listDepartures/' + data, function(o) {
$.each(o, function(index, item) {
var id_flight = item.id_flight;
var dataseats = id_flight + "-" + departureDate;
freeseats(dataseats, function(result) {
if (result) {
alert("no more seats");
$('#cursedus tbody')
.append('<tr style="background:red;"><td><input type="radio" name="id_cursadus" value="'
+ item.id_cursa
+ '" disabled></td><td>'
+ item.cod_cursa
+ '</td><td>'
+ item.de_la
+ '</td><td>'
+ item.pana_la
+ '</td><td>'
+ item.ora_plecare
+ '</td><td>'
+ item.ora_sosire
+ '</td><td>'
+ item.id_transportator
+ '</td><td>'
+ item.id_traseu + '</td></tr>');
} else {
alert("there are free seats");
$('#cursedus tbody')
.append('<tr><td><input type="radio" name="id_cursadus" value="'
+ item.id_cursa
+ '"></td><td>'
+ item.cod_cursa
+ '</td><td>'
+ item.de_la
+ '</td><td>'
+ item.pana_la
+ '</td><td>'
+ item.ora_plecare
+ '</td><td>'
+ item.ora_sosire
+ '</td><td>'
+ item.id_transportator
+ '</td><td>'
+ item.id_traseu + '</td></tr>');
}
});
});
}, 'json');
}
i think I have deciphered what you need. Please take a look at this jsFiddle Link and see if this serves your question.
Here's the code:
var boolFlag = false;
var firstFunc = function (){
if(boolFlag === false){
boolFlag = true;
return 'yes';
}else{
boolFlag = false;
return 'no';
}
};
var secondFunc = function () {
return firstFunc();
};
$('#myButton').click(function (){
if(secondFunc() == 'yes'){
console.log('hello world, you said: YES');
}else{
console.log('hello universe, you said: NO');
}
});