HighDots Forums  

Re: Help needed with event testing script

Javascript JavaScript language (comp.lang.javascript)


Discuss Re: Help needed with event testing script in the Javascript forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Martin Honnen
 
Posts: n/a

Default Re: Help needed with event testing script - 04-05-2005 , 06:44 AM








Mark Szlazak wrote:

Quote:
Apparently there is a textarea onscroll event bubbling bug in Firefox
and Mozilla:

https://bugzilla.mozilla.org/show_bug.cgi?id=229089

I'm trying to check for this bug with the following script and it
*seems* to work. In IE it reports "bubbling" and in Firefox "not
bubbling" but I really have no direct way to confirm the Firefox
results until the bubbling bug is fixed.

Basically the test script assigns an onscroll event handler to a
textarea and then scrolls the textarea down then back up, checking to
see if a the event handler works (assigns the "bubbling" variable a
"true").
If script scrolls then I am not sure Mozilla fires the scroll event, it
should fire it when the user scrolls. At least for a window a quick test
shows that window.scrollTo() doesn't fire the scroll event and even if
onscroll worked for textareas then I don't think the scroll event would
be fired if script manipulates the scroll settings.




--

Martin Honnen
http://JavaScript.FAQTs.com/


Reply With Quote
  #2  
Old   
Mark Szlazak
 
Posts: n/a

Default Re: Help needed with event testing script - 04-05-2005 , 11:04 AM






Martin Honnen wrote:
Quote:
Mark Szlazak wrote:

Apparently there is a textarea onscroll event bubbling bug in
Firefox
and Mozilla:

https://bugzilla.mozilla.org/show_bug.cgi?id=229089

I'm trying to check for this bug with the following script and it
*seems* to work. In IE it reports "bubbling" and in Firefox "not
bubbling" but I really have no direct way to confirm the Firefox
results until the bubbling bug is fixed.

Basically the test script assigns an onscroll event handler to a
textarea and then scrolls the textarea down then back up, checking
to
see if a the event handler works (assigns the "bubbling" variable a
"true").

If script scrolls then I am not sure Mozilla fires the scroll event,
it
should fire it when the user scrolls. At least for a window a quick
test
shows that window.scrollTo() doesn't fire the scroll event and even
if
onscroll worked for textareas then I don't think the scroll event
would
be fired if script manipulates the scroll settings.




--

Martin Honnen
http://JavaScript.FAQTs.com/
OK, with regard to textarea scripts firing onscroll events, why is
there this difference between IE and Firefox?

Also, do you have any suggestions for checking if the textarea onscroll
event in Firefox is working?

Thanks. Mark.



Reply With Quote
  #3  
Old   
Martin Honnen
 
Posts: n/a

Default Re: Help needed with event testing script - 04-05-2005 , 11:09 AM





Mark Szlazak wrote:


Quote:
Also, do you have any suggestions for checking if the textarea onscroll
event in Firefox is working?
That bug you have found has a test case:
<https://bugzilla.mozilla.org/show_bug.cgi?id=229089>


--

Martin Honnen
http://JavaScript.FAQTs.com/


Reply With Quote
  #4  
Old   
Mark Szlazak
 
Posts: n/a

Default Re: Help needed with event testing script - 04-05-2005 , 12:08 PM




Martin Honnen wrote:
Quote:
Mark Szlazak wrote:


Also, do you have any suggestions for checking if the textarea
onscroll
event in Firefox is working?

That bug you have found has a test case:
https://bugzilla.mozilla.org/show_bug.cgi?id=229089


--

Martin Honnen
http://JavaScript.FAQTs.com/
Yes! It demonstrates the bug but provides no work-around.
I was hoping for bug detection without browser version detection but no
luck ... I guess.

Mark.



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.