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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T18:49:39+00:00 2026-05-30T18:49:39+00:00

I have the following Javascript snippet that receives an customerID via parameter (i’m going

  • 0

I have the following Javascript snippet that receives an customerID via parameter (i’m going to explain what’s going on):

function purchaseEntry(customerid) {
    $('customeridfield').value = customerid;
    if (approvedAgents()) {
        e1 = $('entrylisttable');
        e1.hide();
        getExistingDetails(customerid, 'confirmstatusexistingdetails');
        $('confirmstatushajjlicenceno').value = '';
        $('confirmstatusapproved').checked = false;
        e1 = $('confirmstatus');
        e1.show();
    }

    return false;
}



function getExistingDetails(customerid, existingdetails) {
    e1 = $(existingdetails);
    e1.innerHTML = 'Loading ... <img src="/jpg/ajaxloader.gif" />';

    var url = '/samex/index.php';
    var pars = 'option=com_directory&view=entry2&customerid=' + customerid + '&format=raw';
    new Ajax.Request(url, { method: 'get', parameters: pars,
        onSuccess: function(request) {
            var json = request.responseText.evalJSON();
            jsondata = json['data'];
            e1 = $(existingdetails);
            e1.innerHTML = jsondata['clientdata'];
        },
        onFailure: function(request) {
            e1 = $(existingdetails);
            e1.innerHTML = 'Unable to get information for customer ' + customerid;
        }
        });
}

The HTML looks like:

<a href="#" onclick="return purchaseEntry('39384');">

Output would look like:

Name: ABC
Address: 123 Street
City: none
Post Code: none

Source code (After saving the single page to my pc):

<div id="confirmstatus" class="optiondiv" style="">
<form id="confirmstatusform">
<table cellspacing="0">
<tbody><tr><td><span class="tableentryhead">Your details in our existing record</span></td>

</tr>
<tr><td><div id="confirmstatusexistingdetails" class="existingdetails">
<table cellspacing="0"><tbody>
<tr>
<td>Name:</td><td>XXXXXXXXXX</td></tr>
<tr><td>Address:</td><td> XXXXXXXXXX </td></tr>
<tr><td>City:</td><td>XXXXXXXXXX</td></tr>
<tr><td>Postcode:</td><td>XXXXXXXXXX</td><
/tr><tr><td>Country:</td><td>XXXXXXXXXX</td></tr>
<tr><td>Telephone:</td><td>XXXXXXXXXX</td></tr>
<tr><td>Fax:</td><td>XXXXXXXXXX</td></tr>
<tr><td>EMail:</td><td>XXXXXXXXXX</td></tr>
<tr><td>Web site:</td><td>XXXXXXXXXX</td></tr>
</tbody></table></div></td></tr>

</tbody></table>

PROBLEM:

I need to use PHP to insert the output values XXXXXXXXXX into PHP array through a loop or so.

Any suggestion?

  • 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-30T18:49:41+00:00Added an answer on May 30, 2026 at 6:49 pm
    for($i++)   
       <tr>
        <td>Name:</td><td><?php 11 ?></td></tr>
        <tr><td>Address:</td><td> <?php 11 ?> </td></tr>
    

    use this in php and echo whole string so.whole u can get at js .Put ajax response in html.

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

Sidebar

Related Questions

I have the following (fairly) simple JavaScript snippet that I have wired into Greasemonkey.
I have the following code snippet in my page. <script type=text/javascript> function expandCollapse(id){ var
I have the following js snippet: <script language=javascript> function test() { this.a = 10;
Can you guys help me figure this out? I have the following JavaScript snippet:
I have the following javascript code, which loads without error, however the update function
I have the following JavaScript code: Link In which the function makewindows does not
I have the following snippet of code on a page that I need to
Given the following snippet of javascript in a scope: var x = 10; function
I have the following code snippet: $.getJSON(http://localhost:8080/images, function(data) { var items = []; $.each(data,
I have a javascript function that builds an URI fragment using some captured parameters,

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.