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

The Archive Base Latest Questions

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

I am working on a comment voting system. I have a page profile_new.php?id=194 That

  • 0

I am working on a comment voting system.

I have a page profile_new.php?id=194

That page then uses jquery tabs to load an external file of
sketch-comments.php?id=194&thumb=images/thumbs/1.png

Then in that tab the comments are in a scrolling div
(jqueryScrollPane- http://jscrollpane.kelvinluck.com/)

Then, on each comment, it uses a rollover to show the + and – button. (Just like youtube)

Here is the div that shows up on rollover. (just showing one button)

<div class="comRate" id="c<?php echo $comID;?>">
    <div id="up<?php echo $comID;?>" >
        <a href="#" id="addUpDown" rel="blah"> show number of "+" here </a>
    </div><!--up-->
</div><!--comRate-->

My question: Does all this extra stuff matter when I just want to reload this div on the ajax response in order to display an updated number? I’m having trouble understanding how to use the load(); function to say the least.

How can I just reload the .comRate div? Do I need all the variables I used to rebuild the URLS to get to this spot?

    $("#c" + comID).load(????????);

Thanks!
Dave

  • 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-23T03:38:18+00:00Added an answer on May 23, 2026 at 3:38 am

    I am guessing you need to send the comId back to the server to get the correct number of responses?

    If so you would could use it like this?

    $("#up" + comID").next().load("YourUpdateUrl.php?id=" + comID);
    

    load() takes the value from passed resource location and loads the value into the component.
    jQuery doc: http://api.jquery.com/load/

    So if YourUpdateUrl.php returned echo "<strong>15</strong>";

    <div id="test"><div>
    $("#element").load("YourUpdateUrl.php"); = <div id="test"><strong>15</strong></div>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working on a social networking system that will have comments coming from several
I am working on a comment script using PHP and jquery. My jquery post
I am working on a comment script using ajax, json and jquery. I have
Working on a project that parses a log of events, and then updates a
I am working on a comment system on a social network, I am using
I am working on a comment system and design is my weak area, So
We have a MySQL table that was altered with ALTER TABLE t COMMENT 'foo'
I was just working through a iPhone book and I noticed a comment that
Working with a SqlCommand in C# I've created a query that contains a IN
Working on a project at the moment and we have to implement soft deletion

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.