rush_it — 2012-01-18T11:31:55-05:00 — #1
I need to include a very simple calculator on a page in a joomla client site. Client wants to be able to update rates attached to the calculator and I'm not having them use ftp. Is there a way to insert a small form, have users use the calculator, and have the calculator return the result to the page for the user to see?
parkint — 2012-01-18T11:50:29-05:00 — #2
A quick search of GOOGLE returns a few very useful things like
rush_it — 2012-01-18T16:32:48-05:00 — #3
duncanm — 2012-01-24T23:31:55-05:00 — #4
One technique I have seen is to use innerHTML.
On the HTML page on which you want the results output, you define a span and give it a name. In this example, the span is named "output":
You could even put this span in a table.
document.getElementById('output').innerHTML = outputString;
(In this case, the output is a string variable named "outputString".)
rush_it — 2012-02-27T16:40:14-05:00 — #5
A coworker rewrote this for me in php and it works fine, in WAMP serving up an IE page. Trying to get the php to work in Joomla is another thing. Still working on that. Is there a way to mark this thread solved?