Posts: 2,895
Threads: 59
Joined: Jun 2010
Hi,
It's going to be very difficult to accurately display the number of comments above the script as it won't know whether the comment that has just been submitted will be added or not.
Have
you completed
the interview?
Posts: 3
Threads: 1
Joined: Aug 2012
(11-Feb-2012, 01:30 PM)Steven Wrote: It's going to be very difficult to accurately display the number of comments above the script as it won't know whether the comment that has just been submitted will be added or not.
Hi Steven, is there no work-around for this?
I'm trying to do the same as Quiksilver02x.
Posts: 2
Threads: 1
Joined: Feb 2012
(30-Aug-2012, 08:41 AM)organicAnt Wrote: (11-Feb-2012, 01:30 PM)Steven Wrote: It's going to be very difficult to accurately display the number of comments above the script as it won't know whether the comment that has just been submitted will be added or not.
Hi Steven, is there no work-around for this?
I'm trying to do the same as Quiksilver02x.
Wow...it has been so long since I asked this question I forgot I had done it. I managed to find a temporary workaround; it isn't ideal but it works. What I did is specific to my site's design so it may not work for you:
I essentially have a 'site.php' page containing two main parts: the upper div and the lower div (lower div contained a tabbed menu -with comment count- and the commentics script itself below it).
What I did was completely remove the entire bottom div from the 'site.php' page and put all that code into the commentics script itself, so when that script is called it also displays the code I added to it. Make sense? So when a comment is added and the commentics script refreshes, so does my code since it's physically inside the commentics script.
Posts: 3
Threads: 1
Joined: Aug 2012
Hi Quicksilver, thank you very much for the swift reply.
Although, I don't think your suggestion will work in my case because, on the jquery website I'm building, the comments only get loaded (into an iframe) when the user clicks on the Comments button. I'd like the Comments button text to include the amount of comments that page (like: "Comments (8)") contains before the comments are actually displayed in the iframe.
I think it'd be helpful to know in advance how popular the comments are before clicking on the button to display them. It'd prevent possible disappointment and annoyance of clicking on several Comments buttons and finding their contents empty.
Could master jedi Steven consider this a feature request?