Show Bid Request
Small Javascript problem
Bid Request Id: 51556
|
|
|
Posted by: |
CBL (92 ratings)
(Software buyer rating 9.98)
|
Non-action Ratio: |
Very Good - 14.00%
|
Buyer Security Verifications: |
Excellent
|
Approved on: |
Mar 6, 2003 6:47:14 PM EDT
|
Bidding Closes: |
Mar 8, 2003 6:46:23 PM EDT
|
Viewed (by coders): |
84 times
|
Deadline: |
3/10/2003
TIME EXPIRED
|
|
|
|
Description:
I have a small client side javascript problem that I hope someone has a solution to!
Here are the details: I have an ASP page, I need to pass an ASP variable to Client Side Javascript.
But wait ... the tricky bit is that the ASP value isn't generated until the bottom of the page, whilst the javascript has to be at the top.
Here is a simplified example of what I'm trying to do:
<html>
<head></head>
<body>
<script language="JavaScript">
var getValue=document.getElementById("myValue");
alert(getValue.value);
</script>
<input type="hidden" name="myValue" id="myValue" value="<%=Request.QueryString("Test")%>">
</body>
</html>
It works fine if I move the script below the hidden field, but I can't do that in the actual script.
It needs to work in both IE and Netscape.
Any ideas?
Deliverables: 1) Complete and fully-functional working javascript as specified.
Platform:
IE/Netscape
Must be 100% finished and received by buyer on:
Mar 10, 2003 EDT
Deadline legal notes: All times are expressed in the time zone of the site EDT (UT - 5). If the buyer omitted a time, then the deadline is 11:59:59 PM EDT on the indicated date.
Remember that contacting the other party outside of the site (by email, phone, etc.) on all business projects < $500 (before the buyer's money is escrowed) is a violation of both the software buyer and seller agreements.
We monitor all site activity for such violations and can instantly expel transgressers on the spot, so we thank you in advance for your cooperation.
If you notice a violation please help out the site and report it. Thanks for your help.
|
|
Bidding/Comments:
|
All monetary amounts on the site are in United States dollars.
Rent a Coder is a closed auction, so coders can only see their own bids and comments. Buyers can view every posting made on their bid requests. |
See all rejected bids (and all comments)
Name |
Bid Amount |
Date |
Coder Rating |
|
|
|
This bid was accepted by the buyer!
|
$20 (USD)
|
Mar 6, 2003 6:58:06 PM EDT
|
9.88
(Excellent)
|
|
|
Easy...
<html> <head></head> <body onload=onLoadFunc()>
<script language='JavaScript'>
function onLoadFunc() {
var getValue=document.getElementById('myValue');
alert(getValue.value);
}
</script> <input type='hidden' name='myValue' id='myValue' value='<%=Request.QueryString('Test')%>'> </body> </html> Larry Williamson Creative Mind,
Computer Guru
|
|
|
|
|
|