aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes How to read  the javascript related values into the html page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "How to read  the javascript related values into the html page " Watch "How to read  the javascript related values into the html page " New topic
Author

How to read the javascript related values into the html page

sudheer yathagiri kumar
Ranch Hand

Joined: Mar 22, 2011
Posts: 35
i am design the login page,if successful login (after validations) then goes to the html new page and displays the user which is successfully loged in... the value in javascript is identified using
uname1="document.getElementById("uname")";
i want this uname value into the html page which displays......

hello +username+ welcome to out Board //////
this is my task ...


thanks in advance .....
Robin John
Ranch Hand

Joined: Sep 10, 2008
Posts: 270

Lot of people do the validations server side.. but I assume from your question that you are validating client side in javascript ?

If you are doing so then how about creating a blank "div" and changing the innerHTML with the string value that you want using the getElementById() for that div.


Time is what we want the most, but what we use the worst. -- William Penn
karthik Suryanarayanan
Ranch Hand

Joined: Oct 07, 2009
Posts: 115

Are you using Jsp page or Html page?

"Learning is a Culture where your Eagerness & Curiosity plays a major Role".
sudheer yathagiri kumar
Ranch Hand

Joined: Mar 22, 2011
Posts: 35
html page..... client side validations
sudheer yathagiri kumar
Ranch Hand

Joined: Mar 22, 2011
Posts: 35

can you give me the clear example please

thanks in advance
Robin John
Ranch Hand

Joined: Sep 10, 2008
Posts: 270

you didn't provide any code for this.. so below is an example to help you out with the situation.

 
Don't get me started about those stupid light bulbs.
 
subject: How to read the javascript related values into the html page