🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: pl.comp.lang.javascript
3 messages
3 total messages Started by Ciekawy Mon, 21 Nov 2011 11:39
Takie tam żałosne pytanko
#50956
Author: Ciekawy
Date: Mon, 21 Nov 2011 11:39
22 lines
1295 bytes
Function dopisz()

{var napis = document.getElementById("IWDBEDIT1").value 
+document.getElementById("IWDBEDIT2").value;

document.getElementById("IWDBEDIT11").value = napis;

}

i w zdarzeniu onBlur wywołanie tej funkcji poprzez

Dopisz();

Otrzymuję błąd z Mozilli typu:

missing ; before statement

Tyle że wydaje mi się że wszystkie średniki są na miejscu



Pozdrawiam Ciekawy
Re: Takie tam żałosne pytanko
#50957
Author: Peter May
Date: Mon, 21 Nov 2011 19:22
32 lines
1532 bytes
W dniu 2011-11-21 12:39, Ciekawy pisze:
> Function dopisz()

function Dopisz()

> {var napis = document.getElementById("IWDBEDIT1").value
> +document.getElementById("IWDBEDIT2").value;
>
> document.getElementById("IWDBEDIT11").value = napis;
>
> }
>
> i w zdarzeniu onBlur wywołanie tej funkcji poprzez
>
> Dopisz();
>
> Otrzymuję błąd z Mozilli typu:
>
> missing ; before statement
>
> Tyle że wydaje mi się że wszystkie średniki są na miejscu

Function (1) to nie to samo co function (2).

1) 
https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function

2. 
https://developer.mozilla.org/en/JavaScript/Reference/Operators/Special/function

-- 
Peter
Re: Takie tam żałosne pytanko
#50958
Author: Ciekawy
Date: Tue, 22 Nov 2011 07:50
38 lines
1847 bytes
Użytkownik "Peter May" <peter.may@onet.pl> napisał w wiadomości 
news:jae8dn$8d7$1@news.onet.pl...
>W dniu 2011-11-21 12:39, Ciekawy pisze:
>> Function dopisz()
>
> function Dopisz()
>
>> {var napis = document.getElementById("IWDBEDIT1").value
>> +document.getElementById("IWDBEDIT2").value;
>>
>> document.getElementById("IWDBEDIT11").value = napis;
>>
>> }
>>
>> i w zdarzeniu onBlur wywołanie tej funkcji poprzez
>>
>> Dopisz();
>>
>> Otrzymuję błąd z Mozilli typu:
>>
>> missing ; before statement
>>
>> Tyle że wydaje mi się że wszystkie średniki są na miejscu
>
> Function (1) to nie to samo co function (2).
>
> 1) 
> https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function
>
> 2. 
> https://developer.mozilla.org/en/JavaScript/Reference/Operators/Special/function
>
> -- 
> Peter
Dzięki

Pozdrawiam Ciekawy 
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads