I have used Ajax to update form elements, but I'm wondering if there is a way to have Ajax update a "text" element on a page. For example, if I have some text that says "1 New Message", and I want Ajax to run a script automatically every 5 mins to update the number of messages. I know how to make the Ajax script run and how to pull the values for the new messages, but I'm not sure if there is a way to update the text "1 New Message", without it being in a Form.
One word: jQuery. jQuery is your Ajax goodness. If you post some code, I could help you with the jquery. jQuery is the sweetness.
/ * Begin Signature */
It's a strange thing about determined seekers-after-wisdom that, no matter where they happen to be, they'll always seek that wisdom which is a long way off. Wisdom is one of the few things that looks bigger the further away it is.
Hello,
I have used Ajax to update form elements, but I'm wondering if there is a way to have Ajax update a "text" element on a page. For example, if I have some text that says "1 New Message", and I want Ajax to run a script automatically every 5 mins to update the number of messages. I know how to make the Ajax script run and how to pull the values for the new messages, but I'm not sure if there is a way to update the text "1 New Message", without it being in a Form.
Any ideas?
Thanks,
Faithful