Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #17810
| From | Stefan Weiss <krewecherl@gmail.com> |
|---|---|
| Newsgroups | comp.lang.javascript |
| Subject | Re: Strange - Chrome doesn't run the script if an empty button is remove |
| Date | 2012-12-23 14:44 +0100 |
| Organization | albasani.net |
| Message-ID | <kb71rh$6js$1@news.albasani.net> (permalink) |
| References | <2ec7220f-818a-42cb-b767-84d5ae59e8cc@googlegroups.com> <kb6sh9$1bk$1@dont-email.me> <4904e075-1d08-47c1-a6f4-ca49d5d35b7b@googlegroups.com> |
On 2012-12-23 13:47, cato.salid@getmail.no wrote: > On Sunday, December 23, 2012 1:13:19 PM UTC+1, 123Jim wrote: >> "Uncaught TypeError: Cannot read property 'currentPosition' of >> undefined" ... > Thank you for your answer, but why doesn't I get this error in the > console. And why are this working for me when the button is present, > and not when removed. (You must also have Windows Media player plugin > for Firefox and Chrome) > This script works in FireFox and IE with or without the button. I can't even begin to guess. Your document isn't valid HTML or XHTML, so what happens when you add or remove parts is up to the browser. You should: 1) add a DOCTYPE 2) validate your HTML and eliminate errors 3) confirm that your document is rendered in strict mode instead of quirks mode 4) fix the broken <-- --> comment 5) don't refer to a "lyricsplayer" variable if you haven't defined one. You should probably also add a fallback or at least an error message for visitors without WMP or the WMP plugin. A lot of people don't have this installed; for some (like me) it's not even available on our platform. The way it runs now, we just get the JS error message 123Jim posted (because lyricplayer.controls is undefined). - stefan
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Strange - Chrome doesn't run the script if an empty button is remove cato.salid@getmail.no - 2012-12-23 02:17 -0800
Re: Strange - Chrome doesn't run the script if an empty button is remove 123Jim <jnkjnjnini@uhnuhnunuhnuy.invalid> - 2012-12-23 12:13 +0000
Re: Strange - Chrome doesn't run the script if an empty button is remove cato.salid@getmail.no - 2012-12-23 04:47 -0800
Re: Strange - Chrome doesn't run the script if an empty button is remove 123Jim <jnkjnjnini@uhnuhnunuhnuy.invalid> - 2012-12-23 13:41 +0000
Re: Strange - Chrome doesn't run the script if an empty button is remove cato.salid@getmail.no - 2012-12-23 05:46 -0800
Re: Strange - Chrome doesn't run the script if an empty button is remove Stefan Weiss <krewecherl@gmail.com> - 2012-12-23 14:44 +0100
Re: Strange - Chrome doesn't run the script if an empty button is remove cato.salid@getmail.no - 2012-12-23 06:03 -0800
Re: Strange - Chrome doesn't run the script if an empty button is remove cato.salid@getmail.no - 2012-12-23 06:54 -0800
Re: Strange - Chrome doesn't run the script if an empty button is remove "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2012-12-23 18:19 +0100
Re: Strange - Chrome doesn't run the script if an empty button is remove 123Jim <jnkjnjnini@uhnuhnunuhnuy.invalid> - 2012-12-23 17:19 +0000
Re: Strange - Chrome doesn't run the script if an empty button is remove cato.salid@getmail.no - 2012-12-24 06:14 -0800
Re: Strange - Chrome doesn't run the script if an empty button is remove David Mark <dmark.cinsoft@gmail.com> - 2013-01-05 17:36 -0800
csiph-web