Note that there are some explanatory texts on larger screens.

plurals
  1. POjquery timeago plugin and jquery corner plugin don't work with dynamic content
    primarykey
    data
    text
    <p>I have a list of reviews, and when you add a review it posts to a PHP page and then loads a Smarty template into the beginning of the review list to show the review you just posted.</p> <p>That works fine. However, I use a rounded corners plugin and timeago on the review post. I tried re-calling these functions after it loads the review, but that doesn't work either.</p> <p>I am aware that using .live is approprite for fixing this problem in many other cases, but I don't know how I could apply that here. jquery's .live only works on events. What is the event here?</p> <p>Any ideas?</p> <p>For reference: jquery timeago plugin: <a href="http://timeago.yarp.com/" rel="nofollow noreferrer">http://timeago.yarp.com/</a> jquery corner plugin: <a href="http://www.methvin.com/jquery/jq-corner-demo.html" rel="nofollow noreferrer">http://www.methvin.com/jquery/jq-corner-demo.html</a></p> <p>--</p> <p>As requested, here is some elaboration: I use $.load to load the template content into the div area. There are no errors from this. It works perfectly, with the exception of the timeago/corner plugins not affecting the output.</p> <p>I don't have the code accessible to me right now, but it goes a little something like this:</p> <pre><code>$.load('/inc/templateLoader.php?tpl=reviews'); $('abbr.timeago').timeago(); $('.corner').corner(); </code></pre> <p>Some people have suggested it might not be working because $.load can complete before the page loads, which would cause the issue I am experiencing.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload