[jQuery] Re: Get the onclick method of an element

2009-09-15 Thread sirrocco _
itten and not have it converted into an event. > > Hope this will help? > > On Sep 15, 2:31 pm, sirrocco wrote: > > >Perhaps then you can extract it as text like I mentioned in my first > > > > post, then store it in a variable? > > > > How do I extra

[jQuery] Re: Get the onclick method of an element

2009-09-15 Thread sirrocco
That is what jQuery is > there for :-) > > On Sep 15, 9:50 am, sirrocco wrote: > > > Well .. that's the problem - i tried it like that and it didn't work. > > > When setting the attribute back on the link, the this in DoSomething > > (this); is not the link

[jQuery] Re: Get the onclick method of an element

2009-09-15 Thread sirrocco
27;onclick',onclick); > > (setting the attribute value not the inner text!) > > On Sep 15, 9:09 am, sirrocco wrote: > > > Let's say you have a : > > > asd > > > I want to get the onclick text in a variable - something like > > > var onclic

[jQuery] Get the onclick method of an element

2009-09-15 Thread sirrocco
Let's say you have a : asd I want to get the onclick text in a variable - something like var onclick = $('a').attr('onclick'); The problem is that the onclick variable now is a function and if I try to execute , this wil be the document instead of the link . How can I get only the text, so

[jQuery] Re: Intercept javascript event

2009-09-15 Thread sirrocco
g plugin. > > Seehttp://plugins.jquery.com/project/AOP > andhttp://code.google.com/p/jquery-aop/ > > If this isn't exactly what you are looking for, then therin is code to > pre- and post-hook existing events. > > I hope this helps. > > **--**  Steve > > On Se

[jQuery] Intercept javascript event

2009-09-14 Thread sirrocco
Here's what I'm trying to do : I have a page with some links. Most links have a function attached to them on the onclick event. Now, I want to set a css class to some links and then whenever one of the links is clicked I want to execute a certain function - after it returns , I want the link to