Eric

Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • in reply to: run javascript on NEXT MONTH #15340
    Eric
    Participant

    I had to recomment out the lines. We needed the site live for the weekend (it’s a restaurant…).

    And, the file I’m messing around with is /resources/events.js not /lib/events.js just FYI.

    Also, I need to chagne the top half background picture as well. So, for now this works good.

    But, I need some kind of call back function after the pjax loading…

    Thanks.

    in reply to: run javascript on NEXT MONTH #15333
    Eric
    Participant

    Rob –

    Thanks for helping out. I’ve restored it to the “BROKEN” condition.

    Here’s what I am doing:

    1. When the page loads, I use jquery to addClass to the ODD and EVEN rows (creating the zebra stripe).

    The problem as best I can figure it is that when a new table is loaded, it comes in via AJAX so the document.ready handler is NOT refired. I have a javascript function called doStripe() that will do the trick, but don’t know how to call it.

    To fix the problem, I went into /lib/events.js and commented out the PJAX lines around line 59 – this forced the page to do a true reload instead of an ajax call. This fixed the problem, but I’d like the ajax load if possible.

    Thanks for the comments about the site. It is coming along nicely. We have a TON of custom data types handling a lot of the data stuff.

Viewing 2 posts - 1 through 2 (of 2 total)