I can only speak for the plugin I recommended, the Form Plugin. I
think the documentation (http://malsup.com/jquery/form/) covers most
of this, but I'll try and answer your questions here:

>  So, do these plugins actually create the iframe for me?

Yes.

> What do I have to do to get it to submit it into the iframe?
> I how do I specify which script processes the post into the iframe?

This is an example from the document (with names slightly modified and
a file input added):

<head>
    <script type="text/javascript" src="path/to/jquery.js"></script>
    <script type="text/javascript" src="path/to/form.js"></script>

    <script type="text/javascript">
        // wait for the DOM to be loaded
        $(document).ready(function() {
            // bind 'myForm' and provide a simple callback function
            $('#myForm').ajaxForm(function() {
                alert("File uploaded!");
            });
        });
    </script>
</head>

<form id="myForm" action="uploadFile.php" method="post">
    File: <input type="file" name="myfile">
    <input type="submit" value="Upload file">
</form>

Karl Rudd

Reply via email to