Author Topic: Custom code not loading on article change  (Read 726 times)

waseemhussain

  • Newbie
  • *
  • Posts: 5
    • View Profile
Custom code not loading on article change
« on: 25 June 2011, 08:33 »
Hi,

Im using Ajax Scroller with articles where I have placed some custom javacript code, through the nonumber extension called sourcerer.

When the articles load in Ajax Scroller they show up fine and the javascript is working, but only on the first articles shown in ajax scroller.
 
Once my row of articles change then this customized code is treated as regular html.

I find it very strange, that on the initial loading of the page the customized code is treated properly, but when the articles in ajax scroller change then the customized code is treated as regular text.

Any clues on how to fix this?

Saka

  • Administrator
  • Hero Member
  • *****
  • Posts: 2,495
    • View Profile
    • Sakic.Net
Re: Custom code not loading on article change
« Reply #1 on: 25 June 2011, 20:47 »
It's not strange. First article is loaded at the page load and the rest is fetched asynchronously as you scroll through.

You can turn off AJAX in parameters and see if that will help. Of course, you will lose the advantages of asynchronous load.