Solved

getting value when page loads

Posted on 2006-11-27
1
235 Views
Last Modified: 2007-02-15

Hello, I am using the md5 script from http://pajhome.org.uk/crypt/md5/

when I have the script and the form below I add content into the input and onclick ing the button I get my value. I would prefer to have prefer to ave it so when my page loads a unique id wil be created, I would like to have the value set from time now() .

how can I have the value of now() populate the hex_md5(input.value) and show on my page, perhaps inside a hidden field or something. I am using asp. would be gratful for any help.

regards

kenny


<form><table class="indented">
  <tr><th>Input</th><td><input type="text" name="input" size="40"></td></tr>
  <tr><th>Calculate</th>
  <td style="text-align:center">
  <input type="button" onclick="hash.value = hex_md5(input.value)" value="MD5">
</td></tr>
  <tr><th>Result</th><td><input type="text" name="hash" size="40"></td></tr>
</table></form>
0
Comment
Question by:thatelvis
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 22

Accepted Solution

by:
WMIF earned 250 total points
ID: 18022662
i would put a script in the page to run.

<form><table class="indented">
  <tr><th>Input</th><td><input type="text" name="input" size="40"></td></tr>
  <tr><th>Calculate</th>
  <td style="text-align:center">
  <input type="button" onclick="hash.value = hex_md5(input.value)" value="MD5">
</td></tr>
  <tr><th>Result</th><td><input type="text" name="hash" size="40"></td></tr>
</table></form>
<script language=javascript>
var now = new Date();
document.getElementById('hash').value = hex_md5(now)
</script>
0

Featured Post

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I would like to start this tip/trick by saying Thank You, to all who said that this could not be done, as it forced me to make sure that it could be accomplished. :) To start, I want to make sure everyone understands the importance of utilizing p…
This demonstration started out as a follow up to some recently posted questions on the subject of logging in: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28634665.html and http://www.experts-exchange.com/Programming/…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…

696 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question