Click here to Skip to main content
15,914,162 members
Home / Discussions / Web Development
   

Web Development

 
Generalpop up on button click in wordpress Pin
AMRITESH ASTHANA15-Sep-14 2:19
AMRITESH ASTHANA15-Sep-14 2:19 
QuestionVideo streaming in web Pin
Dharmaraj Balasubramanian15-Sep-14 2:03
Dharmaraj Balasubramanian15-Sep-14 2:03 
QuestionMessage Closed Pin
7-Sep-14 9:21
hadoopTraining7-Sep-14 9:21 
QuestionWeb API - Pros And Cons of more open structure. Pin
Rover2341 - Mark Dickinson7-Sep-14 7:46
Rover2341 - Mark Dickinson7-Sep-14 7:46 
Questionerror has acquired with registration form Pin
Member 110638926-Sep-14 14:57
Member 110638926-Sep-14 14:57 
AnswerRe: error has acquired with registration form Pin
Richard Andrew x646-Sep-14 16:03
professionalRichard Andrew x646-Sep-14 16:03 
GeneralRe: error has acquired with registration form Pin
Member 110638926-Sep-14 16:57
Member 110638926-Sep-14 16:57 
GeneralRe: error has acquired with registration form Pin
Member 110638926-Sep-14 17:01
Member 110638926-Sep-14 17:01 
QuestionFile Upload Using Query String in PHP Pin
jasonalien3-Sep-14 20:48
jasonalien3-Sep-14 20:48 
AnswerRe: File Upload Using Query String in PHP Pin
Richard MacCutchan3-Sep-14 21:31
mveRichard MacCutchan3-Sep-14 21:31 
GeneralRe: File Upload Using Query String in PHP Pin
jasonalien3-Sep-14 21:33
jasonalien3-Sep-14 21:33 
GeneralRe: File Upload Using Query String in PHP Pin
Richard MacCutchan3-Sep-14 22:05
mveRichard MacCutchan3-Sep-14 22:05 
AnswerRe: File Upload Using Query String in PHP Pin
Richard Deeming4-Sep-14 1:37
mveRichard Deeming4-Sep-14 1:37 
GeneralRe: File Upload Using Query String in PHP Pin
jasonalien4-Sep-14 2:04
jasonalien4-Sep-14 2:04 
QuestionHow to update a form and submit using jquery and ajax Pin
Member 109499862-Sep-14 6:41
Member 109499862-Sep-14 6:41 
XML
I am trying to submit a form using Ajax, but my form contains a file field and a text field. The file field fails but the text field work

THE FORM

    <form id="page" enctype="multipart/form-data" >
        <input type="text" name="text" id="text">
        <input type="file" name="image" id ="image">
        <button>Submit</button>
    </form>

THE JS SCRIPT FOR SUBMISSION

    $('#page').validate({
        rules: {
            image:{
                required: true
            },
            text:{
                required: true
            }
        },
        messages: {
            image: {
                required: "required"
            },
            text: {
                required: "required"
            }
        },

        submitHandler : function(){
            $.ajax({
                type: "POST",
                cache:false,
                url: "finish.html",
                data: $('#page').serialize(),
                success: function(data) {
                    alert(data);

                }

        });
    });


Im really new to javascript and jquery, please I want to know where I am going wrong. Thanks for helping.

SuggestionRe: How to update a form and submit using jquery and ajax Pin
Kornfeld Eliyahu Peter2-Sep-14 7:12
professionalKornfeld Eliyahu Peter2-Sep-14 7:12 
Questionvb.net web form generates extra blank lines Pin
dcof1-Sep-14 7:31
dcof1-Sep-14 7:31 
Questionmysqli update Pin
Charlie Kirk26-Aug-14 15:32
Charlie Kirk26-Aug-14 15:32 
AnswerRe: mysqli update Pin
Graham Breach26-Aug-14 22:48
Graham Breach26-Aug-14 22:48 
AnswerRe: mysqli update Pin
Charlie Kirk30-Aug-14 17:47
Charlie Kirk30-Aug-14 17:47 
QuestionSample Mvc 4 Application t Insert data into the database and Bind Them to grid Pin
Member 1103238424-Aug-14 1:19
Member 1103238424-Aug-14 1:19 
AnswerRe: Sample Mvc 4 Application t Insert data into the database and Bind Them to grid Pin
Anurag Gandhi24-Aug-14 7:12
professionalAnurag Gandhi24-Aug-14 7:12 
AnswerRe: Sample Mvc 4 Application t Insert data into the database and Bind Them to grid Pin
Suraj Sahoo | Coding Passion16-Sep-14 19:32
professionalSuraj Sahoo | Coding Passion16-Sep-14 19:32 
QuestionGeneral Web Development Question Pin
Kevin Marois20-Aug-14 5:22
professionalKevin Marois20-Aug-14 5:22 
AnswerRe: General Web Development Question Pin
Anurag Gandhi22-Aug-14 8:59
professionalAnurag Gandhi22-Aug-14 8:59 

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.