I've tried that link, but the javascript code didn't work for me - I get a scrambled dropdown box in CourseName.

My general solution is to get the code to work *without* javascript first (i.e. use request/response type reloading), and when you've done that, try to improve on it with AJAX technologies - and if you can't get it to work on a specific browser, fall back to the level you *know* that works.

I'm biased because a) I've been using linux since 1999 or something, so the most "popular" browser isn't available to me. b) I've designed a few websites for government agencies that required the web accessibility guidelines (priority one).

By the way, XMLHttpRequest code isn't all that difficult if you know how to do javascript. I believe this article from apple is good introduction. You'll be able to write your own code (with a little experimentation).

Also, you could take a look at HTML-Prototype: it's a browser-agnostic, reasonably well documented library for perl, that should take care of most of your problems.


In reply to Re^5: copying perl array to javascript array by Joost
in thread copying perl array to javascript array by Rainmaker

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.