Hi Lallo,
I'm not sure that I entirely understand what you are attempting to
accomplish and how removing the title attribute is working for you.
When I go to the provided page and attempt to inspect it, I see a lot
of title attributes being rapidly added and removed from the div
containing the calendar item.
Nevertheless, let's say you have the following:
<div class="ms-acal-item" id="foo">
<div class="ms-acal-sdiv">
7:00 pm <a href="/Communications/Events/Pages/eventdisplay.aspx?
EventID=2262">​Mayan Elder</a>
</div>
</div>
the following script will do what I think you want to accomplish:
<script>
function removeThatAnchor() {
var innerDiv = $('foo').select('.ms-acal-sdiv')[0];
var aToRemove = innerDiv.select('a')[0];
var aText = aToRemove.innerHTML;
aToRemove.remove();
innerDiv.update(innerDiv.innerHTML + " " + aText);
}
</script>
Bernard
On Mar 7, 12:06 pm, lalov1 <[email protected]> wrote:
> Hello all,
>
> I'm new to prototype and am trying to achieve the following. I have
> the following title text "1:00 pm - 2:00 pm <a
> href="http://www.google.com">Link Goes Here</a>"
>
> I want to delete the "<a href="http://www.google.com">" and the "</
> a>".
>
> What is the best way to do this. Right now I'm using the
> removeAttribute('title'); which works, but not like I want it to. Here
> is a link to our
> page:http://www.colostate-pueblo.edu/Communications/Events/Pages/default.aspx
>
> Thank you,
> Lallo
--
You received this message because you are subscribed to the Google Groups
"Prototype & script.aculo.us" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/prototype-scriptaculous?hl=en.