To Display the 'Last Modified' message in JSP

To Display the 'Last Modified' message in JSP

I have to display the "Last Modified" auto save message in a portlet page at the right end corner using JSP I have used this below coding but I'm not getting the solution can anyone help me with the solution?

I have written one function inside the script:

function saveProjectDetails(id){

         var rowNo = id.split("-")[1].split("Project")[1];
         var colNo = id.split("-")[0].split("txtWeek")[1];
     var projcode=dojo.byId("txtProject"+rowNo+"-Code").value;
     var weekId = dojo.byId("txtWeek"+colNo).value;
     var year = '<c:out value="${allocateResBean.headerBean.year}"/>';
    var actualHrs = dojo.byId(id).value;
    var userId = '<c:out value="${allocateResBean.userid}"/>';     
    dojo.xhrGet({     
    url:"<portletx:resourceURL><portlet:param name='action' value='assignusersdetails' /></portletx:resourceURL>",
    content: {userid:userId,wkid:weekId,projectCode:projcode,yr:year,ahrs:actualHrs},  
       load: function(data){
            var element = dojo.byId("savedNotification");
        var time = new Date(); 
        element.innerHTML="Last Saved:"+time.toDateString()+" "+time.toLocaleTimeString();  
    }
});
}

-->In JSP I've called the function in the 'On Change' in the below code

<tr>
<td align="center">
<input type="text" size="3" maxlength="2" name="txtWeek2-Project${rowNo}-Actual" id="txtWeek2-Project${rowNo}-Actual" 
value="<c:out value='${project.week2.actualHours}'/>"  onKeyPress="return validateCharacter();"
onKeyUp="return calculateTotalHrs(this.id);" onFocus="changeStyle(this.id);" onChange="saveProjectDetails(this.id);"/>
</td>
</tr>

-->And in outside of the table row I've used div function.

<div id="savedNotification" style="float:right">

</div>

-->I'm using the text box named Actual Hours when i change anything in that textbox 'Last Modified' Message should be displayed

View Answers









