Mike maybe you can help me out. For a while I've been creating
web pages. I do a fair job. And I know 4 programming languages.
Well. The one that enables interface with the web is unique, it's
called JavaScript. I need you to help me solve something that
eludes me with JavaScript. So I can interface with my "Activities",
a kind of itinerary/calendar/scheduler.
The task is to take a user entry in the page, "Activities", and order
it in the list. Place it at the top, or anywhere in the list.
1)Enter new items, 2)Prioritize. "innerHTML" is the property that
gets tweaked in "the problem". However my conundrum is
capturing the new item text to pass to innerHTML. I understand
innerHTML. It involves an "action" in a "form". Where the user
places the item text.
Somehow the text is passed to the "server" and stored there for
retrieval. Sound confusing, yet? The text is explicit. No necessity
to parse. User types directly into a "textbox" on the page. The box
at the top in "Activities". The trick is understanding what's
happening at the server end. How to get the text there, and back.
We'll get there. I feel sure, now you're thinking, and involved.
We need to understand the "action". That's telling the computer
to do something. The something is a function. Functions are
named and have parameters. There may be more than one
function to pass text to the server. Functions are series of
directions to accomplish a computer task. There are a few web
based function(programming), languages. The one to pass text to
the server may be PHP, which I know nothing about. But I don't
need to, if I can understand a little how it works. I think there is
a JavaScript function to do the same thing. That would be ideal.
Herein may be the answer:
solution.
Page Five
|