Grow your CSS skills. Land your dream job.

[fixed] trigger jquery after element ajax refresh

  • # September 9, 2009 at 9:56 pm

    I need some help on a topic that started out as a CSS issue. I posted in the CSS forum first, see topic: http://css-tricks.com/forums/viewtopic.php?f=2&t=4352

    Basically I am having a problem with the way safari handle table cells and adding a background to the table row, It applies the background to each cell (even though I specified background: none;)

    I figured since it was dependent on javascript I’d use Jquery to apply classes and shift the background of each cell to appear as one background image. (works great) until you click the bottom monthly navigation (previous or next month)

    It sends an Ajax call to change the month without refreshing the page, which does not allow my jquery code to run and target the table cells again :(

    Anyway to run the jquery code on the calendar’s Ajax refresh?
    I tried adding the same classes to the same elements upon clicking the link, but that happens before the refresh, and threfore afterwards I end up without the classes applied.

    EDIT: I just looked in all of the php files until I found the part that was builing the cells, and applied the classes directly there.

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".