How can I dynamically post data to an iframe in Jquery.
I really need to post data to an Iframe in this case, I cannot use a $.POST because data received is returned sequentially (buffered)
If you have a workaround to make jquery handle data returned by a $.POST 'when it receives the data. I'm very curious!
At the moment I handle it with GETS this way:
var iframe = $('<iframe style="display:none;"></iframe>');
$( "body" ).append(iframe);
iframe.attr('src','server.php?type=getFolders&inode='+nodeData.inode).load(function(){$(this).remove()});
This basically creates a temporary iframe and lets the php inject javascript in it (using ob_flush();flush();
)while it is returning data, then when it's finished, it simply removes the iframe to clean up.
from within the iframe, I access the main frame with window.parent.
then the mainframe's methods.
this is ideal but works with GET, how can I make this work with POST ?