Pageinit Issue

Pageinit Issue

Greetings,

I have a multi-page template. The 'main page' has a list of five links, generated by an RSS Feeds Reader Plugin for jQuery (zRSSFeed). On the main page, there are links to internal pages to show complete articles (using data-ajax="false"). Those internal pages have the following code:

  1. $('#p4').live("pageinit", function(){
  2. $.getJSON("http://viewtext.org/api/text?url=" + $("#url4").val() + "&callback=?", function (data) {
  3. $('#story4').append('<div>' + data.content + '</div>');
  4. });
  5. });

This works well for a given list of links. However, the main page allows you to select an RSS feed from a list of options, like what you can see here: http://www.zazar.net/developers/jquery/zrssfeed/example_menu.html.

My problem is that the sub-pages allways show the full-text articles of the first feed that was selected. I probably need to "re-initialize" something on the sub-pages. I tried 'unbind' and 'die', but that didn't make any difference.

Thank you for your help.

--John