Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using inline expressions for value property
Message
Information générale
Forum:
Internet
Catégorie:
Javascript
Divers
Thread ID:
00561252
Message ID:
00561518
Vues:
25
>>Remove spaces after < character in the following code.
>>
>>
>>Field1 < input name=f1 >
>>Field2 < input name=f2 >
>>Sum < input name=f3 value=javascript:"return f1.value+f2.value;" >
>>
>
>How about something like this...
>
>
>< script >
>function setf3value()
>{
>f3.value = parseInt(f1.value) + parseInt(f2.value)
>}
>< /script >
>Field1 < input name=f1 value = 0 onblur="setf3value()" >
>Field2 < input name=f2 value = 0 onblur="setf3value()" >
>Sum < input name=f3 value="" >
>
Wayne;

The part

"However, I need to set dynamic value property directly in f3 without script."

threw me for a loss. I have no idea how to do it without a bit of java script. If someone is able to answer the original question as defined I will be interested. Perhaps web applications are not as "brain dead" as I have thought!

Tom
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform