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

  • Home
  • SEARCH
  • 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 7500895
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T20:21:00+00:00 2026-05-29T20:21:00+00:00

Form_Ajax.php => <script type=text/javascript src=Testing_Ajax.js></script> <script type=text/javascript src=jquery-1.5.js></script> <script type=text/javascript src=myjquery.js></script> <style> .cls_display{ background-color:

  • 0

Form_Ajax.php =>

<script type="text/javascript" src="Testing_Ajax.js"></script>

<script type="text/javascript" src="jquery-1.5.js"></script>

<script type="text/javascript" src="myjquery.js"></script>

<style>

    .cls_display{

        background-color: green;

    }

</style>



<form name="nm_form" method="POST" action="Display_Ajax.php">

    <table>     

        <tr><td>User Name:</td><td><input type="text" name="nm_username" id="id_username"/></td></tr>

        <tr><td>Password:</td><td><input type="text" name="nm_password" id="id_password"/></td></tr>

        <tr><td><input type="button" value="Submitrunajax" onclick="runAjax()"/></td></tr>

        <tr><td><input type="button" class="cls_post" value="Submitjqueryajax"/></td></tr>

        <tr><td><input type="submit" class="cls_post" value="SubmitPOST"/></td></tr>

    </table>

    <div id="id_display" class="cls_display">



    </div>

</form>

Display_Ajax.php =>

<?php



class Display_Ajax{

    public function __construct(){



    }

    public function printall(){

        $var_username=$_POST["nm_username"];

        $var_password=$_POST["nm_password"];

        echo $var_username.'<br>';

        echo $var_password.'<br>';

    }

}



$var_obj=new Display_Ajax();

$var_obj->printall();

?>

myjquery.js =>

$(document).ready(function(){

    $("div").addClass('cls_display');



    $("input.cls_post").click(function(){

        var temp1,temp2;

        temp1=$("#id_username").val();

        temp2=$("#id_password").val();

        /*

        $.post("Display_Ajax.php",{nm_username: temp1, nm_password: temp2},function(prm){

            alert(prm);

            $("div.cls_display").html(prm);

        });

        */

        $.ajax({

            type: "POST",

            url: "Display_Ajax.php",

            data: "nm_username="+temp1+"&"+"nm_password="+temp2,

            success: function(prm){

                alert(prm);

                $("div.cls_display").html(prm);

            }

        });     



    });



});

http://localhost/Form_Ajax.php , clicking the third submit button i got the value.

<tr><td><input type="submit" class="cls_post" value="SubmitPOST"/></td></tr>

But from Firefox>Tools>Error Console i got error =>

Firebug's log limit has been reached. 0 entries not shown.      Preferences  
uncaught exception: [Exception... "Component returned failure code: 0x80040111 (NS_ERROR_NOT_AVAILABLE) [nsIXMLHttpRequest.getAllResponseHeaders]" nsresult: "0x80040111 (NS_ERROR_NOT_AVAILABLE)" location: "JS frame :: http://localhost/jquery-1.5.js :: anonymous :: line 7207" data: no]
  • 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-29T20:21:01+00:00Added an answer on May 29, 2026 at 8:21 pm

    Try changing your data area from:

    data:"nm_username="+temp1+"&"+"nm_password="+temp2
    

    to:

    data: {nm_username : temp1,nm_password : temp2},
    

    See if that works.

    Read down on this page: http://api.jquery.com/jQuery.ajax/

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

Sidebar

Related Questions

<html> <head> <title>Testing AJAX</title> <script type=text/javascript src=//ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js></script> <script> function init() { $(#form1).submit(submitForm); } function
<script type=text/javascript> $(document).ready(function($){ $.supersized({ //Background image slides : [ { image : 'images/pendulumWeb.jpg' }
Here is my jQuery code: <script type=text/javascript> //<!-- $(document).ready(function() { $('input[type=submit]').click(function() { $.ajax({ type:
This is my ajax post <script language=JavaScript type=text/javascript> var num = 1; function ajax_post(){
index.php <!DOCTYPE html> <html> <head> <meta http-equiv=Content-Type content=text/html; charset=utf-8 /> <title>Form submit in php
I have created an form validation using ajax/php. Each text box is validated using
Here is my javascript. I am trying to have jQuery send my sign in
I'm trying to do some really basic AJAX using PHP & jQuery, but for
Hello o have an html form and a php script and html passes some
I am working on a comment script using ajax, json and jquery. I have

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.