Posts

Showing posts with the label JSP results on the same page

Stock Market Real time dashboard in Google sheet

Image
Here’s the step-by-step process for creating a Google Sheets dashboard for real-time stock market data in a point-by-point format: --- Step 1: Setup the Google Sheet 1. Open a new Google Sheet. 2. Rename the sheet to something like "Stock Dashboard." --- Step 2: Enable Real-Time Data with GOOGLEFINANCE 1. Use the GOOGLEFINANCE function to fetch stock data. 2. Example formulas: Current Price: =GOOGLEFINANCE("TICKER_SYMBOL", "price") Opening Price: =GOOGLEFINANCE("TICKER_SYMBOL", "open") 52-Week High: =GOOGLEFINANCE("TICKER_SYMBOL", "high52") 52-Week Low: =GOOGLEFINANCE("TICKER_SYMBOL", "low52") Market Cap: =GOOGLEFINANCE("TICKER_SYMBOL", "marketcap") --- Step 3: Create Columns for Data 1. Add headers in Row 1: Stock Symbol Current Price Open Price 52W High 52W Low Market Cap 2. Enter stock symbols (e.g., "GOOG", "AAPL") in Column A. 3. Use the GOO

JSP and Servlet Form Submission without page refresh show results on the same page using Jquery AJAX

Image
Code Snippet HTML Form  <form id='ajaxform' name='ajaxform' action='ajaxformexample' method='post'>  First Name: <input type='text' id='firstname' name='firstname' size='30' required/><br/>  Last Name: <input type='text' id='lastname' name='lastname' size='30'required/><br/>  Email:  <input type='email' id='emailid' name='emailid' size='30'required/><br/>  Password:  <input type='password' id='pwd' name='pwd' size='30'required/><br/>  <input type='Submit'/>   <div id='content'> </div> </form> the above HTML Form uses post method and url servlet redirect to " ajaxformexample " Javascript Code  var form = $('#ajaxform'); // id of form tag  form.submit(function () {  $.ajax({