Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #16196 > unrolled thread
| Started by | "jmrw" <jmrw@free.fr> |
|---|---|
| First post | 2012-09-27 19:37 +0200 |
| Last post | 2012-09-29 03:54 +0200 |
| Articles | 6 — 3 participants |
Back to article view | Back to comp.lang.javascript
Where is the bug? "jmrw" <jmrw@free.fr> - 2012-09-27 19:37 +0200
The bug appears under Firefox but now under IE "jmrw" <jmrw@free.fr> - 2012-09-27 22:58 +0200
Re: The bug appears under Firefox but now under IE Christoph Becker <cmbecker69@gmx.de> - 2012-09-27 23:38 +0200
Re: Where is the bug? Stefan Weiss <krewecherl@gmail.com> - 2012-09-27 23:42 +0200
Re: Where is the bug? "jmrw" <jmrw@free.fr> - 2012-09-28 14:43 +0200
Re: Where is the bug? "jmrw" <jmrw@free.fr> - 2012-09-29 03:54 +0200
| From | "jmrw" <jmrw@free.fr> |
|---|---|
| Date | 2012-09-27 19:37 +0200 |
| Subject | Where is the bug? |
| Message-ID | <50648ebf$0$2019$426a74cc@news.free.fr> |
I am on this bug for two hours.
In my page http://www.jmrw.com/Chess/Tableau_echecs/index.htm#bas
When I seize a number there and the press on the button "play
chronological", I have to do it twice, the first time it does'nt work.
I don't understand why.
thanks.
<form>
<button id="but_chronological" onClick="playrandom = 0 ; stop();
c=document.getElementById('quantite').value ; diaporamachrono()"> play
chronological since </button>
<input type=number id="quantite" value="1" size="3"
maxlength="3"> (1...<script
type="text/javascript">document.write(nbchrono);</script>)
<button id="but_random" onClick="playrandom = 1 ; stop() ; diaporama();">
play
random </button>
<button id="but_stop" onClick="stop();">
stop </button>
<input name="choix" TYPE="radio" onClick="tempo=2000" value="2000"> 2s
<input name="choix" TYPE="radio" onClick="tempo=4000" value="4000"
checked> 4s
<input name="choix" type="radio" onClick="tempo=10000" value="10000"> 10s
<input name="choix" type="radio" onClick="tempo=60000" value="60000"> 1mn
</form>
function diaporamachrono() { c++; if(c >= nbchrono) c=0; !
document.getElementById('vue').style.backgroundImage =
'url(images/'+listechrono[c]+'.jpg)';
play = setTimeout('diaporamachrono()',tempo); }
[toc] | [next] | [standalone]
| From | "jmrw" <jmrw@free.fr> |
|---|---|
| Date | 2012-09-27 22:58 +0200 |
| Subject | The bug appears under Firefox but now under IE |
| Message-ID | <5064bde8$0$6131$426a74cc@news.free.fr> |
| In reply to | #16196 |
The bug appears under Firefox but now under IE jmrw
[toc] | [prev] | [next] | [standalone]
| From | Christoph Becker <cmbecker69@gmx.de> |
|---|---|
| Date | 2012-09-27 23:38 +0200 |
| Subject | Re: The bug appears under Firefox but now under IE |
| Message-ID | <k42gvt$gen$1@speranza.aioe.org> |
| In reply to | #16204 |
jmrw wrote: > The bug appears under Firefox but now under IE Please read the FAQ: <http://jibbering.com/faq/#posting>: | Validate the HTML and CSS <http://validator.w3.org/>, | <http://jigsaw.w3.org/css-validator/>. and act accordingly. ;-) And have a look at the JS (error) console of your browser; on the first click Chrome reports two errors. HTH -- Christoph M. Becker
[toc] | [prev] | [next] | [standalone]
| From | Stefan Weiss <krewecherl@gmail.com> |
|---|---|
| Date | 2012-09-27 23:42 +0200 |
| Message-ID | <k42h93$i95$1@news.albasani.net> |
| In reply to | #16196 |
On 2012-09-27 19:37, jmrw wrote: > I am on this bug for two hours. > > In my page http://www.jmrw.com/Chess/Tableau_echecs/index.htm#bas > > When I seize a number there and the press on the button "play > chronological", I have to do it twice, the first time it does'nt work. > > I don't understand why. > > thanks. > > <form> [snip html and js] Sorry, but your markup and code are completely unreadable. The linked page is 5600 lines long and does not validate as HTML. If you want help, fix your HTML, remove everything non-essential from your post ( ....) and format your code and markup so that we can read it without dislocating our eyeballs. - stefan
[toc] | [prev] | [next] | [standalone]
| From | "jmrw" <jmrw@free.fr> |
|---|---|
| Date | 2012-09-28 14:43 +0200 |
| Message-ID | <50659b8a$0$1709$426a74cc@news.free.fr> |
| In reply to | #16196 |
http://www.jmrw.com/Chess/Tableau_echecs/index.htm
I have added a button intialisation line 5593 :
<button id="Initialisation"> Initialisation </button>
Now it works fine under IE, Firefox and Chrome.
Is it a way to avoid to press on this button.
I am going to read the read the FAQ with attention. Sorry for the trouble.
thanks
jmrw
"jmrw" <jmrw@free.fr> a écrit dans le message de news:
50648ebf$0$2019$426a74cc@news.free.fr...
>I am on this bug for two hours.
>
> In my page http://www.jmrw.com/Chess/Tableau_echecs/index.htm#bas
>
> When I seize a number there and the press on the button "play
> chronological", I have to do it twice, the first time it does'nt work.
>
> I don't understand why.
>
> thanks.
>
> <form>
> <button id="but_chronological" onClick="playrandom = 0 ; stop();
> c=document.getElementById('quantite').value ; diaporamachrono()"> play
> chronological since </button>
> <input type=number id="quantite" value="1" size="3"
> maxlength="3"> (1...<script
> type="text/javascript">document.write(nbchrono);</script>)
> <button id="but_random" onClick="playrandom = 1 ; stop() ; diaporama();">
> play
> random </button>
> <button id="but_stop" onClick="stop();">
> stop </button>
> <input name="choix" TYPE="radio" onClick="tempo=2000" value="2000"> 2s
> <input name="choix" TYPE="radio" onClick="tempo=4000" value="4000"
> checked> 4s
> <input name="choix" type="radio" onClick="tempo=10000" value="10000"> 10s
> <input name="choix" type="radio" onClick="tempo=60000" value="60000"> 1mn
> </form>
>
> function diaporamachrono() { c++; if(c >= nbchrono) c=0; !
> document.getElementById('vue').style.backgroundImage =
> 'url(images/'+listechrono[c]+'.jpg)';
> play = setTimeout('diaporamachrono()',tempo); }
>
[toc] | [prev] | [next] | [standalone]
| From | "jmrw" <jmrw@free.fr> |
|---|---|
| Date | 2012-09-29 03:54 +0200 |
| Message-ID | <506654bc$0$2010$426a74cc@news.free.fr> |
| In reply to | #16227 |
problem solved by replacing <form> with <form form onsubmit="return false">
here :
<form>button id="but_chronological" onClick="playrandom = false ; stop();
c=document.getElementById('quantite').value ; diaporamachrono()">play
since</button>
<input type=number id="quantite" name="quantite" value="1" size="3"
maxlength="3"> (1...<script
type="text/javascript">document.write(nbchrono);</script>)
<button id="but_random" onClick="playrandom = true ; stop() ;
resume();diaporama(); resume()"> play
random </button>
<button id="but_stop" onClick="stop()">
stop </button>
<button id="but_resume" onClick="resume()"> resume </button>
<input name="choix" TYPE="radio" onClick="tempo=2000" value="2000"> 2s
<input name="choix" TYPE="radio" onClick="tempo=4000" value="4000"
checked> 4s
<input name="choix" type="radio" onClick="tempo=10000" value="10000"> 10s
<input name="choix" type="radio" onClick="tempo=60000" value="60000"> 1mn
</form>
jmrw
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.javascript
csiph-web