Hello,
I am using the prototype.js http://prototype.conio.net library for a
project and so wanted to use the Insertion function to replace text
within a table. I want to simply replace what is within a <td> with the
updated
text, but I can only seem to add to whats there. for example
<td id="textToReplace">Some text to replace</td>
becomes
<td id="textToReplace">Some text to replace text gets added on</td>
granted I am using the Insertion['Bottom'] class, but there is nothing to
replace the text such as Insertion['Replace'] as far as i can tell
The behavior i am after is what the Ajax.Updater does, so
<td id="textToReplace">Some text to replace</td>
becomes
<td id="textToReplace">New Text here</td>
but just the Ajax.Updater is not appropriate in this situation.
Here are my examples
http://www.chucklarge.mine.nu/test/p...pdateTotal.htm
I am trying create a real time calculator to generate a total cost of a
product
depending on the number of items. I want to be able to keep entering
a new value and have it display the new subtotal, shipping, and total
without
adding on to the previous calculations.
below that is the Ajax.Updater that exhibits the behavior i want.
So I guess my question is how to go about this. I am really new to
js and found this library to do most of what i need, but now need
to start modifying it and don't have any idea where to start.
Thanks,
Chuck