sIFR and jQuery: dynamically replacing text -


I have a problem. I want to update a counter (seen by the user as it appears in a specific device ) When a button is pressed, it is when the button is pressed:

  $ ("# photo-counter span") empty (). Append ((start_index + 1) + "-" + (end_index + 1) + "/" + Files.length); SIFR. Rayleigh (netto, {selector: "# photo-counter span"});  

The first time it runs automatically and everything works well, but when I click the button div sIFR .

Can anyone help?

You can actually do this:

  sIFR.replacements ["# Photo-counter span"] [0] .replaceText ((start_index + 1) + "-" + (end_index + 1) + "/" + files.length);  

HTML does not need to be updated, SIFR takes care of it for you.


Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -