Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7368107
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T03:37:23+00:00 2026-05-29T03:37:23+00:00

I am trying to build a mobile app but am having some trouble getting

  • 0

I am trying to build a mobile app but am having some trouble getting the basics of Jquery/Javascript.
I am trying to make it so I can type in any value I want into the input field and then post it, it would post above and allow me to type more into the input field and it would post above the last post.

Here is my code so far. Stumped where to go next or if I am going in the right direction.

 <!DOCTYPE HTML>
    <HTML>
     <script src="http://code.jquery.com/jquery-latest.js"></script>

    <script>

        $('#commentForm').submit(function(){ //listen for submit event
        $.each(params, function(i,param){
            $('<input />').attr('type', 'show')
                .attr('value', param.value)
                .appendTo('#commentForm');
        });



        return true;
    });



    </script>
    <BODY>
    <form id="commentForm" method="POST">
        <textarea  cols="30" rows="6" name="comment" title="Enter a comment">
        </textarea>
        <input type="submit" value="Post"/>
        <input type="reset" value="Reset"/>
    </form>
    <div id="box">

    </div>

    </BODY>

    </HTML>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T03:37:24+00:00Added an answer on May 29, 2026 at 3:37 am

    Give the submit button an id called “submit”

        function onSuccess(data, status) {
            data = $.trim(data);
               //make a div with id "notification" before running this code
            $("#notification").html(data);
            $.mobile.hidePageLoadingMsg(); //used on jquery mobile to hide a loader
        }
    
        function onError(data, status) {
            data = $.trim(data);
            $("#notification").html(data);
            $.mobile.hidePageLoadingMsg(); //used on jquery mobile to hide a loader
        }
        $("#submit").click(function() {
            $.mobile.showPageLoadingMsg(); //used on jquery mobile to show a loader
            var formData = $("#commentForm").serialize(); //get all data from form
              //do the POST thingies
            $.ajax({
                type: "POST",
                url: "url_to_your_php_interpreter",
                cache: false,
                data: formData,
                success: onSuccess,
                error: onError
            });
    
            return false;
        });
    

    I’m using this script to login an user.
    PS: everything you will “echo” from php interpreter will be shown on div with id “notification” wich you will (probably) create

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying build an App Engine connected Android application and am having some problems
I am new to JQuery Mobile and trying to build a simple app. Part
I'm trying to build a menu for a mobile app (using jQuery Mobile). I
I am trying to build my first app for blackberry mobile's but i am
I'm trying to build a mobile app in HTML5. I need to store the
I am trying to build a cross mobile platform app to sync files and
I am trying to build a JQuery Mobile application. I want this application to
I am trying to use Appcelerator Titanium to build a mobile app. This app
JQuery Mobile is making my cry tonight. I'm trying to build custom controls so
I'm trying to build a mobile application with PhoneGap and jQuery Mobile . In

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.