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 509859
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T07:03:16+00:00 2026-05-13T07:03:16+00:00

The following code was working very well. Suddenly, the Edit button click stopped working.

  • 0

The following code was working very well. Suddenly, the Edit button click stopped working. When the user used to click Edit button, a JSON code executed. But it is not recognizing the click now. Something happened accidentally? Please assist.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
    <head>

        <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></meta>
        <script type="text/javascript" src="js/jquery.min.js"></script>
        <script type="text/javascript" src="js/jquery.cookie.js"></script>
        <script src="js/calendar.js" type="text/javascript"></script>
        <link href="js/calendar.css" type="text/css" rel="stylesheet" />
        <link rel="stylesheet" href="css/wysiwyg.css" type="text/css">
        <script type="text/javascript" src="js/wysiwyg.js"></script>
        <script type="text/javascript" src="js/wysiwyg-settings.js"></script>

        <!-- JSON implementation to get data through JQuery/AJAX -->
        <script type="text/javascript">
                $(document).ready(function(){
                    $("#Edit").click(function(){
                            $.getJSON("fetchvalues.php?UpdateRecordID=" + $.cookie('UpdateRecordID'),
                            function(data){

                            //Fill the Form with the data values    
                            document.getElementById('LDate').value = data[0];
                            document.getElementById('Places').value = data[1];
                            document.getElementById('Company').value = data[2];
                            document.getElementById('Designation').value = data[3];
                            document.getElementById('ProjectDetails').value = data[4];
                            document.getElementById('DesiredCandidate').value = data[5];
                            document.getElementById('HRName').value = data[6];
                            document.getElementById('HRContact').value = data[7];
                            document.getElementById('Email').value = data[8];
                        });
                    });
                });
        </script>

        <title>Job Listing Entry</title>
    </head>
    <body>
        <table id="main" cols="2">
        <tr>    
        <td>
        <Form id="frmNewEntry" method="post" action="insert_listing.php">
            <table id="tblEntry" cols="3" style="border-color:lightblue; border-style:solid;">
                <tr><td colspan="3" bgcolor="lightblue" align="center"><strong>Real-Time Vacancy Entry</strong></td></tr>
                <tr><td>Date:</td><td><input id="LDate" name="LDate" type="text" size="20" maxlength="11"/>[Select Date from the Calendar Control]
                    <script type="text/javascript">
                        WYSIWYG.attach('all', full);
                        calendar.set("LDate");
                    </script></td>
                    <td>
                        <table>
                            <tr>
                                <td rowspan="6">
                                <!--    <iframe src="show_db_vacancy_entries.php" height="800px" width="300px" bordercolor="cyan">

                                    </iframe> -->
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr><td>Places:</td><td><input id="Places" name="Places" type="text" size="35" maxlength="30" onblur="this.value=MakeInitialCapital(this.value);"></td></tr>
                <tr><td>Company:</td><td><input id="Company" name="Company" type="text" size="50" onblur="this.value=MakeInitialCapital(this.value);">
                <!--    <input type="button" value="Make Initial Capital" align="left" onclick="this.value=MakeInitialCapital(this.value);"></tr> -->
                <tr><td>Designation:</td><td><input id="Designation" name="Designation" type="text" size="50" onblur="this.value=MakeInitialCapital(this.value);"></td></tr>
                <tr><td>Project Details:</td><td><textarea id="ProjectDetails" name="ProjectDetails" cols="100" rows="10"></textarea></td></tr>
                <tr><td>Desired Candidate:</td><td><textarea id="DesiredCandidate" name="DesiredCandidate" rows="3" cols="100"></textarea> <br></td></tr>
                <tr><td>HR Name:</td><td><input id="HRName" name="HRName" type="text" size="50" onblur="this.value=MakeInitialCapital(this.value);"> <br></td></tr>
                <tr><td>HR Contact:</td><td><input id="HRContact" name="HRContact" type="text" size="50"> <br></td></tr>
                <tr><td>Email:</td><td><input id="Email" name="Email" type="text" size="50"> <br></td></tr>
                <tr></tr>
                <tr>
                    <td  bgcolor="lightblue">
                        <input id="Clear" name="Clear" value="Clear" type="button" onclick="ClearFields();">
                    </td> 
                    <td bgcolor="lightblue">
                        <input id='Submit' name='Submit' value='Submit' type='submit' />
                    </td>
                </tr>

            </table>
        </Form>
        </td>
        <td>
            <table id="list" cols="2" style="border:none">
                <tr>
                    <td colspan="2" style="border:none">
                        <iframe src="show_db_vacancy_entries.php" height="600px" style="border:none;">

                        </iframe>
                    </td>
                </tr>
                <tr>
                    <td align="left">
                        <input id="Edit" name="Edit" value="Edit Record" type="button"  />
                    </td>
                    <td align="right">
                        <input id="Delete" name="Delete" value="Delete" type="button" />
                    </td>                   
                </tr>
            </table>
        </td>
        </tr>
        </table>
    </body>
</html>

<script language="JavaScript" type="text/javascript">
    function MakeInitialCapital(str)
    {
       return str.toLowerCase().replace(/\b[a-z]/g, cnvrt);
        function cnvrt() {
            return arguments[0].toUpperCase();
        }

    }

    //Convert initials to capital in a certain control
    function MakeInitialCapitalControl(controlName)
    {
    var ctrl = document.getElementById(controlName).value;

    if(/^[A-Z]/.test(ctrl.value)) {
        ctrl.value = ctrl.value.toLowerCase();
        return;
    }        

   /* ctrl.value = ctrl.value.toLowerCase().replace(/\b[a-z]/g, function {
        return arguments[0].toUpperCase();
    });*/
    }

    function ClearFields()
    {
        document.getElementById('Email').value = "";
        document.getElementById('HRContact').value = "";
        document.getElementById('HRName').value = "";
        document.getElementById('DesiredCandidate').value = "";
        document.getElementById('ProjectDetails').value = "";
        document.getElementById('Designation').value = "";
        document.getElementById('Company').value = "";
        document.getElementById('Places').value = "";
        document.getElementById('LDate').value = "";
    }

</script>
  • 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-13T07:03:16+00:00Added an answer on May 13, 2026 at 7:03 am

    I’ve tested the code, after removing all the external JS and CSS files, and it seems to work fine.

    The problem is most likely with the JSON data that you are getting back. Perhaps you did something to the PHP file it is calling, so that the JSON object is malformed, or there is a PHP warning being printed. (Could be a result of a change in the PHP configuration, too)

    I would suggest that you try using the page in Firefox with the Firebug addon active (or something equivalent). It will show you exactly what the JSON request is returning, and whether there are any errors with the request.

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

Sidebar

Ask A Question

Stats

  • Questions 376k
  • Answers 376k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer The information you seek is all available in the information… May 14, 2026 at 8:40 pm
  • Editorial Team
    Editorial Team added an answer Maybe I missed somthing, is it just String id =… May 14, 2026 at 8:40 pm
  • Editorial Team
    Editorial Team added an answer Use DomainClass.withTransaction{ } May 14, 2026 at 8:40 pm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.