pop up window message to client system

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • r035198x
    MVP
    • Sep 2006
    • 13225

    #16
    Originally posted by jegadeep
    this is in swing..... i want to create pop up in java script ... please help
    When the db connection is made and it is determined that the value has changed, populate a value on the JSP page. You can use a hidden input field for that

    Code:
     if(valueCanged) { 
    %>
    <input type="hidden" name ="state" value ="changed" >
    <%
    }
    else {
    %>
    <input type="hidden" name ="state" value ="noChange" >
    <%
    }
    %>
    Now after the page finishes loading, you can call a javascript function which does something like

    [HTML]
    if(documen.form s['formName'].state.value == "changed") {
    alert("Chaged") ;
    }
    [/HTML]

    Comment

    • jegadeep
      New Member
      • Mar 2007
      • 32

      #17
      Originally posted by r035198x
      When the db connection is made and it is determined that the value has changed, populate a value on the JSP page. You can use a hidden input field for that

      Code:
       if(valueCanged) { 
      %>
      <input type="hidden" name ="state" value ="changed" >
      <%
      }
      else {
      %>
      <input type="hidden" name ="state" value ="noChange" >
      <%
      }
      %>
      Now after the page finishes loading, you can call a javascript function which does something like

      [HTML]
      if(documen.form s['formName'].state.value == "changed") {
      alert("Chaged") ;
      }
      [/HTML]
      ok thank you.. i will do it....

      Comment

      Working...