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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T05:19:14+00:00 2026-06-01T05:19:14+00:00

For some reason I can’t get this script to run when I add the

  • 0

For some reason I can’t get this script to run when I add the wallTable() function. When I remove the wallTable() function the script executes just fine… What I am trying to do is append the wallTable() function to ‘#load_status out’ whenever the ajax json request returns true. Any help?

function wallTable(firstname, lastname, defaultImgURI, entryData, entryCreationDateTime) {
     return '<table id="load_status_out" cellpadding="0" cellspacing="0" style="width: 500px; height: 75px" class="status-border-bottom-box1">
     <tr>
     <td valign="top" rowspan="3" style="width: 61px">
     <img style="padding: 3px" id="defaultImg a0" src="' + defaultImgURI + '" width="59" height="64" />
     </td>
     <td valign="top" class="text-align-left" style="padding: 3px; height: 25px;">
     <a class="font1">' + firstname + '" "' + lastname + '</a>
     &nbsp;</td>

     </tr>
     <tr>
     <td class="font1" valign="top" class="font1" style="padding: 3px; height: 25px;">
     ' + entryData + '</td>
     </tr>

     <tr>
     <td valign="top" class="style1" style="padding: 3px; height: 25px; width: 433px;">
     <a class="link-font1" id="like" href="#" style="width: 138px">Like</a>
     <span class="font2"> | </span>
     <a id="comment" href="#" style="width: 138px" class="link-font1">Comment</a>
     <span class="font2"> | ' + entryCreationDateTime + '</span>
     </td>
     </tr>
     </table>
     </td>
     </tr>
     </table>';

function postToWall(firstname, lastname, defaultImgURI, entryData, entryCreationDateTime) {
        var updater = $("#updater").val();
        var dataString = '&updater=' + updater;
            $.ajax({
            type: "POST",
            dataType: "JSON",
            url: "<?=base_url()?>index.php/regUserDash/postToWall",
            data: dataString,
            json: {postedToWall: true},
            success: function(data) {
            if(data.postedToWall == true) {
                var html = wallTable(dat.firstname, data.lastname, data.defaultImgURI, data.entryData, data.entryCreationDateTime);
                $(html).prependTo("#load_status_out").slideDown("slow");
            } else if(data.postedToWall == false) {
                return false;
            }
          }
       });
    }
  • 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-06-01T05:19:15+00:00Added an answer on June 1, 2026 at 5:19 am

    problem seems to be in this line:
    var html = wallTable(dat.firstname, data.lastname, data.defaultImgURI, data.entryData, data.entryCreationDateTime);
    it should be
    var html = wallTable(data.firstname, data.lastname, data.defaultImgURI, data.entryData, data.entryCreationDateTime);

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

Sidebar

Related Questions

An easy problem, but for some reason I just can't figure this out today.
For some reason i can't seem to get this right ok i have 2
This should be pretty simple but for some reason I can't get this value
I have this code. For some reason I can't get the contentpresenter to stretch
Relatively new to using database and for some reason I can't get this 'execute'
For some reason I can't seem to get this particular web page's contents via
For some reason I can't get this to work at all. I have read
For some reason I can get this to work, using single proxy everything seems
For some reason I can't get my JSON script to process the if... else
For some reason i can't get the variable 'total' to define at all... I

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.