javascript - POSTing data on a small embedded device -


i have mystery.html page loads javascript (as mootools).

i run few calculations, , need post url. seems simple, right?

except:

  • i dont have xmlhttprequest

  • i can't run createelement create form , dynamically add data inputs (and can have anywhere few hundred elements one, can't pre-create them in html)

my current thought create form in html single input, create query string of resulting parameters, add input, , submit form. work, smells inelegant.

any better suggestions/something obvious i'm missing?

update: turns out document.write still works, can sort of hack way around way.

you should disclose more details target. , of course, multiple fields in not reason, because document.urform.innerhtml += '<input type="text" name="foo" value="bar"><input type="text" name="baz" value="42">' work.


Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

html - Instapaper-like algorithm -

c# - How to execute a particular part of code asynchronously in a class -