Related Tutorials/Questions & Answers:
To Display the 'Last Modified' message in JSP
To Display the 'Last Modified' message in JSP  I have to display the "Last Modified" auto save message in a portlet page at the right end corner... Modified' Message should be displayed
how to display the email message in jsp
how to display the email message in jsp  hi every one .. i am new from this industry please help me to display the email message in jsp page please send me sample code
Advertisements
Last modified time of a webpage
Last modified time of a webpage  how can we get the last modified time of a webpage using java
Last modified date of a folder
Last modified date of a folder  How to get the last modified date of a folder specified by a link in html
ModuleNotFoundError: No module named 'django-last-modified'
ModuleNotFoundError: No module named 'django-last-modified'  Hi...: No module named 'django-last-modified' How to remove the ModuleNotFoundError: No module named 'django-last-modified' error? Thanks   Hi
ModuleNotFoundError: No module named 'django-last-modified'
ModuleNotFoundError: No module named 'django-last-modified'  Hi...: No module named 'django-last-modified' How to remove the ModuleNotFoundError: No module named 'django-last-modified' error? Thanks   Hi
ModuleNotFoundError: No module named 'djangorestframework-last-modified'
ModuleNotFoundError: No module named 'djangorestframework-last-modified' ...: ModuleNotFoundError: No module named 'djangorestframework-last-modified' How to remove the ModuleNotFoundError: No module named 'djangorestframework-last-modified'
Sort last modified file time in java
Sort last modified file time in java  How to sort the last modified file time in java?   import java.io.*; import java.util.*; import..."); System.out.println("Last modification time : " + sdf.format(d)); } else
C file Last Modified Date
C file Last Modified Date       This section demonstrates you to find the last modified date... the last modified date and time.ADS_TO_REPLACE_1 We have used some conversion
depending on the form name i have to display the message
on the form name i have to display the message. for example, i have 3 jsp pages... on contact us after entering all details page has to display message like"thank u for contacting us" if user clicks on suugest display message like"thank u
Java file last modified date
Java file last modified date In this section, you will learn how to get... it. You can use the lastModified() method to get the file?s last modified...); System.out.println("The file was last modified on: " + dateString); } } Through
Display Errors using Message Resources - Struts
Display Errors using Message Resources  Hello.. I've a login page where i used applicationresources.properties to display errors for null values... required.. I want to display errors using message resources using
Display error message if data is already inserted in database
Display error message if data is already inserted in database   Display error message if data is already inserted in database Pls help me Thanks
How to display date in JSP?
How to display date in JSP?  How to create a simple JSP program which displays date on the page? Thanks
Getting the last inserted id using jsp
Getting the last inserted id using jsp  Pls how can i retrieve the last inserted id after submitting a form to mysql using jsp
display error message for dupliacate record in properties file
display error message for dupliacate record in properties file  ... one entry e.x.001,002,003,001 i want to display the error message "Duplicate.... import java.io.*; import java.util.*; public class Sample2 { String message
display image on jsp
is downloading on jsp. show i can open it. but i want to display that image on jsp...display image on jsp  how to display image from database which path is coming in string. i want to display image and its discription and price
Display Java in JSP
Display Java in JSP  please i need urgent help. How can i display Java Applet created in netbeans in JSP?. the Application involves MYSQL Database connection. Thanks
Display message on scroll Event
Display message on scroll Event In this tutorial, we will discuss about how to display message on scrolling of text area using jQuery scroll event... of it on time, it will display a message. Each time you scroll up/down it will show
display messages in short - JSP-Servlet
display messages in short  hi sir, i am getting a full text message and that is shown in the table after sending a email.But now i have... in javascripts or in jsp... Thanks and Regards Harini V
image display - JSP-Servlet
image display  how to display image that store in mysql database... column have BLOB datatype....  Hi Friend, Please visit the following link: http://www.roseindia.net/jsp/retrieve-image.shtml Thanks
How to display date in JSP?
How to display date in JSP?  How to create a simple JSP program which displays date on the page? Thanks   Hi, You should import...() %> Check complete tutorial at How to Create JSP Page? Thanks
display image using jsp
display image using jsp  display image using jsp and phonegap on emulator of eclipse   Here is a simple jsp code that displays an image on browser. <%@ page import="java.io.*" %> <%@page contentType="image/gif
Write a program to display grade message according to the marks
Write a program to display grade message according to the marks  pls give d answer how to Write a program to display grade message according to the marks     Write a program to display grade message according
dynamic display - JSP-Servlet
dynamic display  hi, i want to display dynamic values in drop drown box in a jsp page.these values are in the form of arraylist's object which... javax.servlet.http.*; public class DataServlet extends HttpServlet{ String page="/jsp
jsp image display
jsp image display  this is my saveImage.jsp file: <... message is"+e.getMessage()); out.print("Error"+e.getMessage... message is"+e.getMessage()); out.print("error"); } %> how can i create
cannot display an arrayList in JSP
cannot display an arrayList in JSP  Hello, My bean is called Zone, i got all Zones from sql Server with Hibernate. in DAO.Class: print("List zones... a servlet to a jsp. In servlet.class print("List result = dao.getListZone
display results on same jsp page
display results on same jsp page  is there any method to display search results from database on the same jsp page where i give the inputs using struts 1.2
display results on same jsp page
display results on same jsp page  is there any method to display search results from database on the same jsp page where i give the inputs using struts 1.2
display results on same jsp page
display results on same jsp page  is there any method to display search results from database on the same jsp page where i give the inputs using struts 1.2
Jsp Image Display
Jsp Image Display  Hi,i need to display image in a Box like... to save it in a database....Kindly post JSP codes..Its Urgent, I m very thankful t...;<TITLE>Display file upload form to the user</TITLE></HEAD> <
Time display - JSP-Servlet
Time display   In a web application or ina website if we display the time getting as system time, whether it is server' system time or client' system time. Is there any difference between getting time using java Date
Jsp not display desired result - JSP-Servlet
Jsp not display desired result  Hello all, I want to be able to display picture from Ms Sql 2000 using JSP. Below is the code I used but does not display anything. Please assist me. Thanks
Further advice needed on my last question - JSP-Servlet
Further advice needed on my last question  Dear Experts, I refer to your last solution regarding my matching codes. After I tried out your...:\Documents and Settingsapache\jsp\enter_jsp.java:132: ')' expected } catch
display messages in short - JSP-Servlet
display messages in short  dear sir, I am able to send a email and also i am able to getting a message from that email ,storing... a starting few words from that message rest will be few dots or something.when mouse
image display in jsp - Java Beginners
image display in jsp  i uploaded the image and how can i print that image in next jsp page....  Hi friend, read for more information, http://www.roseindia.net/jsp/file_upload/employee_upload_profile_image.shtml
Display message automatically using Java Swing
Display message automatically using Java Swing Here we are going to display message automatically after regular interval of time. For this, we have..., it will display the specified message automatically. Here is the code
display date to jsp from database
display date to jsp from database   display date to jsp from database to calender if the start date and end date is available than calender date will disappeared or non-clickable and its show in red color. those date
validating credentials and displaying error message in login .jsp if not valid
validating credentials and displaying error message in login .jsp if not valid  hi, i want to validate user name and password against my database table if not valid i have to display error message in my login page.how to do
How to display the data column on jsp
; </form> It display the data of last database server...How to display the data column on jsp  My requirements: Display total..."; } jsp code: <form id
How to Display an alert message when nothing is selected in jspinner in java?
How to Display an alert message when nothing is selected in jspinner in java?  Hello, i'm trying to code a jspinner in java and i want to display a message when nothing is selected. My initial value is 0 min value = 0 max value
display of colors in a table - JSP-Servlet
display of colors in a table  Hi, If i have a table of 4 by 4 boxes, numbering from 1-16 in sequence, how do i make them display one column of one..., Try the following jsp code: table.jsp: Column1,Row1
display messages in short - JSP-Servlet
display messages in short  dear sir, i am sending a mail and then displaying all subject, matter and attached file in the table .But in table i have to get a short message i.e starting few words then dots like that ,when a mouse
display messages in short - JSP-Servlet
display messages in short  dear sir, i am sending a mail and then dialaing all subject, matter and attached file in the table .But in table i have to ge a short message i.e starting few words then dots ,when a mouse
how to display data from database in jsp
how to display data from database in jsp  how to display data from database in jsp
data are not display in JSP from database - JSP-Servlet
data are not display in JSP from database   i want to finding some data through a SQL query from SQL server database to a JSP page based on some... of this jsp page. like.. School Result and three request parameters 'class', 'from
display records with images problem - JSP-Servlet
with a unique id. Also i wrote i jsp that link to servlet in order to display..., Display images from database to visit ... http://www.roseindia.net/jsp...display records with images problem  hello, i am developing HR
search an element in arraylist and display in jsp page
search an element in arraylist and display in jsp page  Hello Can anyone help how to take input from user from a jsp page to search for a substing in arraylist in java class and display the list in jsp page Thanks
Retrieve image from database using servlet and display in JSP
Retrieve image from database using servlet and display in JSP  Hi, I am total new to JSP although I am learning it for the last few days. Now I want... servlet and display in JSP? Thanks
How to display multiple images in jsp
How to display multiple images in jsp  <%@ page import="java.io....()); System.out.println("st-7 "+brr); // display the image response.setContentType("image... "); } } catch (Exception e) { out.println("Unable To Display image"); out.println

Ads