Click here to Skip to main content
15,889,795 members
Home / Discussions / JavaScript
   

JavaScript

 
Questionhow to create an exception in a java code having sql query? Pin
Member 102614258-Sep-13 22:56
Member 102614258-Sep-13 22:56 
AnswerRe: how to create an exception in a java code having sql query? Pin
SoMad8-Sep-13 23:21
professionalSoMad8-Sep-13 23:21 
AnswerRe: how to create an exception in a java code having sql query? Pin
Dholakiya Ankit10-Sep-13 0:00
Dholakiya Ankit10-Sep-13 0:00 
QuestionPlease help urgent Conversion of string to array Pin
Chandra Sekhar.bs4-Sep-13 19:12
professionalChandra Sekhar.bs4-Sep-13 19:12 
AnswerRe: Please help urgent Conversion of string to array Pin
twseitex9-Sep-13 7:47
twseitex9-Sep-13 7:47 
QuestionButton click event in Google Maps Pin
Member 991209128-Aug-13 11:57
Member 991209128-Aug-13 11:57 
AnswerRe: Button click event in Google Maps Pin
jkirkerx29-Aug-13 9:28
professionaljkirkerx29-Aug-13 9:28 
QuestionNeed help with a function error Pin
lowkar20-Aug-13 1:57
lowkar20-Aug-13 1:57 
hi, i am trying to build dynamic list for my jquery mobile app. but i get an syntax error... can any one check this code out pls. ty

XML
function appointmentList(url, title, row1, row2, row3, tlf, task, done, datetime, endDate) {
    /*var error_str = "Undefined";
    if (title == undefined || title == "") { title = error_str; }
    if (row1 == undefined || row1 == "") { row1 = error_str; }
    if (row2 == undefined || row2 == "") { row2 = error_str; }
    if (row3 == undefined || row3 == "") { row3 = error_str; }
    if (datetime == undefined || datetime == "") { datetime = error_str; }
    if (tlf == undefined || tlf == "")  { tlf = error_str; }    */

            String statusStr = "";
            if(done == "3") {
                statusStr = "<b style='color:#009933;'>Utført</b></span></li>";
            }
            else if(done == "2"){
                statusStr = "<b style='color:#FFCC00;'>Pågår</b></span></li>";
            }
            else if(done == "1") {
                statusStr = "<b style='color:#FF0000;'>Ikke utført</b></span></li>";
            }
            else {
                statusStr = "</span></li>";
            }

            var buildList += "<li data-role='list-divider'>" + title + "<span class='ui-li-count'>" + formatDateTime(datetime) + plainToHtml(' - ') +formatDateTime(endDate) + plainToHtml(statusStr);

            buildList += "<li>";
            buildList += "<div class='ui-grid-a'>";
            buildList += "<div class='ui-block-a'>";
            buildList += "<h4>" + plainToHtml(row1) + "</h4>";
            buildList += "<h4>" + plainToHtml(row2) + "</h4>";
            buildList += "<h4>" + plainToHtml(row3) + "</h4>";
            buildList += "<b>Tele:" + "<a href='tel:" + tlf + "'>"+ String(tlf) + "</a></b>";
            buildlist += "</div>";
            buildlist += "<div class='ui-block-b'>";
            buildlist += "<div  class='appIcons' style='float:left;'>";
            buildlist += "<a href='#nysak' data-transition='slide'><img src='icons/add-icon.png' style='margin-left:1em;'></a>";
            buildlist += "<a href='#siste' data-transition='slide'><img src='icons/saker.png' style='margin-left:1em;'></a>";
            buildlist += "<a href='#mote' data-transition='slide'><img src='icons/task.png' style='margin-left:1em;'></a>";
            buildlist += "</div>";
            buildlist += "</div>";
            buildlist += "</div>";
            buildlist += "</li>";

            return buildList;
}

QuestionRe: Need help with a function error Pin
Richard MacCutchan20-Aug-13 2:47
mveRichard MacCutchan20-Aug-13 2:47 
AnswerRe: Need help with a function error Pin
NotPolitcallyCorrect20-Aug-13 4:48
NotPolitcallyCorrect20-Aug-13 4:48 
GeneralRe: Need help with a function error Pin
lowkar20-Aug-13 20:55
lowkar20-Aug-13 20:55 
GeneralRe: Need help with a function error Pin
lowkar20-Aug-13 22:00
lowkar20-Aug-13 22:00 
GeneralRe: Need help with a function error Pin
Sunasara Imdadhusen22-May-14 0:24
professionalSunasara Imdadhusen22-May-14 0:24 
AnswerRe: Need help with a function error Pin
Dholakiya Ankit22-Aug-13 23:53
Dholakiya Ankit22-Aug-13 23:53 
AnswerRe: Need help with a function error Pin
wkhproject4-Sep-13 15:40
wkhproject4-Sep-13 15:40 
AnswerRe: Need help with a function error Pin
Dholakiya Ankit10-Sep-13 0:06
Dholakiya Ankit10-Sep-13 0:06 
AnswerRe: Need help with a function error Pin
lowkar10-Sep-13 21:59
lowkar10-Sep-13 21:59 
GeneralRe: Need help with a function error Pin
Sunasara Imdadhusen21-May-14 23:57
professionalSunasara Imdadhusen21-May-14 23:57 
QuestionJavascript Passing a variable Pin
Hawkeye10114-Aug-13 23:33
Hawkeye10114-Aug-13 23:33 
AnswerRe: Javascript Passing a variable Pin
Blikkies15-Aug-13 2:02
professionalBlikkies15-Aug-13 2:02 
GeneralRe: Javascript Passing a variable Pin
Hawkeye10115-Aug-13 2:29
Hawkeye10115-Aug-13 2:29 
AnswerRe: Javascript Passing a variable Pin
jkirkerx21-Aug-13 11:06
professionaljkirkerx21-Aug-13 11:06 
Questionkill the process using javasscript Pin
vasu_sri14-Aug-13 3:38
vasu_sri14-Aug-13 3:38 
AnswerRe: kill the process using javasscript PinPopular
Richard Deeming14-Aug-13 3:50
mveRichard Deeming14-Aug-13 3:50 
AnswerRe: kill the process using javasscript Pin
twseitex17-Aug-13 7:33
twseitex17-Aug-13 7:33 

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.