Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript [fixed] trigger jquery after element ajax refresh

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #26048
    blue642
    Member

    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)
  • The forum ‘JavaScript’ is closed to new topics and replies.