Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #17810
| Path | csiph.com!usenet.pasdenom.info!news.albasani.net!.POSTED!not-for-mail |
|---|---|
| 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 | Sun, 23 Dec 2012 14:44:17 +0100 |
| Organization | albasani.net |
| Lines | 31 |
| 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> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=UTF-8 |
| Content-Transfer-Encoding | 7bit |
| X-Trace | news.albasani.net ZqJP7F8D17OI2+6LWxTnxMFL4nOxf30+0Nb+EmWuwXbRNryHkXHYfxTL3/2Q5w9kDoWfiOQw/gd8rnCnJ39p1euFOt6HOF99lLfEkErZU+DdvxT5SbOannzPKiJrsLYa |
| NNTP-Posting-Date | Sun, 23 Dec 2012 13:44:17 +0000 (UTC) |
| Injection-Info | news.albasani.net; logging-data="EcPrBjEF5HTGROqCeJXJs+hY37A1GHTXa5/AT9YhCvj9t2pRV3d+b+5GXIc8vPHz1KeOoBJPbS3avcHRdUJugShuAt+rZP7ptL9L+IKXv0y7Vt/CJjJpf/4Jz0rnWTGq"; mail-complaints-to="abuse@albasani.net" |
| User-Agent | Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/17.0 Thunderbird/17.0 |
| In-Reply-To | <4904e075-1d08-47c1-a6f4-ca49d5d35b7b@googlegroups.com> |
| Cancel-Lock | sha1:FYGg1WBQ9FteCb5MC8DWjo2hGng= |
| Xref | csiph.com comp.lang.javascript:17810 |
Show key headers only | View raw
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