AJAX File Upload not working on .live('change', fcn) #188

Closed
ChrisCates opened this Issue Apr 3, 2012 · 2 comments

Comments

Projects
None yet
2 participants
@ChrisCates

This wasn't overlooked properly, so I'll give all pieces of code:

                <form id="logoform" method="POST" enctype="multipart/form-data" action="db/changelogo.php">
                    <h2>Your Corporate logo to be displayed on the left.<h2>

                    <div id="displaylogo">
                    </div>
                    <h2>Browse your computer</h2>                       
                    <input type="file" name="yourlogo" id="yourlogo"/>
                    <br/><br/><br/><br/>
                </form>

$("#yourlogo").live('change', function() {
    $("#logoform").ajaxSubmit(function() {
        alert("Logo");
    });
});

I want the image to appear in the div "displaylogo" But the AJAX request is not working. Any reasons as to why this happens?

@ChrisCates

This comment has been minimized.

Show comment Hide comment
@ChrisCates

ChrisCates Apr 3, 2012

Like it doesn't display the Alert... Despite using the ajaxSubmit call.

Like it doesn't display the Alert... Despite using the ajaxSubmit call.

@kevindb

This comment has been minimized.

Show comment Hide comment
@kevindb

kevindb Feb 21, 2017

Contributor

Are you still experiencing this issue?

Contributor

kevindb commented Feb 21, 2017

Are you still experiencing this issue?

@kevindb kevindb closed this Feb 21, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment