I'm trying to get my PERL-CGI-DBI program to be a bit more userfriendly. I've begun to venture into the presumably ugly land of javascript.

What I'm trying to accomplish is:
To have a series of textboxes with data from my database in them, and when I change one, the DB automaticlly updates without having to hit 'submit'.

I got close to solving it using the onChange parameter in my input field...calling a javascript function, but i was unable to call my perl function that updates the DB from inside the javascript function. confused?

Questions:
Is it possible to call a perl function from onChange?
or is it possible to call a perl function from within a javascript function
or is there a completely different way to do this that I havn't thought of?

any help is greatly appreciated
Thanks,
david

In reply to How to make a friendly UI by daveh71

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.