Click here to Skip to main content
15,889,116 members
Home / Discussions / Java
   

Java

 
GeneralRe: Authentication and Encryption Pin
Anele Ngqandu2-Dec-14 3:02
Anele Ngqandu2-Dec-14 3:02 
QuestionWeb log preprocessing Pin
Member 107226751-Dec-14 18:39
Member 107226751-Dec-14 18:39 
SuggestionRe: Web log preprocessing Pin
Richard MacCutchan1-Dec-14 22:16
mveRichard MacCutchan1-Dec-14 22:16 
QuestionHow to correctly use the interceptor encrypt all address Pin
Member 1127235628-Nov-14 16:13
Member 1127235628-Nov-14 16:13 
QuestionRe: How to correctly use the interceptor encrypt all address Pin
Richard MacCutchan28-Nov-14 22:36
mveRichard MacCutchan28-Nov-14 22:36 
AnswerRe: How to correctly use the interceptor encrypt all address Pin
Member 1127235629-Nov-14 0:38
Member 1127235629-Nov-14 0:38 
GeneralRe: How to correctly use the interceptor encrypt all address Pin
Richard MacCutchan29-Nov-14 0:54
mveRichard MacCutchan29-Nov-14 0:54 
QuestionHow to set the result variable of a javascript of one div to another div tag Pin
Member 1126811126-Nov-14 22:27
Member 1126811126-Nov-14 22:27 
HTML PAGE:
<form id="detailsform">
    <label for="cust_name">Name</label>
    <input id="cust_name" type="text"/> 
    <label for="cust_id">Customer-ID</label>
    <input id="cust_id" type="text" />
    <label for="cust_phone">Phone Number</label>
    <input id="cust_phone" type="number" />
    <label for="cust_add">Address</label>
    <input id="cust_add" type="text" />
    <label for="cust_issue">Issue</label>
    <input id="cust_issue" type="text" />
    <label for="complaint_date">Date of Complaint</label>
    <input id="complaint_date" type="text" />
    <!--<label for="appt_date">Date of Appointment</label>
    <input id="appt_date" type="text" />-->
        <table align="center" width="100%">
            <tr>
                 <td align="left" width="35%"><a href="#historypage" style="text-                decoration:none">
                 <input type="button" value="Show History" data-icon="back" data-iconpos="right" id="History" onClick()="getHistory()"/>
                  </a></td>
                  <td align="right" width="35%"><a href="#assessmentpage" style="text-decoration:none">
                  <input type="button" value="Start Assessment" data-icon="check" data-iconpos="right" id="Assessment"/>
                   </a></td>
             </tr>
      </table>
</form>

<div data-role="page" id="historypage" data-theme="f">

   <div data-role="content">
      <form id="historyForm">
          <label for="hist_cname">Customer Name</label>
          input id="hist_cname" type="text" />
          <label for="hist_cid">CustomerID</label>
          <input id="hist_cid" type="text" />
       </form>

   <div id="emp_tb1" align="center" data-theme="b">Here are the details </div>
</div>'

SCRIPT:
JavaScript
function getHistory() {

    var cust_id = document.getElementById("cust_id");
    var myTable = '';
    myTable += '<table id="myTable" cellspacing=0 cellpadding=2 border=1>';
    myTable += "<tr><td>S.No.</td><td>Date</td><td>Time</td><td>Complaint(s)</td></tr>";
    var url = "http://localhost:8080/POS/rest/WebServices/getHistory/"+cust_id.value;


   $.getJSON(url, function(json) {

       $.each(json, function(i, v) {

           myTable += "<tr><td>" + v.date + "</td><td>"+ v.time + "</td><td>" + v.issue
           + "</td><td>" ;
      });

 });



what i have to do here is,when i clicked the button the function is called and the corresponding result is stored in mytable variable and the result varailbe has to be displayed in history page. here how to navigate from detailsform to historypage while calling the function???
AnswerRe: How to set the result variable of a javascript of one div to another div tag Pin
Richard MacCutchan26-Nov-14 22:57
mveRichard MacCutchan26-Nov-14 22:57 
GeneralRe: How to set the result variable of a javascript of one div to another div tag Pin
Member 1126811126-Nov-14 23:03
Member 1126811126-Nov-14 23:03 
Questionmd5 encription Pin
Trupti00125-Nov-14 20:23
Trupti00125-Nov-14 20:23 
AnswerRe: md5 encription Pin
Richard MacCutchan25-Nov-14 22:27
mveRichard MacCutchan25-Nov-14 22:27 
AnswerRe: md5 encription Pin
Richard Deeming26-Nov-14 1:49
mveRichard Deeming26-Nov-14 1:49 
QuestionHandling Unsigned Integers for Compatability Pin
Dominick Marciano24-Nov-14 15:50
professionalDominick Marciano24-Nov-14 15:50 
Questionwhats wrong with it? Pin
Member 1125103123-Nov-14 21:21
Member 1125103123-Nov-14 21:21 
AnswerRe: whats wrong with it? Pin
den2k8823-Nov-14 21:38
professionalden2k8823-Nov-14 21:38 
AnswerRe: whats wrong with it? Pin
Richard MacCutchan23-Nov-14 22:28
mveRichard MacCutchan23-Nov-14 22:28 
Question15 puzzle Pin
Member 1125103120-Nov-14 9:08
Member 1125103120-Nov-14 9:08 
GeneralRe: 15 puzzle Pin
PIEBALDconsult20-Nov-14 9:26
mvePIEBALDconsult20-Nov-14 9:26 
AnswerRe: 15 puzzle Pin
Richard MacCutchan20-Nov-14 21:53
mveRichard MacCutchan20-Nov-14 21:53 
SuggestionRe: 15 puzzle Pin
ZurdoDev21-Nov-14 2:24
professionalZurdoDev21-Nov-14 2:24 
QuestionGUI for many runs Pin
Roozmand Omid18-Nov-14 19:11
Roozmand Omid18-Nov-14 19:11 
QuestionRe: GUI for many runs Pin
Richard MacCutchan18-Nov-14 21:21
mveRichard MacCutchan18-Nov-14 21:21 
AnswerRe: GUI for many runs Pin
ZurdoDev21-Nov-14 2:25
professionalZurdoDev21-Nov-14 2:25 
QuestionCan we use kNN and k-mean at a same time? Pin
rushiraj_1118-Nov-14 7:32
rushiraj_1118-Nov-14 7:32 

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.