/    Sign up×
Community /Pin to ProfileBookmark

XML with Javascript

I have a question about parsing an XML document with javascript and updating user inputs.

Example:

|- A — B — C -|
|—–|2.00|—–|
|—————–|
|—–|2.04|—–|
|—————–|

In the spreadsheet above:
Column A – Present year (2004) factor = 00.0
Column B – 2005; factor = .02
Column C – 2006; factor = .10

If the user inputs 2 into column B, then the new value should be what the user added plus the factor of that year.
2 x .02 = 2.04. So 2, which the user entered, should become 2.04.

The XML should look like:

<rowWithFactorApplied year=”2005″ factor=”.02″ value=”” />

Any ideas about how to do this without using Active X objects??

to post a comment
JavaScript

0Be the first to comment 😎

×

Success!

Help @ericsodt spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.24,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...