ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Jquery, tablesorting and weblog loading on demand...

July 10, 2008 6:59pm

Subscribe [3]
  • #1 / Jul 10, 2008 6:59pm

    mhancock

    9 posts

    Is there a way to use a Jquery to bind a click event to load a particular weblog when clicked?

    I currently loop thru all of my “schedules” weblogs when the page is loaded which populates all the tables (42 of them) and then jquery hides the div’s until I want them displayed (by clicked a bound element).  This worked fine with one only weeks work of schedules for one “workout site” (only 7 tables would be created and then hidden).  Its beginning to get slow and I would like to have more on the fly schedules be created from this one page.

    Anyone run across something like this?

  • #2 / Jul 10, 2008 7:03pm

    kriz

    231 posts

    I dont exactly know what you are trying to do. But if you are trying to get a node to work when it is dynamically loaded, you should try the jquery livequery plugin.

    Hope this helps

  • #3 / Jul 10, 2008 7:10pm

    jeff_openmotive

    39 posts

    If I were going to tackle a problem like that, I would likely build the table as it’s own seperate file that pulls the data I want.  Then when the user clicks the desired link, I would just run a tidy little Ajax request out to that file, and populate a div or some such element in the initial file with the data from the external file.

    If you really want to get fancy you could have the link that the user clicks pass an argument to the second file of the weblog ID.  That way you could use one file to build the table for ANY weblog, and your functionality stays basically the same.

    ciao
    -J

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases