|
Hello,
I would appreciate if you could help me with the question I have.
I have created an external javascript(calculate.js) that has a function called calculate and this function calculates a price
depending on the dates the user select.
What I am trying to do now is to run this method in an php page and its result to display it in a table like the example:
<table>
<tr>
<td>calculate(1,2,2,0)</td>
<tr>
</table>
I have put in the head tag the code where is the javascript
<script language="javascript" src="calculate.js"></script>
But I don't know how to display the result of what that function returns.
I manage to do it as a hyperlink and is working but I want just to display to a page without the user click on it.
<td height="39" colspan="4" class="table2"><a href="javascript:calculate(<? echo $dropoffperiod; ?>,2,0,1)"> see price</a></td>
Can you please help me how I can do that?
Thank you,
Xenia
Last edited by xenia : 05-04-2006 at 09:08 AM.
|