Click here to Skip to main content
15,891,734 members
Home / Discussions / Web Development
   

Web Development

 
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 
GeneralRe: General Web Development Question Pin
Kevin Marois24-Aug-14 7:52
professionalKevin Marois24-Aug-14 7:52 
GeneralRe: General Web Development Question Pin
Anurag Gandhi24-Aug-14 8:07
professionalAnurag Gandhi24-Aug-14 8:07 
GeneralRe: General Web Development Question Pin
Kevin Marois24-Aug-14 8:17
professionalKevin Marois24-Aug-14 8:17 
AnswerRe: General Web Development Question Pin
Richard MacCutchan22-Aug-14 21:14
mveRichard MacCutchan22-Aug-14 21:14 
AnswerRe: General Web Development Question Pin
Wombaticus24-Aug-14 1:22
Wombaticus24-Aug-14 1:22 
AnswerRe: General Web Development Question Pin
uspatel1-Sep-14 1:32
professionaluspatel1-Sep-14 1:32 
AnswerRe: General Web Development Question Pin
Nathan Minier5-Sep-14 3:57
professionalNathan Minier5-Sep-14 3:57 

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.