Connecting Tech Pros Worldwide Forums | Help | Site Map

Strange behaviour when using innerHTML

nokia33948
Guest
 
Posts: n/a
#1: Apr 23 '07
Hi there,
I cannot find a solution to my problem.

Please go here http://www.milanodabere.it/test.htm and see what
happens when you pass the mouse over a star in the "Giudica evento"
section: the swf movie stops playing! I cannot explain why... is there
anyone who can help?

Regards,
D.


Peter Michaux
Guest
 
Posts: n/a
#2: Apr 23 '07

re: Strange behaviour when using innerHTML


On Apr 23, 8:06 am, nokia33948 <nokia33...@yahoo.itwrote:
Quote:
Hi there,
I cannot find a solution to my problem.
>
Please go herehttp://www.milanodabere.it/test.htmand see what
happens when you pass the mouse over a star in the "Giudica evento"
section: the swf movie stops playing! I cannot explain why... is there
anyone who can help?
Can you reproduce your problem in a complete HTML document that is 30
lines or less? If not can you do it in 40 lines?

Peter

nokia33948
Guest
 
Posts: n/a
#3: Apr 23 '07

re: Strange behaviour when using innerHTML


On 23 Apr, 17:23, Peter Michaux <petermich...@gmail.comwrote:
Quote:
Can you reproduce your problem in a complete HTML document that is 30
lines or less? If not can you do it in 40 lines?
>
Peter
Hi, I am not sure if I already posted the relpy.

BTW please go here http://www.milanodabere.it/test2.htm and pass the
mouse over the star at the top of the screen; then stop for a couple
of seconds, you will notice that the flash movie will stop until you
move out from the star.

Regards,
D.

Randy Webb
Guest
 
Posts: n/a
#4: Apr 23 '07

re: Strange behaviour when using innerHTML


nokia33948 said the following on 4/23/2007 11:41 AM:
Quote:
On 23 Apr, 17:23, Peter Michaux <petermich...@gmail.comwrote:
>
Quote:
>Can you reproduce your problem in a complete HTML document that is 30
>lines or less? If not can you do it in 40 lines?
>>
>Peter
>
Hi, I am not sure if I already posted the relpy.
How does copy/pasting the original question do anything to answer the
question that was asked?

The answer is that the code in that page isn't 30/40 lines long to start
with.

The issue is the onmousemove event is constantly updating the innerHTML
of the div element and causes the movie to stop updating because the
script has the browser too busy to update anything else.

Change it from onmousemove to onmouseover.

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
nokia33948
Guest
 
Posts: n/a
#5: Apr 24 '07

re: Strange behaviour when using innerHTML


On 23 Apr, 19:03, Randy Webb <HikksNotAtH...@aol.comwrote:
Quote:
How does copy/pasting the original question do anything to answer the
question that was asked?
>
The answer is that the code in that page isn't 30/40 lines long to start
with.
>
The issue is the onmousemove event is constantly updating the innerHTML
of the div element and causes the movie to stop updating because the
script has the browser too busy to update anything else.
>
Change it from onmousemove to onmouseover.
>
--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ -http://jibbering.com/faq/index.html
Javascript Best Practices -http://www.JavascriptToolbox.com/bestpractices/
Hi Randy, thank you for the suggestion, it worked! But, would you
please explain what you meant with the first lines of your comment? I
am not sure I understood.

Regards,
D.

Randy Webb
Guest
 
Posts: n/a
#6: Apr 24 '07

re: Strange behaviour when using innerHTML


nokia33948 said the following on 4/24/2007 3:26 AM:
Quote:
On 23 Apr, 19:03, Randy Webb <HikksNotAtH...@aol.comwrote:
>
Quote:
>How does copy/pasting the original question do anything to answer the
>question that was asked?
>>
>The answer is that the code in that page isn't 30/40 lines long to start
>with.
>>
>The issue is the onmousemove event is constantly updating the innerHTML
>of the div element and causes the movie to stop updating because the
>script has the browser too busy to update anything else.
>>
>Change it from onmousemove to onmouseover.
>>
<snipped signature that Google can't remove>
Quote:
Hi Randy, thank you for the suggestion, it worked!
Good to know.
Quote:
But, would you please explain what you meant with the first lines of your comment?
You got a reply, it was requested for you to narrow down the problem, in
40/30 lines of code, and you reply was to copy/paste your original
question. How does that come even close to answering the question of
"Can you reproduce your problem in a complete HTML document that is 30
lines or less?". Simple, it doesn't.

You need a better posting agent though.

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
nokia33948
Guest
 
Posts: n/a
#7: Apr 26 '07

re: Strange behaviour when using innerHTML


On 24 Apr, 18:49, Randy Webb <HikksNotAtH...@aol.comwrote:
Quote:
You got a reply, it was requested for you to narrow down the problem, in
40/30 lines of code, and you reply was to copy/paste your original
question. How does that come even close to answering the question of
"Can you reproduce your problem in a complete HTML document that is 30
lines or less?". Simple, it doesn't.
>
You need a better posting agent though.
>
--
Randy
Chance Favors The Prepared Mind
comp.lang.javascriptFAQ -http://jibbering.com/faq/index.htmlJavascriptBest Practices -http://www.JavascriptToolbox.com/bestpractices/
Hi Randy,
please note that in my second post there was a link to a different
page (test2.htm instead of test.htm). And that page was actually less
than 15 lines. Does that answer your question?

Regards,
D.

nokia33948
Guest
 
Posts: n/a
#8: Apr 26 '07

re: Strange behaviour when using innerHTML


On 24 Apr, 18:49, Randy Webb <HikksNotAtH...@aol.comwrote:
Quote:
You got a reply, it was requested for you to narrow down the problem, in
40/30 lines of code, and you reply was to copy/paste your original
question. How does that come even close to answering the question of
"Can you reproduce your problem in a complete HTML document that is 30
lines or less?". Simple, it doesn't.
>
You need a better posting agent though.
>
--
Randy
Chance Favors The Prepared Mind
comp.lang.javascriptFAQ -http://jibbering.com/faq/index.htmlJavascriptBest Practices -http://www.JavascriptToolbox.com/bestpractices/
Hi Randy,
please note that in my second post there was a link to a different
page (test2.htm instead of test.htm); that page was actually less than
15 lines. I hope this answers your question.

Regards,
D.

Closed Thread