Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using inline expressions for value property
Message
General information
Forum:
Internet
Category:
Javascript
Miscellaneous
Thread ID:
00561252
Message ID:
00561518
Views:
24
>>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform