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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T11:44:28+00:00 2026-06-02T11:44:28+00:00

I made a script to manipulate the appearance of notes in my theme, which

  • 0

I made a script to manipulate the appearance of notes in my theme, which works well for the notes that are loaded with the page. The problem arises when trying to load more notes- I need to rerun my script on them- my question is how do I do that?

This is the script that tumblr runs when loading more notes (it’s an onclick event):

if (window.ActiveXObject) var tumblrReq=new ActiveXObject('Microsoft.XMLHTTP'); 
else        
if(window.XMLHttpRequest)    var tumblrReq=new XMLHttpRequest();        
else  return false;         
tumblrReq.onreadystatechange = function () {
if (tumblrReq.readyState==4) {      
    var notes_html = tumblrReq.responseText.split('<!-- START '+'NOTES -->')[1].split('<!-- END '+'NOTES -->')[0];
if (window.tumblrNotesLoaded)
    if (tumblrNotesLoaded(notes_html)==false)
        return;         
var more_notes_link=document.getElementById('more_notes_20767443750');
var notes = more_notes_link.parentNode;
notes.removeChild(more_notes_link);
notes.innerHTML+=notes_html;
if (window.tumblrNotesInserted)
    tumblrNotesInserted(notes_html);    
}
};

tumblrReq.open('GET','/notes/20767443750/iRC0TZaQr?from_c=1334227072',true);
tumblrReq.send();
return false;

What I’m trying to do is to make a function that will be called every instance of loading more notes, that will take those new notes as a variable, run a function on them which replaces some text with symbols, and then append them to the existing Isotope setup, like when loading a new page with Infinite Scroll.

This link here is one of the permalink pages from the blog I’m working on, where you can see what I’m talking about. Here is the reference material from the tumblr docs.

I’d appreciate any thoughts, as they might lead me in the right direction!

  • 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-02T11:44:35+00:00Added an answer on June 2, 2026 at 11:44 am

    Well, it turned out that I was in the right direction myself and just made a code that was to messy too work, but it works now so I’ll detail how, so that other people could use the information:

    function tumblrNotesLoaded(notes_html){  //this will be called when loading notes
    
         //code goes here!
    
    };
    

    I placed it outside any other function, I think the term is ‘in the global namespace’, and so I did to every function that I needed to call when loading new notes.

    To append it to the Isotope wall (and I suppose it applies to Masonry as well, with a few keywords changed) I added this to the code:

    var newtmbnotes =  $("li.note:not(.isotope-item)");
    

    This selects all the note elements which hasn’t been positioned by Isotope (the plugin adds the class “isotope-item” to every item it processed). This leaves the selection with only the new notes.

    $('ol.notes').isotope( 'appended', newtmbnotes, introNote() );
    

    And finally this, which appends the new notes that were defined previously, and then runs a function called introNote which I made to fade them in once they are ready.

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

Sidebar

Related Questions

I made a script for IPN which works great but how can i immediately
Have made backup script that does well: makes backup zip-file and then uploads it
I've made script which change information from different site, its occure when i click
I made a script that spawns a remote shell or runs a local shell
i made a script that dynamically loads content into a div and whenever the
I've made a script which copies the alt attribute of an image and puts
I have made a script that uses a program called Diascope, its a video
What happes when the script that made @mysql_connect($server, $user, $password) dies? How long does
I made a script (using mootools library) that is supposed to overlay an image
I made a script to post comments on a page. I have used PHP

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.