You are here: Re: what does it mean fieldRequired.lenght in php 4.1 ? « PHP Programming Language « IT news, forums, messages
Re: what does it mean fieldRequired.lenght in php 4.1 ?

Posted by Kimmo Laine on 10/31/06 06:24

"Andrey Koptyaev" <koptyaev@gmail.com> wrote in message
news:1162229558.834099.36470@b28g2000cwb.googlegroups.com...
>
> Kimmo Laine wrote:
>> "Andrey Koptyaev" <koptyaev@gmail.com> wrote in message
>> news:1162188640.844891.280260@e64g2000cwd.googlegroups.com...
>> >
>> > Colin Fine wrote:
>> >> Andrey Koptyaev wrote:
>> >> > What does it mean "fieldRequired.lenght" in php 4.1 ?
>> >> > I know "fieldRequired->lenght" but don't know "fieldRequired.lenght"
>> >> > Please help to understand.
>> >> > Thank you!
>> >> >
>> >>
>> >> '.' is the string concatenation operator, but neither 'fieldRequired'
>> >> nor 'lenght' appear to be variables.
>> >>
>> >> Can you give us some context?
>> >>
>> >> Colin
>> >
>> > here:
>> >
>> > function formCheck(formobj){
>> > // Enter name of mandatory fields
>> > var fieldRequired = Array("title", "category", "description",
>> > "regnow_id", "vid");
>> > // Enter field description to appear in the dialog box
>> > var fieldDescription = Array("<?=$GLOBALS['_TITLE']?>",
>> > "<?=$GLOBALS['_DESC']?>", "<?=$GLOBALS['_CATEG']?>",
>> > "<?=$GLOBALS['_RNID']?>", "<?=$GLOBALS['_VENDOR']?>");
>> > // dialog message
>> > var alertMsg = "<?=$GLOBALS['_ERR11']?>\n";
>> >
>> > var l_Msg = alertMsg.length;
>> >
>> > for (var i = 0; i < fieldRequired.length; i++){
>> > var obj = formobj.elements[fieldRequired[i]];
>> >
>>
>> That's javascript mixed with some php. In your example code everything
>> between the <? ?> tags is php, anything outside them is javascript. In
>> this
>> case fieldRequired.length is a javascript command. To be precide, it
>> refers
>> to a string object 'fieldRequired' and it's class member 'length'.
>>
>> Ask in a javascript group.
>
> ok
> thank you
> I am going to teach some java :-)
>

First of all it's JavaScript, not Java, those two are very much different
languages, and secondly I do wish you first LEARN some javascript before you
start TEACHING it... ;)


--
"Ohjelmoija on organismi joka muuttaa kofeiinia koodiksi" - lpk
http://outolempi.net/ahdistus/ - Satunnaisesti pδivittyvδ nettisarjis
spam@outolempi.net | rot13(xvzzb@bhgbyrzcv.arg)

 

Navigation:

[Reply to this message]


УдалСнная Ρ€Π°Π±ΠΎΡ‚Π° для программистов  •  Как Π·Π°Ρ€Π°Π±ΠΎΡ‚Π°Ρ‚ΡŒ Π½Π° Google AdSense  •  England, UK  •  ΡΡ‚Π°Ρ‚ΡŒΠΈ Π½Π° английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Π‘Π°ΠΉΡ‚ ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ Π² Π‘Ρ‚ΡƒΠ΄ΠΈΠΈ Π’Π°Π»Π΅Π½Ρ‚ΠΈΠ½Π° ΠŸΠ΅Ρ‚Ρ€ΡƒΡ‡Π΅ΠΊΠ°
ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ΠΈΠ΅ ΠΈ ΠΏΠΎΠ΄Π΄Π΅Ρ€ΠΆΠΊΠ° Π²Π΅Π±-сайтов, Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠ° ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ½ΠΎΠ³ΠΎ обСспСчСния, поисковая оптимизация