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! 9 1617
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
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!
Andrey,
By itself this doesn't make much sense. Can you give us a reference
where you saw it?
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp. js*******@attglobal.net
==================
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]];
"Andrey Koptyaev" <ko******@gmail.comwrote in message
news:11**********************@e64g2000cwd.googlegr oups.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.
--
"Ohjelmoija on organismi joka muuttaa kofeiinia koodiksi" - lpk http://outolempi.net/ahdistus/ - Satunnaisesti päivittyvä nettisarjis sp**@outolempi.net | rot13(xv***@bhgbyrzcv.arg)
Andrey Koptyaev wrote:
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
No PHP so far
var fieldDescription = Array("<?=$GLOBALS['_TITLE']?>",
"<?=$GLOBALS['_DESC']?>", "<?=$GLOBALS['_CATEG']?>",
"<?=$GLOBALS['_RNID']?>", "<?=$GLOBALS['_VENDOR']?>");
// dialog message
var alertMsg = "<?=$GLOBALS['_ERR11']?>\n";
Only stuff between <? and ?(6 things) is, probably (*), PHP.
All the rest isn't; and also there is no more PHP below.
var l_Msg = alertMsg.length;
for (var i = 0; i < fieldRequired.length; i++){
var obj = formobj.elements[fieldRequired[i]];
I suggest you ask in a newsgroup that deals with this language, whatever
it is :)
(*) It is PHP if your server is configured with short_open_tags.
Rather than rely on a specific server configuration, it's best to code
that as
<?php echo $variable; ?>
which will work on every server with PHP installed (and configured to
'run' on files with the extension this snippet is in).
--
I (almost) never check the dodgeit address.
If you *really* need to mail me, use the address in the Reply-To
header with a message in *plain* *text* *without* *attachments*.
Kimmo Laine wrote:
"Andrey Koptyaev" <ko******@gmail.comwrote in message
news:11**********************@e64g2000cwd.googlegr oups.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 :-)
Pedro Graca wrote:
Andrey Koptyaev wrote:
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
No PHP so far
var fieldDescription = Array("<?=$GLOBALS['_TITLE']?>",
"<?=$GLOBALS['_DESC']?>", "<?=$GLOBALS['_CATEG']?>",
"<?=$GLOBALS['_RNID']?>", "<?=$GLOBALS['_VENDOR']?>");
// dialog message
var alertMsg = "<?=$GLOBALS['_ERR11']?>\n";
Only stuff between <? and ?(6 things) is, probably (*), PHP.
All the rest isn't; and also there is no more PHP below.
var l_Msg = alertMsg.length;
for (var i = 0; i < fieldRequired.length; i++){
var obj = formobj.elements[fieldRequired[i]];
I suggest you ask in a newsgroup that deals with this language, whatever
it is :)
(*) It is PHP if your server is configured with short_open_tags.
Rather than rely on a specific server configuration, it's best to code
that as
<?php echo $variable; ?>
which will work on every server with PHP installed (and configured to
'run' on files with the extension this snippet is in).
ok
thank you
I understand - this is javascript with little bit php
"Andrey Koptyaev" <ko******@gmail.comwrote in message
news:11*********************@b28g2000cwb.googlegro ups.com...
>
Kimmo Laine wrote:
>"Andrey Koptyaev" <ko******@gmail.comwrote in message news:11**********************@e64g2000cwd.googleg roups.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 sp**@outolempi.net | rot13(xv***@bhgbyrzcv.arg)
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... ;)
yes, I understand you
my english very bad
then I going to learn some javascript and late I'll think about
teaching :-) This discussion thread is closed Replies have been disabled for this discussion. Similar topics
2 posts
views
Thread by Kevin Auch |
last post: by
|
12 posts
views
Thread by Pudlik, Szymon |
last post: by
|
reply
views
Thread by Jean-Michel POURE |
last post: by
|
1 post
views
Thread by svet |
last post: by
|
1 post
views
Thread by TomislaW |
last post: by
|
13 posts
views
Thread by Protoman |
last post: by
| | | | | | | | | | | | | |