ac****@gmail.com wrote:
Do you know a dynamic way to send 10kb of text or more using an iframe?
I tried to do that with by creating, in javascript, a dynamic iframe,
then create a form into this iframe and put the data in a textarea and
then call a sumbit().
It looks nice and works on IE and FF but *not* on opera. In opera, we
cannot modify the content of an iframe for security reason. (as you can
see here: http://jtf.ploki.info/index.php?id=7 )
Is there another solution with iframe or I have to use xmlhttprequest
or other way?
Well, you don't specify your code so it's hard to know exactly what you
mean or where you are coming from on this. However, why use dynamic
IFrames? Why not have a single static iframe and give it a name
<iframe name=myframe id=myframe onload="..." ...> and then your form
would be in the main document, not the iframe: <from method=post
action="..." target=myframe name=myform>. Submit the form and it winds
up in the iframe.
Of course, there is a hit to the server, but I know of no way to avoid
this in FF on a form submission because the obvious method of
submitting to data: described at
http://www.w3.org/Submission/web-forms2/ is not yet implemented. And
submitting to about
:blank is currently inacessible ("security").
Unless you use a hacked version of GreaseMonkey, like I do. :)
Csaba Gabor from Vienna