Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #17809

Re: Strange - Chrome doesn't run the script if an empty button is remove

From 123Jim <jnkjnjnini@uhnuhnunuhnuy.invalid>
Newsgroups comp.lang.javascript
Subject Re: Strange - Chrome doesn't run the script if an empty button is remove
Date 2012-12-23 13:41 +0000
Organization A noiseless patient Spider
Message-ID <kb71m9$smd$1@dont-email.me> (permalink)
References <2ec7220f-818a-42cb-b767-84d5ae59e8cc@googlegroups.com> <kb6sh9$1bk$1@dont-email.me> <4904e075-1d08-47c1-a6f4-ca49d5d35b7b@googlegroups.com>

Show all headers | View raw


On 23/12/2012 12:47, cato.salid@getmail.no wrote:
> On Sunday, December 23, 2012 1:13:19 PM UTC+1, 123Jim wrote:
>> On 23/12/2012 10:17, cato.salid@getmail.no wrote:
>>
>>> I'm new to javascript and have problem to find why Chrome
>>
>>> doesn't run the script if an empty button tag is removed.
>>
>>> The script use Windows Media player and lyric lines are displayed using opacity.
>>
>>> Any ideas why this happen?
>>
>>>
>>
>>> http://www.cicyzone.com/Lyrictest/Samples/jsonandopacity.htm
>>
>>>
>>
>>> Cato
>>
>>>
>>
>>
>>
>> Chrome settings button (right side) > tools > 'javascript console'
>>
>> reports: "Uncaught TypeError: Cannot read property 'currentPosition' of
>>
>> undefined"
>>
>>
>>
>> In jsonandopacity.htm
>>
>> here:
>>
>> function synctimer()
>>
>> {
>>
>> var tim=Math.round(lyricplayer.controls.currentPosition*1000/100) * 100 ;
>
> 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.
>
> Cato
>

Did you change something? .. It is working now also in chrome since I 
updated the windows media player plugin.

Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


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