Click here to Skip to main content
15,794,236 members
Home / Discussions / JavaScript
   

JavaScript

 
QuestionRecommended Apps to learn java for student? Pin
kennymanda11-Nov-21 20:44
professionalkennymanda11-Nov-21 20:44 
AnswerRe: Recommended Apps to learn java for student? Pin
OriginalGriff11-Nov-21 20:45
mvaOriginalGriff11-Nov-21 20:45 
GeneralMessage Closed Pin
16-Dec-21 12:25
cryptorobotics16-Dec-21 12:25 
AnswerRe: Recommended Apps to learn java for student? Pin
Richard MacCutchan11-Nov-21 22:04
mveRichard MacCutchan11-Nov-21 22:04 
AnswerRe: Recommended Apps to learn java for student? Pin
jhonaa28-Mar-22 1:10
jhonaa28-Mar-22 1:10 
QuestionUploading image using JQuery AJAX Pin
Alex Dunlop10-Nov-21 19:56
Alex Dunlop10-Nov-21 19:56 
AnswerRe: Uploading image using JQuery AJAX Pin
Richard Deeming10-Nov-21 22:44
mveRichard Deeming10-Nov-21 22:44 
GeneralRe: Uploading image using JQuery AJAX Pin
Alex Dunlop10-Nov-21 23:14
Alex Dunlop10-Nov-21 23:14 
I applied those changes:

<script type="text/javascript">
    $(document).ready(function() {
        $('#uploadstatus1').hide();
        $('#uploadstatus2').hide();

        $('#btnupload').click(function() {
            const file = document.getElementById("formFile").files[0];
            const formdata = new FormData();
            formdata.append("file", file);

            $.ajax({
                url: "../app/model/saveimage.php",
                type: "POST",
                processData: false,
                contentType: false,
                data: formdata,

                success: function(data2) {
                    if (data2 == 1) {
                        location.reload();
                    } else {
                        alert(data2);
                        $('#uploadstatus1').show();
                    }
                }
            });
        });
    });
    </script>


it still returns false for if (isset($_POST['file']))
GeneralRe: Uploading image using JQuery AJAX Pin
Richard Deeming10-Nov-21 23:17
mveRichard Deeming10-Nov-21 23:17 
AnswerRe: Uploading image using JQuery AJAX Pin
jkirkerx16-Nov-21 14:50
professionaljkirkerx16-Nov-21 14:50 
GeneralRe: Uploading image using JQuery AJAX Pin
Richard Deeming17-Nov-21 1:46
mveRichard Deeming17-Nov-21 1:46 
GeneralRe: Uploading image using JQuery AJAX Pin
jkirkerx17-Nov-21 7:18
professionaljkirkerx17-Nov-21 7:18 
Questionhow do you paint objects with two different colors in the for repetition structure Pin
Member 1541326530-Oct-21 4:38
Member 1541326530-Oct-21 4:38 
AnswerRe: how do you paint objects with two different colors in the for repetition structure Pin
Richard MacCutchan30-Oct-21 5:25
mveRichard MacCutchan30-Oct-21 5:25 
GeneralRe: how do you paint objects with two different colors in the for repetition structure Pin
Member 1541326530-Oct-21 10:07
Member 1541326530-Oct-21 10:07 
AnswerRe: sytax error unexcepted token Pin
OriginalGriff5-Oct-21 22:20
mvaOriginalGriff5-Oct-21 22:20 
GeneralRe: sytax error unexcepted token Pin
Richard Deeming5-Oct-21 22:44
mveRichard Deeming5-Oct-21 22:44 
GeneralRe: sytax error unexcepted token Pin
OriginalGriff5-Oct-21 22:52
mvaOriginalGriff5-Oct-21 22:52 
Questiondata import via API Pin
Francesco Reboldi23-Sep-21 20:28
Francesco Reboldi23-Sep-21 20:28 
AnswerRe: data import via API Pin
Afzaal Ahmad Zeeshan24-Sep-21 0:47
professionalAfzaal Ahmad Zeeshan24-Sep-21 0:47 
GeneralRe: data import via API Pin
Afzaal Ahmad Zeeshan24-Sep-21 5:11
professionalAfzaal Ahmad Zeeshan24-Sep-21 5:11 
GeneralRe: data import via API Pin
Francesco Reboldi24-Sep-21 6:13
Francesco Reboldi24-Sep-21 6:13 
GeneralRe: data import via API Pin
Francesco Reboldi25-Sep-21 7:26
Francesco Reboldi25-Sep-21 7:26 
QuestionRegex not keeping the . or decimal with currency value with keydown event. Pin
jkirkerx23-Sep-21 10:06
professionaljkirkerx23-Sep-21 10:06 
AnswerRe: Regex not keeping the . or decimal with currency value with keydown event. Pin
Member 1532961323-Sep-21 10:32
Member 1532961323-Sep-21 10:32 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.