Hi there
I have a simple question: is it possible to check the existence of an
eventlistener?
I added a listener with ECMAScript:
document.documentElement.addEventListener("keypress",this,false);
But now I want to remove the eventlistener, if it already exists (this
code of course doesn't wor
Hi Olaf,
On 4 nov. 04, at 11:39, Olaf Schnabel wrote:
> I have a simple question: is it possible to check the existence of an
> eventlistener?
>
> I added a listener with ECMAScript:
> document.documentElement.addEventListener("keypress",this,false);
>
> But now I want to remove the eventlistene
Thanks Antoine.
It's no solution for me to generally remove it.
In some cases I need the event listener, in some cases I can remove it.
That's why I wanted to implement an if-else-statement.
It's a pity. Then I have to program my own methods :-(
Olaf
Antoine Quint wrote:
>>I have a simple ques
hi olaf,
you could check the event attribute's value and decide on that what to
do next. if the eventhandler (eg. "click") is not definded the according
attribute (eg. "onclick") should be empty. or am i missing something here?
btw i stopped playing around with eventlisteners and use only the
Hi André,
On 4 nov. 04, at 12:30, andré m. winter wrote:
> you could check the event attribute's value and decide on that what to
> do next. if the eventhandler (eg. "click") is not definded the
> according
> attribute (eg. "onclick") should be empty. or am i missing something
> here?
There i
Hi André
I will use this listener for a textbox. If I click on the textbox, an 2
event listeners are added (keypress and click) to the svg root element.
If I click somewhere else in the document, I want to remove the event
listeners.
As Antoine mentioned, an onclick-event and a event listener "
Hi Olaf
I did something quite similar:
by construction, I set onclick event to any object. For a text box, it could be
My init content
function click(myType, myName, evt)
{
//according to the type of the last object I've clicked on, I call a specific
function to simulate a
Thanks Jérôme
that's a good idea. I will try this.
Olaf
Jérôme Tricand de la Goutte wrote:
> Hi Olaf
>
> I did something quite similar:
> by construction, I set onclick event to any object. For a text box, it could be
>
> onclick='click("textBox","textBox1",evt);set_TextBox_Text(evt,"You've
I've been working with SVG for a while now and have encountered a very
irritating bug. At least that what I think it is.
Suddenly IE starts terminating on refresh or when trying to enter
another http-address. I have tried to understand when the problem
occurs and it seems to be after adding an e
We've had some difficulties with this as well yes. The probleem seemed
to go away when you deregister the eventlisteners onunload().
HTH
Jorg
skrellkolja wrote:
> I've been working with SVG for a while now and have encountered a very
> irritating bug. At least that what I think it is.
> Suddenly
Hi:
I had the same problem. My IE crashed when I remove an element that has
an event associated with it.
(*)For instance, having:
var labelRectElement = document.createElementNS(svgNS,"rect");
labelRectElement.addEventListener("mouseover",this,false);
//adding the labelRectElement to another n
Hey folks,
If you understood xml you would see that
setAttribute("onclick" "myFunction()")
is how you accomplish events. Gad! I've been seeing this eventListener
thingie for years and it's about time it was removed from SVG!!!
Francis
-
To unsubscribe send a message to: [EMAIL PROTECT
On 21 mai 2005, at 07:41, Francis Hemsher wrote:
> If you understood xml you would see that
> setAttribute("onclick" "myFunction()")
> is how you accomplish events. Gad! I've been seeing this eventListener
> thingie for years and it's about time it was removed from SVG!!!
Could you expand on that
Running under IE6 / ASV 3.0.3 I sometimes get the error "object
doesn't support this property or method line 69 column 2". The line is
in MapApp.js and is document.documentElement.addEventListener
("SVGScroll",this,false);
The problem started occuring when I upgraded the code from 0.99 to
1.1.
14 matches
Mail list logo