Note that there are some explanatory texts on larger screens.

plurals
  1. USEric S. Bullington
    primarykey
    data
    text
    plurals
    1. This table or related slice is empty.
    1. COGlad you found an answer. You could also manually bind the handler _after_ you append the form to the DOM (e.g., inside a script tag right after the form). As I'm sure you realized, the original problem was that you bound the handler to the form before it existed on the page (i.e., on pageload). So you need to either delegate it to something that already exists at that time (`document`) or bind the handler after you append the form to the DOM (using something like `document.form['myform'].submit = handler`). BTW, you can go ahead and accept your own answer as correct in 2 days.
      singulars
    2. COSo you're dynamically appending an HTML form with the `#contact` id to your page after it has loaded? And then when you click on the element with the `#contact` id, the form is not posting?
      singulars
    3. COMany thanks for the detailed answer. And yes, I had already tried getDir (it seems to require a second arg, an int mode for read/write perms), and I couldn't get it to work -- apologies for not mentioning that. But then I tried your second option -- constructing a new File object passing in the directory name -- and it worked! Not sure why getDir isn't working. PS: if this is the commonsware book author, your book is at the top of my list of Android books to buy -- I just started with Java on Android a few days ago (used Lua and Python on Android previously).
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload