jscroll icon indicating copy to clipboard operation
jscroll copied to clipboard

custom append position?

Open markusfalk opened this issue 11 years ago • 3 comments

is it possible to have an option that defines the position in the dom where to add the response and remove the additional divs?

I have a list and want to add more li to it upon scrolling. all elements need to be in that list to work with my sorting logic.

thanks.

markusfalk avatar Jan 24 '14 16:01 markusfalk

just replicated the plugins behavior using load().

now I understand what die additional divs are for. too bad ajax' url parameter doesn't support loading page fragments.

markusfalk avatar Jan 28 '14 15:01 markusfalk

just read through the docs. the load only inserts page fragments but loads the whole answer. this could be achieved using the ajax() method too which wouldn't require to insert the answer right away in a seperate container. the answer could be filtered and appended to any custom position.

just thinking aloud maybe someone's there who listens

markusfalk avatar Jan 28 '14 16:01 markusfalk

I add that because of that, it's not possible to make it work with tables (add new line at each request). The additional divs completely mess up the table rendering

c100k avatar Aug 08 '14 17:08 c100k