|
-
Jun 3rd, 2002, 07:58 PM
#1
Thread Starter
Hyperactive Member
Possible?
Ok, what I need is the following..
I have 2 list boxes which a user selects values from. When they press Calculate, I want it to then take these values and along with some other variables, do some math and then on a popup page display the results.
the prob is, my server doesn't allow ASP (they say it takes too much bw up or something)
Is it at all possible to acomplish this in Javascript or CGI (or anything else) without using Cookies??
Thanks
-sac
-
Jun 3rd, 2002, 09:58 PM
#2
Addicted Member
I would think this is the exact thing Javascript is for. You don't need a server to do this, Javascript will do it for you. I haven't used Javascript, and my book's in the other room. If you need actual code, post the page and I'll add the JavaScript to it.
-
Jun 4th, 2002, 04:16 AM
#3
Thread Starter
Hyperactive Member
Code:
<form name="form1" method="post" action="newpage.html">
<table width="31%" border="1" align="center">
<tr>
<td>
<div align="center"><b>Amount</b></div>
</td>
<td>
<div align="center"><b>Days</b></div>
</td>
</tr>
<tr>
<td>
<center>
<select name="Amount" size="1">
<option value="10000" selected>Below 10,000</option>
<option value="30000">30,000</option>
<option value="50000">50,000</option>
<option value="80000">80,000</option>
<option value="100000">100.000</option>
</select>
</center>
</td>
<td>
<center>
<select name="Days" size="1">
<option value="10" selected>10 Days</option>
<option value="20">20 Days</option>
<option value="30">30 Days</option>
<option value="60">60 Days</option>
<option value="70">Above 60 Days</option>
</select>
</center>
</td>
</tr>
</table>
<center>
<table width="82%" border="0" height="29">
<tr>
<td width="91%">
<center><input type="submit" name="submit" value="Calculate"></center>
</td>
</tr>
</table>
</center>
</form>
is the code for my form.. mght need some retweaking since I had to adjust some of it from my asp code.. i dont know im tired
-sac
-
Jun 4th, 2002, 11:14 AM
#4
Frenzied Member
what you can do is
don't put a submit button but a simple button
on the click of this button build an url with all you form info
ex: "../myPopUpPage.html?amount=" + document.forms[0].amount.value + "&days etc...
then pop up the new window with this url, on the loading of
your new window, parse the url to gather all the needed info
and then use javascript to write you html
document.write "<html>"
etc...
i hope i did'nt confused you!!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|